-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (37 loc) · 1.08 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
<head>
<link rel="icon" type="image/png" href="banana.gif">
<title> BANANA </title>
</head>
<div id="container" onclick="requestFullScreen(document.body);"> </div>
<style>
#container {
background-image: url("banana.gif");
background-repeat: no-repeat;
background-size: contain;
width: 100%;
height: 100%;
background-position: center;
}
body {
background-color: #000000;
}
</style>
<script>
function requestFullScreen(element) {
// Supports most browsers and their versions.
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
if (requestMethod) { // Native full screen.
requestMethod.call(element);
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
var wscript = new ActiveXObject("WScript.Shell");
if (wscript !== null) {
wscript.SendKeys("{F11}");
}
}
}
document.addEventListener('keyup', event => {
if (event.code === 'Space') {
window.location.href = './kaj';
}
});
</script>