1
0
Fork 0

Update custom.html

master
xxDUxx 2022-02-10 13:15:13 +01:00 committed by GitHub
parent 700ba8eb5b
commit 0f2f56d123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -13,19 +13,21 @@
<script> <script>
// When the 'upload' button is clicked... // When the 'upload' button is clicked...
document.getElementById("upload").addEventListener("click", function() { document.getElementById("upload").addEventListener("click", function() {
Fonts = ["Impact", "Phosphate"]; Font = ["Impact", "Phosphate"]
var n=0; var n=0;
for (fontName in Fonts) { for (fIndex in Font) {
if (document.getElementById(fontName).checked==true) { if (document.getElementById(Font[fIndex]).checked==true) {
sendCustomizedApp({ sendCustomizedApp({
storage:[ storage:[
{name:"contourclock-"+n+".js", url:"app.js", content:"font-"+fontName+".json"}, {name:"contourclock-"+n+".json", url:"app.js", content:"font-"+Font[fIndex]+".json"},
] ]
}); });
n++;
} }
} }
}); });
</script>
</form> </script>
</body> </body>
</html> </html>