hotfix attempt

This commit is contained in:
slweeb 2023-07-27 14:03:52 -04:00
parent 015d39c15e
commit 94381b122d
2 changed files with 5 additions and 2 deletions

View File

@ -12944,7 +12944,7 @@ for (var k = 0; k < b0.split(" AND ").length; k++) {
var gameCanvas = document.getElementById("game");
// Get context
var ctx = gameCanvas.getContext("2d");
if (window.innerWidth < 600) {
if (window.innerWidth < 700) {
var newWidth = Math.ceil(window.innerWidth / pixelSize) * pixelSize;
var newHeight = Math.ceil(window.innerHeight*0.6 / pixelSize) * pixelSize;
}
@ -13330,7 +13330,7 @@ for (var k = 0; k < b0.split(" AND ").length; k++) {
<h1 class="pagetitle" id="pagetitle"><a href="https://R74n.com" class="backbutton" target="_blank">&lt;</a></h1>
<div id="totalWrapper">
<div id="gameWrapper">
<div id="gameDiv" style="width:800px;">
<div id="gameDiv">
<p id="loadingP" style="text-align:center;height:500px;line-height:500px;">Loading...</p>
<div id="canvasDiv" style="display:none">
<canvas id="game" width="800" height="600">

View File

@ -300,6 +300,9 @@ button, input[type="submit"], input[type="reset"] {
display: none
}
}
@media screen and (min-width: 800px) { /* Desktop-Only Styles */
#gameDiv { width:800px }
}
/* screen size > 1325px, h1::after {content:" Sandboxels"} */
@media screen and (min-width: 1325px) {
.pagetitle::after {content:" Sandboxels"}