This commit is contained in:
Kyle
2018-11-15 20:18:46 -08:00
parent f5095be2a4
commit 6f22f088f2
2 changed files with 24 additions and 13 deletions

View File

@@ -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