diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 04:33:31 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 04:33:31 +0300 |
commit | 9bee90d9ffac4ae352befc9ec43803a50524871f (patch) | |
tree | 85b968afa0d9fdecbc080870d343da8cf1228e73 /src/js/app.js | |
parent | 908225b0bf02079901308eea2b0735bfd7373901 (diff) | |
download | arching-kaos-web-ui-9bee90d9ffac4ae352befc9ec43803a50524871f.tar.gz arching-kaos-web-ui-9bee90d9ffac4ae352befc9ec43803a50524871f.tar.bz2 arching-kaos-web-ui-9bee90d9ffac4ae352befc9ec43803a50524871f.zip |
refactoring + icons
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/js/app.js b/src/js/app.js index 610417b..5703def 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -11,7 +11,8 @@ pageLayout.height = window.innerHeight; mainContainer.style.display = 'block'; window.innerWidth <= 770 ? isMobile = true : isMobile = false; isMobile ? doubleFloorMenu.style.display = 'none':doubleFloorMenu.style.display = 'flex'; -function onWindowResize(){ +function onWindowResize() +{ body.width = window.innerWidth; body.height = window.innerHeight; pageLayout.width = window.innerWidth; @@ -29,10 +30,18 @@ progressPlaceholder.value = '0'; progressPlaceholder.max++; -if ( activeSettings.scanStellar ) { +if ( activeSettings.scanStellar ) +{ scanStellarNetworkForPeers(); } -if ( activeSettings.ringLocalBell ) ringlocalbell(); +if ( activeSettings.ringLocalBell ) +{ + ringlocalbell(); + setInterval(ringlocalbell, 10*60*1000); +} + +//scanStellarNetworkForPeers(); +// setInterval(scanStellarNetworkForPeers, 60000); // vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 |