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