aboutsummaryrefslogtreecommitdiff
path: root/src/js/app.js
blob: c3e4c061952e49c149edb81fc583e01729feb399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Irrelevant for now
if (DEBUG) console.log(window.location);

body.width = window.innerWidth;
body.height = window.innerHeight;
pageLayout.width = window.innerWidth;
pageLayout.height = window.innerHeight;
mainContainer.style.display = 'block';
window.innerWidth <= 770 ? isMobile = true : isMobile = false;
isMobile ? doubleFloorMenu.style.display = 'none':doubleFloorMenu.style.display = 'flex';
window.addEventListener('resize', () => {
    body.width = window.innerWidth;
    body.height = window.innerHeight;
    pageLayout.width = window.innerWidth;
    pageLayout.height = window.innerHeight;
    window.innerWidth <= 770 ? isMobile = true : isMobile = false;
    isMobile ? doubleFloorMenu.style.display = 'none':doubleFloorMenu.style.display = 'flex';
})

// And call
menuinit();
// We bring up the default pane ( #welcome-section )
document.querySelector('#welcome-section').hidden=false;

progressPlaceholder.value = '0';

progressPlaceholder.max++;

if ( activeSettings.scanStellar ) {
    scanStellarNetworkForPeers();
}

if ( activeSettings.ringLocalBell )  ringlocalbell();

// vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4