{"id":440,"date":"2024-07-30T10:46:28","date_gmt":"2024-07-30T10:46:28","guid":{"rendered":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/?p=440"},"modified":"2024-07-30T11:20:09","modified_gmt":"2024-07-30T11:20:09","slug":"440","status":"publish","type":"post","link":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/2024\/07\/30\/440\/","title":{"rendered":""},"content":{"rendered":"<p><html lang=\"fr\"><br \/>\n<head><br \/>\n  <meta charset=\"UTF-8\"><br \/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><br \/>\n  <title>Calculateur d&rsquo;Empreinte Carbone<\/title><\/p>\n<style>\n    .carbon-calculator {\n      max-width: 600px;\n      margin: 0 auto;\n      padding: 20px;\n      border: 1px solid #e0e0e0;\n      border-radius: 10px;\n      background-color: #ffffff;\n      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n    }<\/p>\n<p>    .carbon-calculator h2 {\n      text-align: center;\n      color: #036536;\n      font-family: 'Roboto', sans-serif;\n    }<\/p>\n<p>    .appliance {\n      margin-bottom: 15px;\n    }<\/p>\n<p>    .appliance label {\n      display: block;\n      margin-bottom: 5px;\n      color: #34495e;\n      font-family: 'Roboto', sans-serif;\n    }<\/p>\n<p>    .appliance input {\n      width: 100%;\n      padding: 10px;\n      box-sizing: border-box;\n      border: 1px solid #bdc3c7;\n      border-radius: 5px;\n      font-family: 'Roboto', sans-serif;\n    }<\/p>\n<p>    button {\n      display: block;\n      width: 100%;\n      padding: 12px;\n      background-color: #036536;\n      color: white;\n      border: none;\n      border-radius: 5px;\n      cursor: pointer;\n      font-family: 'Roboto', sans-serif;\n      font-size: 16px;\n    }<\/p>\n<p>    button:hover {\n      background-color: #028a4b;\n    }<\/p>\n<p>    #result {\n      margin-top: 20px;\n      text-align: center;\n      color: #e74c3c;\n      font-family: 'Roboto', sans-serif;\n      font-size: 18px;\n    }\n  <\/style>\n<p><\/head><br \/>\n<body><\/p>\n<div class=\"carbon-calculator\">\n<h2>Calculateur d&rsquo;Empreinte Carbone<\/h2>\n<form id=\"carbonForm\">\n<div class=\"appliance\">\n        <label for=\"fridge\">R\u00e9frig\u00e9rateur (heures par jour) :<\/label><br \/>\n        <input type=\"number\" id=\"fridge\" name=\"fridge\" min=\"0\">\n      <\/div>\n<div class=\"appliance\">\n        <label for=\"washingMachine\">Lave-linge (heures par jour) :<\/label><br \/>\n        <input type=\"number\" id=\"washingMachine\" name=\"washingMachine\" min=\"0\">\n      <\/div>\n<div class=\"appliance\">\n        <label for=\"tv\">T\u00e9l\u00e9vision (heures par jour) :<\/label><br \/>\n        <input type=\"number\" id=\"tv\" name=\"tv\" min=\"0\">\n      <\/div>\n<div class=\"appliance\">\n        <label for=\"ac\">Climatiseur (heures par jour) :<\/label><br \/>\n        <input type=\"number\" id=\"ac\" name=\"ac\" min=\"0\">\n      <\/div>\n<div class=\"appliance\">\n        <label for=\"heatPump\">Pompe \u00e0 chaleur (heures par jour) :<\/label><br \/>\n        <input type=\"number\" id=\"heatPump\" name=\"heatPump\" min=\"0\">\n      <\/div>\n<p>      <button type=\"submit\">Calculer<\/button><br \/>\n    <\/form>\n<div id=\"result\"><\/div>\n<\/p><\/div>\n<p>  <script>\n    document.getElementById('carbonForm').addEventListener('submit', function(e) {\n      e.preventDefault();<\/p>\n<p>      const fridgeHours = document.getElementById('fridge').value;\n      const washingMachineHours = document.getElementById('washingMachine').value;\n      const tvHours = document.getElementById('tv').value;\n      const acHours = document.getElementById('ac').value;\n      const heatPumpHours = document.getElementById('heatPump').value;<\/p>\n<p>      const fridgeCO2 = (fridgeHours * 325) \/ 24; \/\/ kg CO\u2082e par jour\n      const washingMachineCO2 = (washingMachineHours * 510) \/ 24; \/\/ kg CO\u2082e par jour\n      const tvCO2 = (tvHours * 100) \/ 24; \/\/ kg CO\u2082e par jour (exemple)\n      const acCO2 = (acHours * 1500) \/ 24; \/\/ kg CO\u2082e par jour (exemple)\n      const heatPumpCO2 = (heatPumpHours * 2000) \/ 24; \/\/ kg CO\u2082e par jour (exemple)<\/p>\n<p>      const totalCO2 = fridgeCO2 + washingMachineCO2 + tvCO2 + acCO2 + heatPumpCO2;<\/p>\n<p>      document.getElementById('result').innerText = `Votre empreinte carbone quotidienne est de ${totalCO2.toFixed(2)} kg CO\u2082e.`;\n    });\n  <\/script><br \/>\n<\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculateur d&rsquo;Empreinte Carbone Calculateur d&rsquo;Empreinte Carbone R\u00e9frig\u00e9rateur (heures par jour) : Lave-linge (heures par jour) : T\u00e9l\u00e9vision (heures par jour) : Climatiseur (heures par jour) : Pompe \u00e0 chaleur (heures par jour) : Calculer<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":4,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":457,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions\/457"}],"wp:attachment":[{"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gifted-heisenberg.57-128-96-121.plesk.page\/index.php\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}