{"id":554,"date":"2024-10-03T03:08:00","date_gmt":"2024-10-03T03:08:00","guid":{"rendered":"https:\/\/research.binus.ac.id\/smeei\/?p=554"},"modified":"2024-10-03T03:08:00","modified_gmt":"2024-10-03T03:08:00","slug":"test","status":"publish","type":"post","link":"https:\/\/research.binus.ac.id\/smeei\/2024\/10\/03\/test\/","title":{"rendered":"test"},"content":{"rendered":"<p><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"width: 0px;overflow: hidden;line-height: 0\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span>.container-calculator{max-width:600px;margin:auto}.container-calculator label{display:block;margin-top:10px}.container-calculator input,.container-calculator select{padding:10px;width:100%;margin-top:5px}.container-calculator button{margin-top:20px;padding:10px;background-color:#4CAF50;color:#fff;border:none;cursor:pointer}.container-calculator button:hover{background-color:#45a049}.container-calculator .result{margin-top:30px;padding:20px;background-color:#f2f2f2}<\/p>\n<div class=\"container-calculator\">\n<h2>Soap Calculator<\/h2>\n<div class=\"form-group\">\n<p><label for=\"soap-type\">Jenis Sabun:<\/label><\/p>\n<p>Sabun Mandi Batang (NaOH)<br \/>\nSabun Mandi Cair (KOH)<\/p>\n<\/div>\n<div class=\"form-group\"><label for=\"superfat\">Superfat (%):<\/label><\/div>\n<div class=\"form-group\"><label for=\"coconut-oil\">Minyak Kelapa (g):<\/label><\/div>\n<div class=\"form-group\"><label for=\"olive-oil\">Minyak Zaitun (g):<\/label><\/div>\n<div class=\"form-group\"><label for=\"castor-oil\">Minyak Jarak (g):<\/label><\/div>\n<div class=\"form-group\">\n<p><label for=\"eco-enzyme\">Eco Enzyme Replacement (% of water):<\/label><\/p>\n<p>10%<br \/>\n15%<\/p>\n<\/div>\n<p><button>Calculate<\/button><\/p>\n<div id=\"results\" class=\"results\"><\/div>\n<p>function calculateSoap() {<br \/>\nconst soapType = document.getElementById(&#8216;soap-type&#8217;).value;<br \/>\nconst superfat = document.getElementById(&#8216;superfat&#8217;).value \/ 100;<br \/>\nconst coconutOil = parseFloat(document.getElementById(&#8216;coconut-oil&#8217;).value);<br \/>\nconst oliveOil = parseFloat(document.getElementById(&#8216;olive-oil&#8217;).value);<br \/>\nconst castorOil = parseFloat(document.getElementById(&#8216;castor-oil&#8217;).value);<br \/>\nconst ecoEnzymePercent = parseFloat(document.getElementById(&#8216;eco-enzyme&#8217;).value) \/ 100;<\/p>\n<p>\/\/ Saponification values for NaOH and KOH<br \/>\nconst SAP_NAOH = { coconut: 0.183, olive: 0.135, castor: 0.128 };<br \/>\nconst SAP_KOH = { coconut: 0.257, olive: 0.190, castor: 0.179 };<\/p>\n<p>\/\/ Determine whether to use NaOH or KOH<br \/>\nconst SAP = soapType === &#8216;solid&#8217; ? SAP_NAOH : SAP_KOH;<\/p>\n<p>\/\/ Calculate the required NaOH or KOH<br \/>\nlet lye = (coconutOil * SAP.coconut) + (oliveOil * SAP.olive) + (castorOil * SAP.castor);<br \/>\nlye = lye * (1 &#8211; superfat); \/\/ Apply superfat<\/p>\n<p>\/\/ Water Calculation (33% of oil weight for solid, 2.5x KOH for liquid)<br \/>\nconst totalOils = coconutOil + oliveOil + castorOil;<br \/>\nlet water = soapType === &#8216;solid&#8217; ? totalOils * 0.33 : lye * 2.5;<br \/>\nlet ecoEnzyme = water * ecoEnzymePercent;<br \/>\nwater = water &#8211; ecoEnzyme; \/\/ Adjust water based on eco enzyme percentage<\/p>\n<p>\/\/ Display the results<br \/>\nconst resultsDiv = document.getElementById(&#8216;results&#8217;);<br \/>\nresultsDiv.innerHTML = `<\/p>\n<h4>Recipe Results:<\/h4>\n<p><strong>Total Lye (${soapType === &#8216;solid&#8217; ? &#8216;NaOH&#8217; : &#8216;KOH&#8217;}):<\/strong> ${lye.toFixed(2)} g<\/p>\n<p><strong>Water:<\/strong> ${water.toFixed(2)} g<\/p>\n<p><strong>Eco Enzyme:<\/strong> ${ecoEnzyme.toFixed(2)} g<\/p>\n<p>`;<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff.container-calculator{max-width:600px;margin:auto}.container-calculator label{display:block;margin-top:10px}.container-calculator input,.container-calculator select{padding:10px;width:100%;margin-top:5px}.container-calculator button{margin-top:20px;padding:10px;background-color:#4CAF50;color:#fff;border:none;cursor:pointer}.container-calculator button:hover{background-color:#45a049}.container-calculator .result{margin-top:30px;padding:20px;background-color:#f2f2f2} Soap Calculator Jenis Sabun: Sabun Mandi Batang (NaOH) Sabun Mandi Cair (KOH) Superfat (%): Minyak Kelapa (g): Minyak Zaitun (g): Minyak Jarak (g): Eco Enzyme Replacement (% of water): 10% 15% Calculate function calculateSoap() { const soapType = document.getElementById(&#8216;soap-type&#8217;).value; const superfat = document.getElementById(&#8216;superfat&#8217;).value \/ 100; const coconutOil = [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-554","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":2,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":557,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/posts\/554\/revisions\/557"}],"wp:attachment":[{"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.binus.ac.id\/smeei\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}