mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 07:39:29 -07:00
fix load order on scroll when compiled
This commit is contained in:
@@ -12,9 +12,14 @@ const secondsToTicks = (seconds) => Math.ceil((seconds * 1000) / TICK_INTERVAL_M
|
||||
const DEFAULT_UPDATE = secondsToTicks(4.0); // 4 second default for each current conditions
|
||||
|
||||
// items on page
|
||||
const mainScroll = document.querySelector('#container>.scroll');
|
||||
const fixedScroll = document.querySelector('#container>.scroll .fixed');
|
||||
const header = document.querySelector('#container>.scroll .scroll-header');
|
||||
let mainScroll;
|
||||
let fixedScroll;
|
||||
let header;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
mainScroll = document.querySelector('#container>.scroll');
|
||||
fixedScroll = document.querySelector('#container>.scroll .fixed');
|
||||
header = document.querySelector('#container>.scroll .scroll-header');
|
||||
});
|
||||
|
||||
// local variables
|
||||
let interval;
|
||||
|
||||
Reference in New Issue
Block a user