forked from sticks-stuff/CPSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (35 loc) · 1.14 KB
/
index.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
<!--CPSC website remake by PASRC
For more information see https://github.com/PandaSRC/CPSC-website-->
<!doctype html>
<head>
<title>CPSC</title>
<link rel="stylesheet" type="text/css" href="assets/css/styles.css">
</head>
<body>
<header>
<img src="assets/img/cpsc logo.png" alt="CPSC Logo" width="350" height="100">
<script>
function full() {
screen = Math.min(window.innerWidth / 1140, (window.innerHeight - 150) / 720);
this.game.style.width = 1140 * screen + "px",
this.game.style.height = 720 * screen + "px";
}
function medium() {
this.game.style.width = "1140px",
this.game.style.height = "720px";
}
function oob() {
screen = Math.min(window.innerHeight / 3);
this.game.style.width = "100%",
this.game.style.height = screen + "px";
}
</script>
<ul>
<li><button onclick="full()">Full</button></li>
<li><button onclick="medium()">Medium</button></li>
<li><button onclick="oob()">OOB</button></li>
</ul>
</header>
<object type="application/x-shockwave-flash" id="game" name="game" data="http://localhost/play/load.swf">
<param name="allowScriptAccess" value="always">
</body>