-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (49 loc) · 1.42 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
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>void</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style type="text/css">
html, body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
background-color: white;
box-sizing: border-box;
width: 100%;
height: 100%;
margin: 0;
text-align: center;
}
h1 {
background-color: black;
color: white;
margin: 0;
padding: .7em;
}
body:fullscreen * {
display: none;
}
body:-moz-full-screen * {
display: none;
}
body:-ms-fullscreen * {
display: none;
}
body:-webkit-full-screen * {
display: none;
}
</style>
</head>
<body>
<h1>void</h1>
<p>Just a white void for your device 🏳</p>
<button>Show void</button>
<script type="text/javascript">
var body = document.body;
var requestFullscreen = body.requestFullscreen || body.mozRequestFullScreen || body.msRequestFullscreen || body.webkitRequestFullScreen || function() {
this.innerHTML = "";
};
document.getElementsByTagName("button")[0].addEventListener("click", requestFullscreen.bind(body));
</script>
</body>
</html>