This commit is contained in:
Kyle
2018-11-07 19:28:32 -08:00
parent e07ada7472
commit b1c399d7b7
2 changed files with 298 additions and 290 deletions

View File

@@ -5,6 +5,16 @@
// Initialization //
//============================================//
//The following bits of code are run immediatly to initialize the program while allowing the variables to remain global.
//Setup viewport!
var minimumWidth = 769
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