-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (49 loc) · 1.97 KB
/
index.html
File metadata and controls
50 lines (49 loc) · 1.97 KB
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
<html lang="en">
<head>
<title>Typing Game</title>
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,600,700" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/png" href="https://www.kindpng.com/picc/m/53-533299_flame-fire-drawing-clip-art-fire-drawing-png.png">
</head>
<body>
<div class="container">
<div class="heading">How Fast Can You Type?</div>
<div class="header">
<div class="wpm">
<div class="headerText">WPM</div>
<div class="currWpm">100</div>
</div>
<div class="cpm">
<div class="headerText">CPM</div>
<div class="currCpm">100</div>
</div>
<div class="best">
<div class="headerText">Best WPM:</div>
<div class="currBest">N/A</div>
</div>
<div class="timer">
<div class="headerText">Time:</div>
<div class="currTime">30s</div>
</div>
<div class="user">
<div class="headerText">User:</div>
<div class="currUser">Guest</div>
</div>
</div>
<div class="quote">Click on the area below to start the game.</div>
<textarea class="inputArea" placeholder="start typing here..." oninput="processCurrentText()"
onfocus="startGame()"></textarea>
<button class="restartBtn" onclick="resetValues()">Restart</button>
<div class="joke"></div>
<div class="track">Login or create an account to track your WPM!</div>
<input class="username" placeholder="enter username"></input>
<input class="password" placeholder="enter password"></input>
<button class="loginBtn" onclick="loginFunc()">Login</button>
<button class="signupBtn" onclick="signupFunc()">Sign Up</button>
<button class='signoutBtn' onclick="signoutFunc()">Sign Out</button>
<!-- <button class='leaderboardBtn' onclick="leaderboardFunc()">View Leaderboard</button> -->
</div>
<script src="script.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</body>
</html>