2022-02-10 10:39:58 +00:00
|
|
|
<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() {
|
2022-02-10 11:14:59 +00:00
|
|
|
Fonts = ["Impact", "Phosphate"];
|
2022-02-10 10:39:58 +00:00
|
|
|
var n=0;
|
|
|
|
for (fontName in Fonts) {
|
2022-02-10 11:42:33 +00:00
|
|
|
if (document.getElementById(fontName).checked==true) {
|
2022-02-10 10:39:58 +00:00
|
|
|
sendCustomizedApp({
|
|
|
|
storage:[
|
|
|
|
{name:"contourclock-"+n+".js", url:"app.js", content:"font-"+fontName+".json"},
|
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|