BangleApps/apps/contourclock/custom.html

40 lines
1.0 KiB
HTML

<html>
<head>
<link rel="stylesheet" href="../../css/spectre.min.css">
</head>
<body>
<form>
<input type="checkbox" id="Impact" name="Impact">
<label for="Impact">Impact</label><br>
<input type="checkbox" id="Phosphate" name="Phosphate">
<label for="Phosphate">Phosphate</label><br>
<p>Click <button id="upload" class="btn btn-primary">Upload</button></p>
<script src="../../core/lib/customize.js"></script>
<script>
// When the 'upload' button is clicked...
document.getElementById("upload").addEventListener("click", function() {
Font = ["Impact", "Phosphate"]
var n=0;
for (fIndex in Font) {
if (document.getElementById(Font[fIndex]).checked==true) {
sendCustomizedApp({
storage:[
{name:"contourclock-"+n+".json", url:"font-"+Font[fIndex]+".json"},
]
});
n++;
}
}
/*sendCustomizedApp({
storage:[
{name:"myapp.app.js", url:"app.js", content:app},
]
});*/
});
</script>
</body>
</html>