-
Notifications
You must be signed in to change notification settings - Fork 42
/
two-key.html
73 lines (62 loc) · 2.22 KB
/
two-key.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
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Steno Jig</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="type-jig.js"></script>
<script src="util.js"></script>
<script src="steno-display.js"></script>
<script src="word-sets.js"></script>
<script src="plover-translations.js"></script>
<script src="chart.js"></script>
<link rel="stylesheet" type="text/css" href="font-roboto.css">
</head>
<body>
<div id="lesson" class="wrapper">
<div id="leftside">
<h3 class="center">(Mostly) Two-Key Sentences</h3>
<p class="wrapper">To capitalize the first word, hit <code>KPA</code> or <code>KPA*</code>,
or tell plover to start capitalized (Configure -> Output -> Start
Capitalized). If your keyboard has conflicts with the longer strokes (like
<code>TP-PL</code> for period), you can hold one key and press the others
in succesion.</p>
<div id="drill-content">
<div id="answer"></div>
<div id="exercise"></div>
<div id="results"></div>
</div>
</div>
<textarea id="input"></textarea>
<div id="nav">
<p id="strokes"></p>
<p id="clock" class="clock"></p>
<p id="live-wpm-display" class="wpm"></p>
<p class="center"><a id="back">← Back to Menu</a></p>
<p class="center"><a id="again">↺ Restart</a></p>
</div>
</div>
<script>
var query = parseQueryString(document.location.search);
var words = TypeJig.WordSets.twoKeySentences;
var translations = TypeJig.shortestTranslations(TypeJig.Translations.Plover);
var extra = {
"?": "H-F", "charge": "KH", "every": "EF", "perfect": "P-F",
"recall": "-RL", "tuberculosis": "T*B",
"from": "PR", "reason": "R-P", "on": "OB", "we": "WE",
"who": "HO", "kilograms": "K-G/-S"
};
for(key in extra) translations[key] = extra[key];
var strokes = document.getElementById('strokes');
var hints = new StenoDisplay(strokes, translations, true);
if(query.hints === '') hints = null;
var exercise = new TypeJig.Exercise(words);
var jig = new TypeJig(exercise, 'exercise', 'results', 'input', 'clock', hints);
var back = document.getElementById('back');
back.href = 'form.html';
var again = document.getElementById('again');
again.href = document.location.href;
setTheme()
</script>
</body>
</html>