forked from GithubMirrors/cardconjurer
		
	viewport
This commit is contained in:
		@@ -5,6 +5,16 @@
 | 
				
			|||||||
//              Initialization                //
 | 
					//              Initialization                //
 | 
				
			||||||
//============================================//
 | 
					//============================================//
 | 
				
			||||||
//The following bits of code are run immediatly to initialize the program while allowing the variables to remain global.
 | 
					//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
 | 
					//Define initial variables
 | 
				
			||||||
var borderPath
 | 
					var borderPath
 | 
				
			||||||
var secondColor
 | 
					var secondColor
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,6 @@
 | 
				
			|||||||
</head>
 | 
					</head>
 | 
				
			||||||
<!-- <img src="data/background.png"></img> -->
 | 
					<!-- <img src="data/background.png"></img> -->
 | 
				
			||||||
<body onresize="resizeThings()" onload="resizeThings()">
 | 
					<body onresize="resizeThings()" onload="resizeThings()">
 | 
				
			||||||
	<meta name="viewport" content="width=device-width, initial-scale=1">
 | 
					 | 
				
			||||||
	<div class="row">
 | 
						<div class="row">
 | 
				
			||||||
		<div class="column"><canvas id="canvas" width="749" height="1044"></canvas></div>
 | 
							<div class="column"><canvas id="canvas" width="749" height="1044"></canvas></div>
 | 
				
			||||||
		<div class="column" id="optionsColumn">
 | 
							<div class="column" id="optionsColumn">
 | 
				
			||||||
@@ -320,7 +319,6 @@
 | 
				
			|||||||
		<img id="sampleCardC" style="width: 33.33%;" class="column"></img>
 | 
							<img id="sampleCardC" style="width: 33.33%;" class="column"></img>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<div class="row info" style="">For Terms of Use and Disclaimer, see <a href="https://github.com/ImKyle4815/CardConjurer" target="_blank">the Github page</a>.</div>
 | 
						<div class="row info" style="">For Terms of Use and Disclaimer, see <a href="https://github.com/ImKyle4815/CardConjurer" target="_blank">the Github page</a>.</div>
 | 
				
			||||||
	</meta>
 | 
					 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user