{"id":490,"date":"2024-03-23T14:25:01","date_gmt":"2024-03-23T14:25:01","guid":{"rendered":"https:\/\/asicasa-design.ro\/?page_id=490"},"modified":"2024-03-23T14:55:11","modified_gmt":"2024-03-23T14:55:11","slug":"piece-calculation","status":"publish","type":"page","link":"https:\/\/asicasa-design.ro\/en\/piece-calculation\/","title":{"rendered":"How many panels should I buy?"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid wd-rs-643403fe3d0ae\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_raw_code wpb_content_element wpb_raw_html\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t<title>Polystyrene wall panel calculation<\/title>\n\t<script>\n\t\tfunction showField() {\n\t\t\tvar selectedOption = document.getElementById(\"selectOption\").value;\n\t\t\tif (selectedOption == \"metrekare\") {\n\t\t\t\tdocument.getElementById(\"dimensionFields\").style.display = \"none\";\n\t\t\t\tdocument.getElementById(\"areaFields\").style.display = \"block\";\n\t\t\t} else {\n\t\t\t\tdocument.getElementById(\"dimensionFields\").style.display = \"block\";\n\t\t\t\tdocument.getElementById(\"areaFields\").style.display = \"none\";\n\t\t\t}\n\t\t}\n\n\t\tfunction calculatePanels() {\n\t\t\tvar selectedOption = document.getElementById(\"selectOption\").value;\n\n\t\t\tvar panelCount1 = 0;\n\t\t\tvar panelCount2 = 0;\n\n\t\t\tif (selectedOption == \"metrekare\") {\n\t\t\t\tvar area = parseInt(document.getElementById(\"areaInput\").value);\n\t\t\t\tpanelCount1 = Math.ceil(area \/ 0.5);\n\t\t\t\tpanelCount2 = Math.ceil(area \/ 0.6);\n\t\t\t} else {\n\t\t\t\tvar height = parseInt(document.getElementById(\"heightInput\").value);\n\t\t\t\tvar width = parseInt(document.getElementById(\"widthInput\").value);\n\n\t\t\t\tpanelCount1 = Math.ceil((height \/ 50) * (width \/ 100));\n\t\t\t\tpanelCount2 = Math.ceil((height \/ 50) * (width \/ 120));\n\t\t\t}\n\n\t\t\tdocument.getElementById(\"panelCount1\").innerHTML = panelCount1;\n\t\t\tdocument.getElementById(\"panelCount2\").innerHTML = panelCount2;\n\t\t\tdocument.getElementById(\"resultTable\").style.display = \"block\";\n\t\t}\n\t<\/script>\n\n\t<h1>Polystyrene wall panel calculation<\/h1>\n\t<p>You can calculate how many pieces you need to buy by entering the area you will be applying the Styrofoam wall panel in square meters or the height and width information in centimeters.<\/p>\n\t<form action=\"\">\n\t\t<label for=\"selectOption\">Area size:<\/label>\n\t\t<select id=\"selectOption\" name=\"selectOption\" onchange=\"showField()\">\n\t\t\t<option value=\"metrekare\">Square feet<\/option>\n\t\t\t<option value=\"dimension\">Height and width<\/option>\n\t\t<\/select>\n\t\t<br><br>\n\t\t<div id=\"areaFields\">\n\t\t\t<label for=\"areaInput\">Square feet:<\/label>\n\t\t\t<input type=\"number\" id=\"areaInput\" name=\"areaInput\">\n\t\t\t<br><br>\n\t\t<\/div>\n\t\t<div id=\"dimensionFields\" style=\"display: none\">\n\t\t\t<label for=\"heightInput\">Height (cm):<\/label>\n\t\t\t<input type=\"number\" id=\"heightInput\" name=\"heightInput\">\n\t\t\t<br><br>\n\t\t\t<label for=\"widthInput\">Width (cm):<\/label>\n\t\t\t<input type=\"number\" id=\"widthInput\" name=\"widthInput\">\n\t\t\t<br><br>\n\t\t<\/div>\n\t\t<input type=\"button\" value=\"Calculate\" onclick=\"calculatePanels()\">\n\t<input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n\t<br>\n\t<table id=\"resultTable\" style=\"display: none\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th>Panel size<\/th>\n\t\t\t\t<th>The number of panels<\/th>\n\t\t\t<\/tr>\n\t\t<\/thead>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td>100x50cm<\/td>\n\t\t\t\t<td id=\"panelCount1\"><\/td>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<td>120x50cm<\/td>\n\t\t\t\t<td id=\"panelCount2\"><\/td>\n\t\t\t<\/tr>\n\t\t<\/tbody>\n\t<\/table>\n\t\t<\/div>\n\t<\/div>\n\t\t<div id=\"wd-65feecf75e61b\" class=\"wd-text-block wd-wpb reset-last-child wd-rs-65feecf75e61b text-center\">\n\t\t\t<p>If you want more information about the products <a href=\"https:\/\/asicasa-design.ro\/en\/contact-us\/\">Contact us<\/a><\/p>\n\t\t<\/div>\n\t\t<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"Polystyrene wall panel calculation Polystyrene wall panel calculation You can calculate how many pieces you need to buy by entering","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-490","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/pages\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/comments?post=490"}],"version-history":[{"count":3,"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/pages\/490\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/pages\/490\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/asicasa-design.ro\/en\/wp-json\/wp\/v2\/media?parent=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}