2022-02-10 10:39:58 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../../css/spectre.min.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form>
|
2022-02-10 13:16:10 +00:00
|
|
|
<input type="checkbox" id="Impact" name="Impact">
|
2022-02-10 10:39:58 +00:00
|
|
|
<label for="Impact">Impact</label><br>
|
2022-02-10 13:16:10 +00:00
|
|
|
<input type="checkbox" id="Phosphate" name="Phosphate">
|
2022-02-10 10:39:58 +00:00
|
|
|
<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() {
|
2022-02-10 12:15:13 +00:00
|
|
|
Font = ["Impact", "Phosphate"]
|
2022-02-10 10:39:58 +00:00
|
|
|
var n=0;
|
2022-02-10 12:15:13 +00:00
|
|
|
for (fIndex in Font) {
|
|
|
|
if (document.getElementById(Font[fIndex]).checked==true) {
|
2022-02-10 10:39:58 +00:00
|
|
|
sendCustomizedApp({
|
|
|
|
storage:[
|
2022-02-10 13:01:47 +00:00
|
|
|
{name:"contourclock-"+n+".json", url:"font-"+Font[fIndex]+".json"},
|
2022-02-10 10:39:58 +00:00
|
|
|
]
|
|
|
|
});
|
2022-02-10 12:15:13 +00:00
|
|
|
n++;
|
2022-02-10 10:39:58 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-10 13:01:47 +00:00
|
|
|
|
|
|
|
/*sendCustomizedApp({
|
|
|
|
storage:[
|
|
|
|
{name:"myapp.app.js", url:"app.js", content:app},
|
|
|
|
]
|
|
|
|
});*/
|
2022-02-10 12:15:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2022-02-10 10:39:58 +00:00
|
|
|
</body>
|
|
|
|
</html>
|