Skip to content

Commit

Permalink
Update subwaysurfers.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mountain658 committed Mar 20, 2024
1 parent 76e1e5b commit 30e1708
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions subwaysurfers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,8 @@
<body onload='focus()'>
<a href=".." style='font-size: 1.5rem;'>Back To Home Page</a>
<button onclick="openFullscreen('main')" style='font-size: 1.5rem;'>Fullscreen Mode</button>
<div height='5%'>
<button onclick='s1()'>Server 1</button>
<button onclick='s2()'>Server 2</button>
<h3>Playing On Server: <span id='currentServer'></span></h3>
</div>
<br>
<iframe style='height: calc(100vh - 1.5rem); width: calc(100vw - 2rem);' allow="fullscreen" allowfullscreen scrolling="no" frameborder="0" id="main" allowtransparency="true" src=""></iframe>
<script>
var main = document.getElementById('main')
main.src='https://4147b90b-4b2b-4403-963e-3cd677ac1a00.id.repl.co/';
document.getElementById('currentServer').innerHTML = '1';

function s1(){
main.src='https://4147b90b-4b2b-4403-963e-3cd677ac1a00.id.repl.co/';
document.getElementById('currentServer').innerHTML = '1';
main.focus();
}
function s2(){
main.src='../g/subway-surfers/index.html';
document.getElementById('currentServer').innerHTML = '2';
main.focus();
}
</script>
<iframe style='height: calc(100vh - 1.5rem); width: calc(100vw - 2rem);' allow="fullscreen" allowfullscreen scrolling="no" frameborder="0" id="main" allowtransparency="true"
src="g/subway-surfers/index.html"></iframe>
<script src="fullScreen.js"></script>
<script src="load.js"></script>
<script>function focus() {document.getElementById('main').focus();}</script>
Expand Down

0 comments on commit 30e1708

Please sign in to comment.