forked from FOSS/BangleApps
Update custom.html
parent
700ba8eb5b
commit
0f2f56d123
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue