{"id":56,"date":"2026-04-15T07:42:12","date_gmt":"2026-04-15T07:42:12","guid":{"rendered":"http:\/\/lakazcoquille.re\/?page_id=56"},"modified":"2026-04-15T08:10:09","modified_gmt":"2026-04-15T08:10:09","slug":"consommation-energetique","status":"publish","type":"page","link":"https:\/\/lakazcoquille.re\/index.php\/consommation-energetique\/","title":{"rendered":"consommation energetique"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n\n<div style=\"max-width:500px;margin:auto;padding:20px;border:1px solid #ddd;border-radius:10px;font-family:Arial;\">\n  <h2>\u26a1 Calculateur d\u2019\u00e9nergie<\/h2>\n\n  <label>Puissance (W) :<\/label>\n  <input id=\"power\" type=\"number\" placeholder=\"Ex: 1000\" style=\"width:100%;padding:8px;margin:5px 0;\">\n\n  <label>Temps d\u2019utilisation (heures) :<\/label>\n  <input id=\"time\" type=\"number\" placeholder=\"Ex: 3\" style=\"width:100%;padding:8px;margin:5px 0;\">\n\n  <button onclick=\"calculate()\" style=\"width:100%;padding:10px;margin-top:10px;background:black;color:white;border:none;border-radius:5px;\">\n    Calculer\n  <\/button>\n\n  <h3 id=\"result\" style=\"margin-top:15px;\"><\/h3>\n<\/div>\n\n<script>\nfunction calculate() {\n  let power = document.getElementById(\"power\").value;\n  let time = document.getElementById(\"time\").value;\n\n  if (!power || !time) {\n    document.getElementById(\"result\").innerHTML = \"\u26a0\ufe0f Remplis les deux champs\";\n    return;\n  }\n\n  let energy = power * time; \/\/ Wh\n\n  document.getElementById(\"result\").innerHTML =\n    \"\u26a1 Consommation : <b>\" + energy + \" Wh<\/b> (\" + (energy\/1000).toFixed(2) + \" kWh)\";\n}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u26a1 Calculateur d\u2019\u00e9nergie Puissance (W) : Temps d\u2019utilisation (heures) : Calculer<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-56","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/pages\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":5,"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/pages\/56\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/pages\/56\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/lakazcoquille.re\/index.php\/wp-json\/wp\/v2\/media?parent=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}