Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Memelite70 authored May 17, 2024
1 parent 466bfa5 commit c726055
Showing 1 changed file with 4 additions and 53 deletions.
57 changes: 4 additions & 53 deletions universal/index.html
Original file line number Diff line number Diff line change
@@ -1,62 +1,13 @@
<center>
<title>Geometry Tryhard</title>
<link rel="stylesheet" href="/game.css">


<script src="main.js">
<button class="button" onclick="openFullscreen();"> Full Screen </button>

<style>
#redirect {
position: fixed;
bottom: 10px;
left: 10px;
}
</style>



<script>
function create() {
var url = document.getElementById('input').value;
var win = window.open();
win.document.body.style.margin = '0';
win.document.body.style.height = '100vh';
var iframe = win.document.createElement('iframe');
iframe.style.border = 'none';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.margin = '0';
iframe.src = url;
win.document.body.appendChild(iframe);
}
</script>
<input type="hidden" value=gameframe.html placeholder="https://lsmdm.tk" id='input' autofocus>
<button class="button" onclick='create()'>Open Cloaked</button></div>

<button id="redirect" onclick="goToHomePage()"><image src="/img/DAC96524-23D1-4D33-B8DF-343E62276EB4.png" class="button1" style="width: 100px; height: 100px;" ></image></button>

<script>
function goToHomePage() {
window.location.href = '//' + window.location.hostname;
}
</script>
<div>
<div>
<iframe class="gm-iframe" id="gm-area" src="gameframe.html" width="940" height="640" scrolling="none" frameborder="0" allowfullscreen></iframe>
<div style="padding-top: 10px;padding-bottom: 10px;" class="container" align="Center"> <script>
var elem = document.getElementById("gm-area");
function openFullscreen() {
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
}
</script>
</div>


</a>

<div style="padding-top: 10px;padding-bottom: 10px;" class="container" align="Center">
</div>
</center>

0 comments on commit c726055

Please sign in to comment.