From 90a5e2fec88301fa7144d87721fd59d5eff28e6a Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Tue, 31 Mar 2020 15:42:35 -0700 Subject: [PATCH] mobile --- data/scripts/cookies.js | 5 ++++- data/scripts/sortable.js | 3 +-- index.html | 3 --- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/data/scripts/cookies.js b/data/scripts/cookies.js index ab48c8e4..72097ff9 100644 --- a/data/scripts/cookies.js +++ b/data/scripts/cookies.js @@ -22,6 +22,9 @@ function getCookie(cookieName) { function checkCookies() { if (getCookie('colorPalette') != undefined) { loadScript('data/scripts/palettes/' + getCookie('colorPalette') + '.js') + setTimeout(function() { + document.getElementById('inputColorPalette').value = getCookie('colorPalette') + }, 1000) } } checkCookies() @@ -33,4 +36,4 @@ function loadScript(scriptPath){ if (typeof script != 'undefined') { document.getElementsByTagName('head')[0].appendChild(script) } -} \ No newline at end of file +} diff --git a/data/scripts/sortable.js b/data/scripts/sortable.js index db96d528..1c81434a 100644 --- a/data/scripts/sortable.js +++ b/data/scripts/sortable.js @@ -1686,9 +1686,8 @@ Sortable.prototype = if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) { if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement(); - console.log(ghostRelativeParent, container, this) //rect.top += ghostRelativeParent.scrollTop; - //rect.left += ghostRelativeParent.scrollLeft; + //rect.left += ghostRelativeParent.scrollLeft; /*These don't work with my iPhone for some reason? -Kyle*/ } else { ghostRelativeParent = getWindowScrollingElement(); } diff --git a/index.html b/index.html index b7724e9f..47c3607e 100644 --- a/index.html +++ b/index.html @@ -259,9 +259,6 @@ -
Navigation