mirror of
				https://github.com/Investigamer/cardconjurer.git
				synced 2025-10-31 15:15:12 -05:00 
			
		
		
		
	viewport
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle