-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (50 loc) · 2.22 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
<!doctype html>
<html lang='en'>
<meta charset='UTF-8'>
<head>
<title>Guess Color Names!</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
</head>
<body class='font-monospace' style='color: white; text-align: center'>
<div id="app">
<nav id='buttons' style='margin: 2vh'>
<button class='btn btn-secondary' onclick='app.nextColor()'>Another Color!</button>
<button class='btn btn-secondary' onclick='app.surrender()'>Surrender</button>
</nav>
<h4><span>👈 Play hangman to guess the background color's name 👉</span></h4>
<h1 style='letter-spacing: .1em; margin: 5vh'><span id='colorName'>{{ maskedWord }}</span></h1>
<div id='keyboard'>
<keyboard-letter-button :letter="keyboardLetter" v-for="keyboardLetter in keyboardLetters"
:key="keyboardLetter">
</keyboard-letter-button>
</div>
<div>
<p style="margin: 3vh;">
<span>You can also use your Computer Keyboard!</span><br>
<span>😃 Use 'enter' for another color</span><br>
<span>🤔 Use '?' to surrender</span>
</p>
<p>
<span>
Colors are gathered from Handpicked Color Names under the ⚖️ MIT License.
Check their <a href='https://github.com/meodai/color-names'>GitHub</a>!
</span>
</p>
</div>
</div>
</body>
<!-- Vue development -->
<!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
<!-- Vue production -->
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<!-- JS -->
<script type='text/javascript' src='js/main.js'></script>
<script type='text/javascript' src='js/colornames.umd.js'></script>
<script type='text/javascript' src='js/index.js'></script>
<script type='text/javascript' src='js/prototype.js'></script>
<!-- Bootstrap -->
<link href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css' rel='stylesheet'
integrity='sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl' crossorigin='anonymous'>
<!-- CSS -->
<link href='style.css' rel='stylesheet'>
</html>