-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (67 loc) · 2.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Window Pong">
<meta name="author" content="Gregory Mitchell">
<link href="https://cdn.gmitch215.fun/gmitch215.ico" rel="shortcut icon" type="image/x-icon">
<link href="https://cdn.gmitch215.fun/gmitch215.png" rel="apple-touch-icon" type="image/png">
<link href="https://cdn.gmitch215.fun/gmitch215.png" rel="icon" type="image/png">
<title>Window Pong</title>
<meta name="twitter:title" content="Window Pong">
<meta name="twitter:description" content="Window Pong">
<meta name="twitter:image" content="https://cdn.gmitch215.fun/gmitch215.png">
<meta name="theme-color" content="#e0f7be">
<meta name="og:title" content="Window Pong">
<meta name="og:description" content="Window Pong">
<meta name="og:type" content="website">
<meta name="og:site_name" content="gmitch215.fun">
<meta name="og:url" content="https://gmitch215-dev.github.io/window-pong/">
<meta name="og:image" content="https://cdn.gmitch215.fun/gmitch215.png">
<meta name="og:site_name" content="Window Pong">
<meta name="og:locale" content="en_US">
</head>
<body>
<script src="script.js"></script>
<div id="buttons">
<div>
<button style="font-size: x-large;" onclick="singlePlayerStart()">Single Player</button>
<select id="difficulty" style="font-size: large;">
<option value="easy" selected>Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
<button style="font-size: x-large;" onclick="twoPlayerStart()">Two Player</button>
</div>
<h2>Single-Player used WASD/Arrow Keys; For Two-Player, Player 1 uses WASD and Player 2 uses Arrow Keys</h2>
</body>
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
background-color: white;
}
body {
flex-direction: column;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
#buttons {
width: 50%;
display: flex;
align-items: center;
justify-content: space-between;
}
#buttons > div {
display: flex;
flex-direction: column;
align-items: center;
}
</style>
</html>