diff --git a/data/scripts/palettes/dayRave.js b/data/scripts/palettes/dayRave.js index 02205caf..4ffa8563 100644 --- a/data/scripts/palettes/dayRave.js +++ b/data/scripts/palettes/dayRave.js @@ -8,6 +8,14 @@ rootStyles.setProperty('--font-color', '#000000') rootStyles.setProperty('--body-background', 'none') setCookie('colorPalette', 'dayRave') +//Stops the hue shift when another palette is loaded +document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) + +function removeEventListener() { + clearInterval(colorCycle) + document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) +} + //Shifts the hue var colorCycle = setInterval(shiftHue, 100) var currentHueRotation = 0 @@ -18,13 +26,4 @@ function shiftHue() { if (currentHueRotation == 360) { currentHueRotation = 0 } -} - -//Stops the hue shift when another palette is loaded -document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) - -function removeEventListener() { - console.log('cleared') - clearInterval(colorCycle) - document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) } \ No newline at end of file diff --git a/data/scripts/palettes/nightRave.js b/data/scripts/palettes/nightRave.js index c6f51e80..5cbf0d08 100644 --- a/data/scripts/palettes/nightRave.js +++ b/data/scripts/palettes/nightRave.js @@ -8,6 +8,14 @@ rootStyles.setProperty('--font-color', '#efefef') rootStyles.setProperty('--body-background', 'none') setCookie('colorPalette', 'nightRave') +//Stops the hue shift when another palette is loaded +document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) + +function removeEventListener() { + clearInterval(colorCycle) + document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) +} + //Shifts the hue var colorCycle = setInterval(shiftHue, 100) var currentHueRotation = 0 @@ -18,13 +26,4 @@ function shiftHue() { if (currentHueRotation == 360) { currentHueRotation = 0 } -} - -//Stops the hue shift when another palette is loaded -document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) - -function removeEventListener() { - console.log('cleared') - clearInterval(colorCycle) - document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) } \ No newline at end of file diff --git a/data/site/images/lowpoly.png b/data/site/images/lowpoly.png deleted file mode 100644 index 2d6e1d17..00000000 Binary files a/data/site/images/lowpoly.png and /dev/null differ diff --git a/data/site/images/palettes/canvasPaper.png b/data/site/images/palettes/canvasPaper.png deleted file mode 100644 index 5e500e52..00000000 Binary files a/data/site/images/palettes/canvasPaper.png and /dev/null differ diff --git a/data/site/images/palettes/darkWood.png b/data/site/images/palettes/darkWood.png deleted file mode 100644 index 5376da8c..00000000 Binary files a/data/site/images/palettes/darkWood.png and /dev/null differ diff --git a/data/site/images/palettes/whitePaperHighlightedTileable.png b/data/site/images/palettes/whitePaperHighlightedTileable.png deleted file mode 100644 index 5db85013..00000000 Binary files a/data/site/images/palettes/whitePaperHighlightedTileable.png and /dev/null differ diff --git a/data/site/images/palettes/whitePaperTileable.png b/data/site/images/palettes/whitePaperTileable.png deleted file mode 100644 index cb1ba5e9..00000000 Binary files a/data/site/images/palettes/whitePaperTileable.png and /dev/null differ