forked from FOSS/BangleApps
Update custom.html
parent
68e0882715
commit
c7af23abbb
|
@ -37,34 +37,32 @@
|
|||
<p>Click <button id="upload" class="btn btn-primary">Upload</button></p>
|
||||
<script src="../../core/lib/customize.js"></script>
|
||||
<script>
|
||||
FontList = ["BarlowCond", "BebasNeue", "Dekko", "DinAlternate", "Dosis",
|
||||
"Impact", "Nunito", "OpenSansEC", "Phosphate", "Quicksand", "SairaCond", "SairaEC",
|
||||
"Yumaro", "YuseiMagic"]
|
||||
// When the 'upload' button is clicked...
|
||||
document.getElementById("upload").addEventListener("click", function() {
|
||||
var n=0;
|
||||
var fonts = [];
|
||||
for (fontName of FontList) {
|
||||
if (document.getElementById(fontName).checked==true) {
|
||||
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);
|
||||
//console.log("contourclock-"+n+".json <- font-"+fontName+".json");
|
||||
n++;
|
||||
FontList = ["BarlowCond", "BebasNeue", "Dekko", "DinAlternate", "Dosis",
|
||||
"Impact", "Nunito", "OpenSansEC", "Phosphate", "Quicksand", "SairaCond", "SairaEC",
|
||||
"Yumaro", "YuseiMagic"]
|
||||
// When the 'upload' button is clicked...
|
||||
document.getElementById("upload").addEventListener("click", function() {
|
||||
var n=0;
|
||||
var fonts = [];
|
||||
for (fontName of FontList) {
|
||||
if (document.getElementById(fontName).checked==true) {
|
||||
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);
|
||||
//console.log("contourclock-"+n+".json <- font-"+fontName+".json");
|
||||
n++;
|
||||
}
|
||||
}
|
||||
}
|
||||
//console.log(fonts[0]);
|
||||
sendCustomizedApp(storage=fonts);
|
||||
/*sendCustomizedApp({
|
||||
storage:[
|
||||
{name:"myapp.app.js", url:"app.js", content:app},
|
||||
]
|
||||
});*/
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
//console.log(fonts[0]);
|
||||
sendCustomizedApp(storage:fonts);
|
||||
/*sendCustomizedApp({
|
||||
storage:[
|
||||
{name:"myapp.app.js", url:"app.js", content:app},
|
||||
]*/
|
||||
});
|
||||
</script>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue