-
Notifications
You must be signed in to change notification settings - Fork 1
/
gameX.html
43 lines (42 loc) · 1.16 KB
/
gameX.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
</head>
<style type="text/css">
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#content {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0px;
}
</style>
<body>
<div id="content">
<iframe id="gameIframe" width="100%" height="100%" frameborder="0"></iframe>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var urlParams = new URLSearchParams(window.location.search);
var gameUrl = urlParams.get('url');
var gameTitle = urlParams.get('title');
if (gameUrl) {
document.title = "VanishGames - " + gameTitle;
var iframe = document.getElementById('gameIframe');
iframe.src = decodeURIComponent(gameUrl);
}
});
</script>
</body>
</html>