Download static/js/script.js from wuttichaimoo/Full_APP_NCD_v2: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/wuttichaimoo/Full_APP_NCD_v2/resolve/main/static/js/script.js
- Command line
-
hf download hf://wuttichaimoo/Full_APP_NCD_v2/static/js/script.js
-
curl -L -o script.js https://huggingface.co/wuttichaimoo/Full_APP_NCD_v2/resolve/main/static/js/script.js
553 Bytes
| function createItem_bd() { | |
| localStorage.setItem("set", 1); | |
| } | |
| function createItem_ad() { | |
| localStorage.setItem("set", 2); | |
| } | |
| function readValue_bd() { | |
| var x = localStorage.getItem("set"); | |
| if (x = 1) { | |
| document.getElementById("myBtn1").disabled = false; | |
| } else if (x = 2) { | |
| document.getElementById("myBtn1").disabled = false; | |
| document.getElementById("myBtn2").disabled = false; | |
| } else { | |
| document.getElementById("myBtn1").disabled = true; | |
| document.getElementById("myBtn2").disabled = true; | |
| } | |
| } |