Skip to content

Commit

Permalink
loading edits #156
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJWood committed May 8, 2024
1 parent 62fca9b commit 029af1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/helpers/textUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down
11 changes: 11 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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);

Expand Down

0 comments on commit 029af1d

Please sign in to comment.