1
0
Fork 0

Update custom.html

master
xxDUxx 2022-02-11 09:24:57 +01:00 committed by GitHub
parent 68e0882715
commit c7af23abbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 28 deletions

View File

@ -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>