-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
466bfa5
commit c726055
Showing
1 changed file
with
4 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |