diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-13 20:25:55 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-13 20:25:55 +0200 |
commit | 819fb9ca5082175f4afc595766e75dd2f045395b (patch) | |
tree | ed5bbfc6babf3fc4aa5035e9280914a6439d3f2f /src/js/app.js | |
parent | 22bdc082a3fb26144f861732a971e091718a215f (diff) | |
download | arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.tar.gz arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.tar.bz2 arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.zip |
Style update, refactoring with generator usage, bugfixes
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 33 |
1 files changed, 31 insertions, 2 deletions
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 |