From 9bee90d9ffac4ae352befc9ec43803a50524871f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 19 Jul 2024 04:33:31 +0300 Subject: refactoring + icons --- src/js/app.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/js/app.js') 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 -- cgit v1.2.3