From 029af1d49ba6214c1b12835a030300b3f3bc7cd7 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Wed, 8 May 2024 14:02:40 -0400 Subject: [PATCH] loading edits #156 --- src/js/helpers/textUtils.js | 2 +- src/js/main.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/js/helpers/textUtils.js b/src/js/helpers/textUtils.js index 8ee0acf..6b03b90 100644 --- a/src/js/helpers/textUtils.js +++ b/src/js/helpers/textUtils.js @@ -68,7 +68,7 @@ function tempRange(min) { } else if (min == 65) { minText = "above 65" } else if (min == -60) { - minText = 'Lower than -55' + minText = 'lower than -55' } else { minText = `between ${min} and ${min+5}` } diff --git a/src/js/main.js b/src/js/main.js index 15d1c40..27a129d 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -97,6 +97,14 @@ if (isOne) { var onWindowLoaded = async function() { // Preset the second slides' data to default place + // Preset all text to Loading + var mods = $("span[data-item"); + console.log(mods) + mods.forEach(d => { + d.innerHTML = "Loading" + d.className = "loading" + }) + // Set the next slide's dataset to the new place var zoomSlide = $.one("#zoomIn"); @@ -116,6 +124,9 @@ var onWindowLoaded = async function() { selectedLocation.placeState = params.state; } + if (urlParams.has('debug')) { + $.one("#speed-shit").classList.add('active') + } zoomSlide.dataset.center = JSON.stringify(selectedLocation.coords);