// --- Standard Page Components --- const renderSharedComponents = () => { const headerEl = document.getElementById('main-header'); const relatedEl = document.getElementById('related-calculators'); const footerEl = document.getElementById('footer'); // Ensure footerEl is defined const CALCULATOR_CATEGORIES_DATA = [{"category":"Core Sizing Calculators","calculators":[{"href":"index.html","title":"Home / Whole House Sizing","description":"Calculate your home's power needs by selecting the appliances you want to run.","icon":"home","iconColor":"text-sky-500","iconBgColor":"bg-sky-100"},{"href":"generator-capacity-calculator.html","title":"Capacity Calculator (Load-Based)","description":"Size a generator based on total connected electrical load and demand factor.","icon":"chart-pie","iconColor":"text-indigo-500","iconBgColor":"bg-indigo-100"},{"href":"emergency-generator-calculator.html","title":"Emergency Essentials Sizing","description":"Quickly calculate the power needs for just your essential items during an outage.","icon":"bolt-slash","iconColor":"text-red-500","iconBgColor":"bg-red-100"},{"href":"rv-generator-calculator.html","title":"RV Generator Sizing","description":"Find the perfect size generator for your camper or recreational vehicle.","icon":"rv","iconColor":"text-orange-500","iconBgColor":"bg-orange-100"},{"href":"solar-generator-calculator.html","title":"Solar Generator Sizing","description":"Calculate battery capacity and solar panel requirements for your power station.","icon":"sun","iconColor":"text-yellow-500","iconBgColor":"bg-yellow-100"},{"href":"three-phase-generator-calculator.html","title":"3-Phase / Commercial Sizing","description":"For industrial and commercial applications requiring three-phase power.","icon":"rectangle-stack","iconColor":"text-violet-500","iconBgColor":"bg-violet-100"},{"href":"diesel-generator-calculator.html","title":"Diesel Generator Sizing","description":"Size industrial diesel generators for commercial, backup, or prime power needs.","icon":"truck","iconColor":"text-slate-500","iconBgColor":"bg-slate-100"},{"href":"industrial-generator-calculator.html","title":"Industrial Generator Sizing","description":"For manufacturing, data centers, and heavy-duty three-phase applications.","icon":"cog-6-tooth","iconColor":"text-blue-500","iconBgColor":"bg-blue-100"}]},{"category":"Power Conversion Calculators","calculators":[{"href":"generator-load-calculator.html","title":"Generator Load Calculator","description":"A unified tool to solve for kW, kVA, or Amps for single or three-phase loads.","icon":"arrows-right-left-on-rectangle","iconColor":"text-sky-500","iconBgColor":"bg-sky-100"},{"href":"watts-to-amps-calculator.html","title":"Watts to Amps Calculator","description":"Convert real power (Watts) to current (Amps) for sizing circuits and breakers.","icon":"bolt","iconColor":"text-lime-500","iconBgColor":"bg-lime-100"},{"href":"amps-to-watts-calculator.html","title":"Amps to Watts Calculator","description":"Convert current (Amps) to power (Watts) to understand an appliance's power draw.","icon":"bolt","iconColor":"text-cyan-500","iconBgColor":"bg-cyan-100"},{"href":"amps-to-kw-calculator.html","title":"Amps to kW Calculator","description":"Convert current (Amps) to real power (kW) for sizing generators and transformers.","icon":"bolt","iconColor":"text-fuchsia-500","iconBgColor":"bg-fuchsia-100"},{"href":"kva-to-kw-calculator.html","title":"kVA to kW Calculator","description":"Convert apparent power (kVA) to real power (kW) using the power factor.","icon":"chart-pie","iconColor":"text-rose-500","iconBgColor":"bg-rose-100"},{"href":"kw-to-kva-calculator.html","title":"kW to kVA Calculator","description":"Convert real power (kW) to apparent power (kVA) to correctly size a generator.","icon":"chart-pie","iconColor":"text-purple-500","iconBgColor":"bg-purple-100"},{"href":"watts-to-kva-calculator.html","title":"Watts to kVA Calculator","description":"Convert real power in Watts to apparent power in kVA.","icon":"chart-pie","iconColor":"text-pink-500","iconBgColor":"bg-pink-100"},{"href":"kva-to-amps-calculator.html","title":"kVA to Amps Calculator","description":"Convert generator kVA to Amps for single and three-phase systems.","icon":"bolt","iconColor":"text-teal-500","iconBgColor":"bg-teal-100"},{"href":"amps-to-kva-calculator.html","title":"Amps to kVA Calculator","description":"Convert current (Amps) to apparent power (kVA) for generator and transformer sizing.","icon":"bolt","iconColor":"text-amber-500","iconBgColor":"bg-amber-100"},{"href":"hp-to-kw-calculator.html","title":"HP to kW Calculator (Motors)","description":"Convert motor horsepower (HP) to kilowatts (kW) for sizing generators.","icon":"cog-6-tooth","iconColor":"text-gray-500","iconBgColor":"bg-gray-100"},{"href":"btu-to-kw-calculator.html","title":"BTU/hr to kW/kVA Calculator","description":"Convert HVAC thermal energy (BTU/hr) to electrical power (kW).","icon":"fire","iconColor":"text-orange-500","iconBgColor":"bg-orange-100"},{"href":"kwh-to-kw-calculator.html","title":"kWh to kW Calculator","description":"Convert energy consumption (kWh) to the average power (kW) required over a period of time.","icon":"arrows-right-left-on-rectangle","iconColor":"text-indigo-500","iconBgColor":"bg-indigo-100"},{"href":"single-phase-power-calculator.html","title":"Single-Phase Power Calculator","description":"Calculate single-phase power in kW from voltage, current, and power factor.","icon":"bolt","iconColor":"text-yellow-500","iconBgColor":"bg-yellow-100"},{"href":"three-phase-power-calculator.html","title":"Three-Phase Power Calculator","description":"Calculate three-phase power in kW from line-to-line voltage, current, and power factor.","icon":"rectangle-stack","iconColor":"text-violet-500","iconBgColor":"bg-violet-100"},{"href":"power-factor-calculator.html","title":"Power Factor Calculator","description":"Calculate kW, kVA, or Power Factor to understand generator efficiency and load.","icon":"chart-pie","iconColor":"text-pink-500","iconBgColor":"bg-pink-100"}]},{"category":"Fuel & Performance","calculators":[{"href":"fuel-consumption-calculator.html","title":"Fuel Consumption Calculator","description":"Estimate how much fuel your generator will use per hour or day based on its load.","icon":"fire","iconColor":"text-rose-500","iconBgColor":"bg-rose-100"},{"href":"generator-runtime-calculator.html","title":"Generator Runtime Calculator","description":"Calculate how long your generator will run on a full tank of fuel at a specific load.","icon":"clock","iconColor":"text-cyan-500","iconBgColor":"bg-cyan-100"},{"href":"running-cost-calculator.html","title":"Running Cost Calculator","description":"Estimate the total cost of fuel to run your generator for any duration of time.","icon":"banknotes","iconColor":"text-green-500","iconBgColor":"bg-green-100"},{"href":"natural-gas-generator-cost-calculator.html","title":"Natural Gas Generator Cost","description":"Estimate the running cost for a natural gas generator based on local utility prices.","icon":"banknotes","iconColor":"text-sky-500","iconBgColor":"bg-sky-100"},{"href":"efficiency-calculator.html","title":"Generator Efficiency Calculator","description":"Calculate how effectively your generator converts fuel energy into electrical power.","icon":"light-bulb","iconColor":"text-amber-500","iconBgColor":"bg-amber-100"},{"href":"carbon-emission-calculator.html","title":"Carbon Emissions Calculator","description":"Estimate the carbon footprint (CO₂) of your generator based on fuel type and runtime.","icon":"cloud","iconColor":"text-slate-500","iconBgColor":"bg-slate-100"},{"href":"generator-derating-calculator.html","title":"Derating Calculator","description":"Calculate power loss from high altitude and temperature.","icon":"arrow-trending-down","iconColor":"text-fuchsia-500","iconBgColor":"bg-fuchsia-100"},{"href":"generator-rpm-calculator.html","title":"Generator RPM Calculator","description":"Calculate engine RPM from frequency and alternator poles.","icon":"cog-6-tooth","iconColor":"text-gray-500","iconBgColor":"bg-gray-100"}]},{"category":"Safety & Connection","calculators":[{"href":"breaker-size-calculator.html","title":"Breaker Size Calculator","description":"Ensure safety by selecting the correct circuit breaker size for your electrical load.","icon":"shield-check","iconColor":"text-blue-500","iconBgColor":"bg-blue-100"},{"href":"extension-cord-calculator.html","title":"Extension Cord Sizing","description":"Find the required wire gauge (AWG) for your extension cord to prevent overheating and voltage drop.","icon":"wrench-screwdriver","iconColor":"text-gray-500","iconBgColor":"bg-gray-100"},{"href":"generator-wire-size-calculator.html","title":"Generator Wire Size Calculator","description":"Determine the correct wire gauge (AWG) for connecting your generator to a transfer switch.","icon":"scissors","iconColor":"text-slate-500","iconBgColor":"bg-slate-100"},{"href":"voltage-drop-calculator.html","title":"Voltage Drop Calculator","description":"Calculate the voltage drop over a specific length and gauge of wire.","icon":"arrow-trending-down","iconColor":"text-red-500","iconBgColor":"bg-red-100"},{"href":"transfer-switch-calculator.html","title":"Transfer Switch Sizing","description":"Determine the correct amperage for a transfer switch to safely connect your generator to your home.","icon":"power","iconColor":"text-teal-500","iconBgColor":"bg-teal-100"},{"href":"fault-current-calculator.html","title":"Fault Current Calculator","description":"Calculate a generator's symmetrical short-circuit current to ensure protective devices are rated correctly.","icon":"bolt-slash","iconColor":"text-red-500","iconBgColor":"bg-red-100"}]},{"category":"Specialty & Health","calculators":[{"href":"ozone-generator-calculator.html","title":"Ozone Generator Run Time","description":"Calculate the required run time for an ozone generator to sanitize a room.","icon":"beaker","iconColor":"text-emerald-500","iconBgColor":"bg-emerald-100"}]}]; const ICONS = { 'chart-pie': '', 'truck': '', 'cog-6-tooth': '' }; const RELATED_CALCULATORS = [ { href: 'industrial-generator-calculator.html', title: 'Industrial Generator Sizing', description: 'For manufacturing, data centers, and heavy-duty three-phase applications.', icon: 'cog-6-tooth', iconColor: 'text-blue-500', iconBgColor: 'bg-blue-100' }, { href: 'diesel-generator-calculator.html', title: 'Diesel Generator Sizing', description: 'Size industrial diesel generators for commercial, backup, or prime power needs.', icon: 'truck', iconColor: 'text-slate-500', iconBgColor: 'bg-slate-100' }, { href: 'power-factor-calculator.html', title: 'Power Factor Calculator', description: 'Calculate kW, kVA, or Power Factor to understand generator efficiency and load.', icon: 'chart-pie', iconColor: 'text-pink-500', iconBgColor: 'bg-pink-100' } ]; headerEl.innerHTML = `
`; // Updated Footer footerEl.innerHTML = `Empowering you to make informed decisions about your power needs.
As an Amazon Associate, this site earns from qualifying purchases. Read full disclosure.
Disclaimer: All calculations are estimates. Always verify specifications with the manufacturer and consult a qualified electrician.
© 2026 Generator Size Calculator. All Rights Reserved.
${calc.title}
`).join('')}${c.description}
`).join('')}