From 6f22f088f27689652c09bfe39110a556b7437cc0 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Thu, 15 Nov 2018 20:18:46 -0800 Subject: [PATCH] viewport --- data/scripts/main.js | 18 +++++++++--------- index.html | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 2ef57122..d4570247 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -6,15 +6,15 @@ //============================================// //The following bits of code are run immediatly to initialize the program while allowing the variables to remain global. //Setup viewport! -var minimumWidth = 800 -var viewport = document.createElement("meta") -viewport.setAttribute("name", "viewport") -if (screen.width < minimumWidth) { - viewport.setAttribute("content", "width=" + minimumWidth) -} else { - viewport.setAttribute("content", "width=device-width", "initial-scale=1") -} -document.head.appendChild(viewport) +// var minimumWidth = 800 +// var viewport = document.createElement("meta") +// viewport.setAttribute("name", "viewport") +// if (screen.width < minimumWidth) { +// viewport.setAttribute("content", "width=" + minimumWidth) +// } else { +// viewport.setAttribute("content", "width=device-width", "initial-scale=1") +// } +// document.head.appendChild(viewport) //Define initial variables var borderPath var secondColor diff --git a/index.html b/index.html index 7f697561..f86b239c 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,17 @@ + + +