update minshell.html padding

This commit is contained in:
Rokas Puzonas 2024-02-19 23:57:38 +02:00
parent 97f501240b
commit 26a0f45391

View File

@ -18,7 +18,7 @@
body { body {
background-color: rgb(42, 42, 42); background-color: rgb(42, 42, 42);
margin: 0px; margin: 0px;
padding: 8px; padding: 0px;
display: flex; display: flex;
align-items: center; align-items: center;
/* Internet Explorer 10+ */ /* Internet Explorer 10+ */
@ -42,7 +42,7 @@
let x = 0; let x = 0;
let intervalID = window.setInterval(function () { let intervalID = window.setInterval(function () {
Module.resizeWindow(document.documentElement.clientWidth - 16, document.documentElement.clientHeight - 16); Module.resizeWindow(document.documentElement.clientWidth, document.documentElement.clientHeight);
if (++x === repetitions) { if (++x === repetitions) {
window.clearInterval(intervalID); window.clearInterval(intervalID);
@ -53,7 +53,7 @@
</head> </head>
<body onload="setResizeInterval(300, 5)" <body onload="setResizeInterval(300, 5)"
onresize="if(Module.resizeWindow) Module.resizeWindow(document.documentElement.clientWidth-16,document.documentElement.clientHeight-16)"> onresize="if(Module.resizeWindow) Module.resizeWindow(document.documentElement.clientWidth,document.documentElement.clientHeight)">
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" <canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"
tabindex="-1"></canvas> tabindex="-1"></canvas>
<!-- <p id="output" /> --> <!-- <p id="output" /> -->
@ -87,10 +87,10 @@
[w, h] [w, h]
); );
}; };
Module.resizeWindow(document.documentElement.clientWidth - 16, document.documentElement.clientHeight - 16); Module.resizeWindow(document.documentElement.clientWidth, document.documentElement.clientHeight);
}; };
</script> </script>
{{{ SCRIPT }}} {{{ SCRIPT }}}
</body> </body>
</html> </html>