html-box-gadget

how to add custom javascript to google sites?

穿精又带淫゛_ 提交于 2021-02-04 10:58:27
问题 How do I get the ability to add/edit the JS on a google sites site? This way I want to use jQuery and jQuery UI to manipulate the look and feel of the site. To be clear, I am not talking about all google sites, just the create-your-own system google has made, called "Google Sites" -> https://sites.google.com/. On the howto page, there is this: Unsupported features The HTML Box tool currently doesn't support the following features: iframes JavaScript code can't create any script, image or link

Including javascript to google sites

半城伤御伤魂 提交于 2019-12-03 19:34:25
问题 I'm trying to include a simple javascript to Google Sites but I get nothing when pressing the button. I put the code inside an HTML Box. The code works perfectly when tested locally. Here is my code: <script> function calcul(){ x = parseFloat(document.getElementById("value1").value); y = parseFloat(document.getElementById("value2").value); document.getElementById("answer").innerHTML=x+y; } </script> <form action="" id="nothing"> <input type="text" id="value1"> <input type="text" id="value2">