-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
54 lines (54 loc) · 2.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Language Guessing Game</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/fff51482f8.js" crossorigin="anonymous"></script>
<script type="text/javascript" defer src="game.js"></script>
</head>
<body>
<noscript>
<div class="container">
This game requires JavaScript to run. Please enable JavaScript and refresh the page.
</div>
</noscript>
<div id="not-started">
<div class="container">
<h1>Language Guessing Game</h1>
<p style="max-width: 600px; text-align: center;">Get given a string of text randomly selected from a list of over <span id="lang-number">..</span> languages. The more you get right, the higher your score. <small>Can you beat your highest score?</small></p>
<button id="start" class="primary">Play <i class="fas fa-play"></i> </button>
</div>
</div>
<div id="game">
<div class="container">
<div id="game-container">
<div id="game-text">
<h2>Guess the language</h2>
<p id="text"><i class="fas fa-language"></i> ❝<span id="language"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Culpa sint corrupti ad laboriosam ipsam rem quam, enim eius aspernatur itaque provident doloribus, dolore praesentium fugit iste quas earum deserunt commodi?</span>❞</p>
<p><small id="eng"></small></p>
</div>
<div id="game-input">
<!-- <div class="time">
<i class="fas fa-stopwatch"></i> <strong id="countdown">5</strong> Get a good look<span id="elipse">...</span>
</div> -->
<div class="choices">
<button class="choice" id="choice1">English</button>
<button class="choice" id="choice2">French</button>
<button class="choice" id="choice3">Spanish</button>
<button class="choice" id="choice4">Italian</button>
</div>
</div>
<div id="game-score">
<p>Score: <span id="score">0</span></p>
<p><small>Highest: <span id="highest">0</span></small></p>
</div>
</div>
</div>
</div>
<div class="footer">
© <script>document.write(new Date().getFullYear())</script> <a target="_blank" href="https://github.com/ceocharley">Charley</a><br>litearlly made in 15 minutes..<br> and it's <a target="_blank" href="https://github.com/ceocharley/language-guessing-game">open source</a> 💖
</div>
</body>
</html>