This commit is contained in:
Kyle
2020-06-25 20:43:07 -07:00
parent a122fa4ae2
commit f2fa61c531
11 changed files with 111 additions and 337 deletions

View File

@@ -22,8 +22,9 @@ function getCookie(cookieName) {
}
function checkCookies() {
if (getCookie('colorPalette') != undefined) {
loadScript('data/scripts/palettes/' + getCookie('colorPalette') + '.js')
var colorPaletteCookie = getCookie('colorPalette')
if (colorPaletteCookie != undefined && colorPaletteCookie != '') {
loadScript('data/scripts/palettes/' + colorPaletteCookie + '.js')
setTimeout(function() {
document.getElementById('inputColorPalette').value = getCookie('colorPalette')
}, 1000)