mirror of https://github.com/espruino/BangleApps
40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="../../css/spectre.min.css">
|
|
</head>
|
|
<body>
|
|
<form>
|
|
<input type="checkbox" id="Impact" name="Impact" value="0">
|
|
<label for="Impact">Impact</label><br>
|
|
<input type="checkbox" id="Phosphate" name="Phosphate" value="1">
|
|
<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>
|