Update custom.html

pull/1415/head
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>
// When the 'upload' button is clicked...
document.getElementById("upload").addEventListener("click", function() {
Fonts = ["Impact", "Phosphate"];
Font = ["Impact", "Phosphate"]
var n=0;
for (fontName in Fonts) {
if (document.getElementById(fontName).checked==true) {
for (fIndex in Font) {
if (document.getElementById(Font[fIndex]).checked==true) {
sendCustomizedApp({
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>
</html>