Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·84 lines (74 loc) · 1.9 KB
/
Copy pathindex.html
File metadata and controls
executable file
·84 lines (74 loc) · 1.9 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
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
82
83
84
<!DOCTYPE html>
<html>
<head>
<title>Trainer</title>
<script src="./logic.js"></script>
<script src="./morseSound.js"></script>
<style>
body, html {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
font-family: 'VT323', monospace;
background-color: #000000;
}
.main-container {
height: 100%;
display: flex;
flex-direction: column;
}
.letter-container {
height: 80%;
display: flex;
align-items: center;
justify-content: center;
}
.letter-display {
font-size: 40vw;
color: #ffffff;
font-family: "Lucida Console", Monaco, monospace;
}
.source-code {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.source-code a:visited { color: #00aa00; }
.source-code a:link { color: #00aa00; }
.source-code a:hover { color: #ff0f00; }
.source-code a:active { color: #ff0f00; }
.status {
display: flex;
font-size: 2.6vw;
color: #ffffff;
justify-content: center;
}
.result-correct {
display: flex;
font-size: 3vw;
color: #00ff00;
justify-content: center;
}
.result-incorrect {
display: flex;
font-size: 3vw;
color: #ff0000;
justify-content: center;
}
</style>
<script>
</script>
</head>
<body onload="init();">
<div class="main-container">
<div class="source-code"><a href="https://github.com/Slyke/MorseCodeTrainer" target="_blank">Source Code and read-me instructions</a></div>
<div class="letter-container">
<div class="letter-display" id="letterDisplay"></div>
</div>
<div id="statusOutput" class="status"></div>
<div id="correctAnswer" class="status"></div>
</div>
</body>
</html>