From 819fb9ca5082175f4afc595766e75dd2f045395b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 13 Nov 2024 20:25:55 +0200 Subject: Style update, refactoring with generator usage, bugfixes --- src/js/app.js | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'src/js/app.js') diff --git a/src/js/app.js b/src/js/app.js index f8fca5a..06ba891 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -36,12 +36,12 @@ progressPlaceholder.value = '0'; progressPlaceholder.max++; -if ( activeSettings.stellar.scan ) +if ( settings.stellar.scan ) { scanStellarNetworkForPeers(); } -if ( activeSettings.ak.scan ) +if ( settings.ak.scan ) { ringlocalbell(); setInterval(ringlocalbell, 10*60*1000); @@ -50,5 +50,34 @@ if ( activeSettings.ak.scan ) //scanStellarNetworkForPeers(); // setInterval(scanStellarNetworkForPeers, 60000); +var root = { + head: document.querySelector('head'), + body: document.querySelector('body'), + html: document.querySelector('html') +}; + +var scripts = [ + { + element:"script", + src:"./js/ui/mainLayout.js" + }, + { + element:"script", + src:"./js/page-navigation.js" + }, + { + element:"script", + src:"./js/page-projects.js" + }, + { + element:"script", + src:"./js/menu.js" + } +]; + +for ( var i = 0; i < scripts.length; i++ ) +{ + makeElement(scripts[i], root.body); +} // vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 // @license-end -- cgit v1.2.3