-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (63 loc) · 2.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ping Pong</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.png" type="image/x-icon" />
</head>
<body>
<div class="container">
<div class="details">
<h1>Ping Pong</h1>
<form action="" class="form1">
<label>
Max Score: (Default: 3)<br />
<input type="number" max="12" min="2" name="win-score" id="win-score" placeholder="Enter a number">
</label>
<label>
Ball Color: (Default: red)<br />
<select name="ball-color" id="ball-color">
<option value="red" selected>Red</option>
<option value="lime">Green</option>
<option value="blue">Blue</option>
<option value="yellow">Yellow</option>
<option value="deeppink">Deep Pink</option>
<option value="chocolate">Chocolate</option>
</select>
</label>
<label>
Frames per sec: (Default: 50)<br />
<select id="fps" name="fps">
<option value="30">30</option>
<option value="50" selected>50 (Recommended)</option>
<option value="60">60</option>
<option value="90">90</option>
</select>
</label>
<button type="submit" id="ready">Get Ready!</button>
<br />
<button type="reset" id="reset">Reset Settings</button>
</form>
<br />
<button id="pause">Pause</button>
<br />
<button id="play-btn">Continue</button>
</div>
<div class="game">
<canvas id="gameCanvas" width="1000" height="600"></canvas>
</div>
</div>
<footer>
<p>
Connect on <a href="https://www.linkedin.com/in/ankitgoel25/" target="_blank">
<img src="linkedin-white.svg" id="linked" alt="">
</a>
<span>Please give your views and suggestions to improve!</span>
</p>
<p>Created by  <b>ANKIT GOEL</b></p>
</footer>
<script src="main.js"></script>
</body>
</html>