2022-02-10 10:39:58 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../../css/spectre.min.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form>
|
2022-02-10 22:21:38 +00:00
|
|
|
<input type="checkbox" id="BarlowCond">
|
|
|
|
<label for="BarlowCond">Barlow Condensed</label><br>
|
|
|
|
<input type="checkbox" id="BebasNeue">
|
|
|
|
<label for="BebasNeue">Bebas Neue</label><br>
|
|
|
|
<input type="checkbox" id="Dekko">
|
|
|
|
<label for="Dekko">Dekko</label><br>
|
|
|
|
<input type="checkbox" id="DinAlternate">
|
|
|
|
<label for="DinAlternate">Din Alternate</label><br>
|
|
|
|
<input type="checkbox" id="Dosis">
|
|
|
|
<label for="Dosis">Dosis</label><br>
|
|
|
|
<input type="checkbox" id="Impact">
|
2022-02-10 10:39:58 +00:00
|
|
|
<label for="Impact">Impact</label><br>
|
2022-02-10 22:21:38 +00:00
|
|
|
<input type="checkbox" id="Nunito">
|
|
|
|
<label for="Nunito">Nunito</label><br>
|
|
|
|
<input type="checkbox" id="OpenSansEC">
|
|
|
|
<label for="OpenSansEC">Open Sans Extra Condensed</label><br>
|
|
|
|
<input type="checkbox" id="Phosphate">
|
2022-02-10 10:39:58 +00:00
|
|
|
<label for="Phosphate">Phosphate</label><br>
|
2022-02-10 22:21:38 +00:00
|
|
|
<input type="checkbox" id="Quicksand">
|
|
|
|
<label for="Quicksand">Quicksand</label><br>
|
|
|
|
<input type="checkbox" id="SairaCond">
|
|
|
|
<label for="SairaCond">Saira Condensed</label><br>
|
|
|
|
<input type="checkbox" id="SairaEC">
|
|
|
|
<label for="SairaEC">Saira Extra Condensed</label><br>
|
|
|
|
<input type="checkbox" id="Teko">
|
|
|
|
<label for="Teko">Teko</label><br>
|
|
|
|
<input type="checkbox" id="Yumaro">
|
|
|
|
<label for="Yumaro">Yumaro</label><br>
|
|
|
|
<input type="checkbox" id="YuseiMagic">
|
|
|
|
<label for="YuseiMagic">Yusei Magic</label><br>
|
2022-02-10 10:39:58 +00:00
|
|
|
<p>Click <button id="upload" class="btn btn-primary">Upload</button></p>
|
|
|
|
<script src="../../core/lib/customize.js"></script>
|
|
|
|
<script>
|
2022-02-10 22:21:38 +00:00
|
|
|
FontList = ["BarlowCond", "BebasNeue", "Dekko", "DinAlternate", "Dosis",
|
|
|
|
"Impact", "Nunito", "OpenSansEC", "Phosphate", "Quicksand", "SairaCond", "SairaEC",
|
|
|
|
"Yumaro", "YuseiMagic"]
|
2022-02-10 10:39:58 +00:00
|
|
|
// When the 'upload' button is clicked...
|
|
|
|
document.getElementById("upload").addEventListener("click", function() {
|
|
|
|
var n=0;
|
2022-02-10 22:57:34 +00:00
|
|
|
var fonts = [];
|
2022-02-10 22:21:38 +00:00
|
|
|
for (fontName of FontList) {
|
|
|
|
if (document.getElementById(fontName).checked==true) {
|
2022-02-10 22:57:34 +00:00
|
|
|
var f = new Object();
|
|
|
|
f.name="contourclock-"+n+".json";
|
|
|
|
f.url="font-"+fontName+".json";
|
|
|
|
//fonts.push({name:"contourclock-"+n+".json", url:"font-"+fontName+".json"});
|
|
|
|
fonts.push(f);
|
2022-02-10 22:21:38 +00:00
|
|
|
//console.log("contourclock-"+n+".json <- font-"+fontName+".json");
|
2022-02-10 12:15:13 +00:00
|
|
|
n++;
|
2022-02-10 10:39:58 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-10 22:57:34 +00:00
|
|
|
//console.log(fonts[0]);
|
|
|
|
sendCustomizedApp(storage=fonts);
|
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>
|