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 ++++++++++++--- src/js/arching-kaos-decentralized-radio.js | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'src/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 diff --git a/src/js/arching-kaos-decentralized-radio.js b/src/js/arching-kaos-decentralized-radio.js index 2c72d58..7cec5b1 100644 --- a/src/js/arching-kaos-decentralized-radio.js +++ b/src/js/arching-kaos-decentralized-radio.js @@ -2,10 +2,10 @@ // var radioButton = document.querySelector("#radio-button-controller"); radio.addEventListener("play", ()=>{ - radioButton.innerText = "turn off"; + radioButton.innerHTML = ' '; }) radio.addEventListener("pause", ()=>{ - radioButton.innerText = "turn on"; + radioButton.innerHTML = ' '; }) function radioToggle(){ -- cgit v1.2.3