Repository navigation
Expand file tree
/
Copy pathwords.js
More file actions
76 lines (72 loc) · 2.95 KB
/
Copy pathwords.js
File metadata and controls
76 lines (72 loc) · 2.95 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
const display = {
"":"Bottom Left",
"blank": "Middle Right",
"c":"Top Right",
"cee":"Bottom Right",
"display":"Bottom Right",
"first":"Top Right",
"hold on":"Lead",
"lead":"Bottom Right",
"led":"Middle Left",
"leed":"Bottom Left",
"no":"Bottom Right",
"nothing":"Middle Left",
"okay":"Top Right",
"read":"Middle Right",
"red":"Middle Right",
"reed":"Bottom Left",
"says":"Bottom Right",
"see":"Bottom Right",
"their":"Middle Right",
"there":"Bottom Right",
"they are":"Middle Left",
"they're":"Bottom Left",
"ur":"Top Left",
"yes":"Middle Left",
"you":"Middle Right",
"you are":"Bottom Right",
"your":"Middle Right",
"you're":"Middle Right"
}
const responseSelection = {
"blank": "WAIT, RIGHT, OKAY, MIDDLE, BLANK",
"done": "SURE, UH HUH, NEXT, WHAT?, YOUR, UR, YOU'RE, HOLD, LIKE",
"first": "LEFT, OKAY, YES, MIDDLE, NO, RIGHT, NOTHING, UHHH, WAIT",
"hold": "YOU ARE, U, DONE, UH UH, YOU, UR, SURE, WHAT?, YOU'RE",
"left": "RIGHT, LEFT",
"like": "YOU'RE, NEXT, U, UR, HOLD, DONE, UH UH, WHAT?, UH HUH",
"middle": "BLANK, READY, OKAY, WHAT, NOTHING, PRESS, NO, WAIT, LEFT",
"next": "WHAT?, UH HUH, UH UH, YOUR, HOLD, SURE, NEXT",
"no": "BLANK, UHHH, WAIT, FIRST, WHAT, READY, RIGHT, YES, NOTHING",
"nothing": "UHHH, RIGHT, OKAY, MIDDLE, YES, BLANK, NO, PRESS, LEFT",
"okay": "MIDDLE, NO, FIRST, YES, UHHH, NOTHING, WAIT, OKAY",
"press": "RIGHT, MIDDLE, YES, READY, PRESS",
"ready": "YES, OKAY, WHAT, MIDDLE, LEFT, PRESS, RIGHT, BLANK, READY",
"right": "YES, NOTHING, READY, PRESS, NO, WAIT, WHAT, RIGHT",
"sure": "YOU ARE, DONE, LIKE, YOU'RE, YOU, HOLD, UH HUH, HR, SURE",
"u": "UH HUH, SURE, NEXT, WHAT?, YOU'RE, UR, UH HUH, DONE, U",
"uhhh": "READY, NOTHING, LEFT, WHAT, OKAY, YES, RIGHT, NO, PRESS",
"uh huh": "UH HUH",
"uh uh": "UR, U, YOU ARE, YOU'RE, NEXT, UH UH",
"ur": "DONE, U, UR",
"wait": "UHHH, NO, BLANK, OKAY, YES, LEFT, FIRST, PRESS, WHAT",
"what": "UHHH, WHAT",
"what?": "YOU, HOLD, YOU'RE, YOUR, U, DONE, UH UH, LIKE, YOU ARE",
"yes": "OKAY, RIGHT, UHHH, MIDDLE, FIRST, WHAT, PRESS, READY, NOTHING",
"you": "SURE, YOU ARE, YOUR, YOU'RE, NEXT, UH HUH, UR, HOLD, WHAT?",
"you're": "YOU, YOU'RE",
"you are": "YOUR, NEXT, LIKE, UH HUH, WHAT?, DONE, UH UH, HOLD, YOU",
"your": "UH UH, YOU ARE, UH HUH, YOUR"
};
const bigWord = () => {
const displayWordAsk = document.getElementById('display');
const displayResponse = document.getElementById('displayResponse');
const displayWord = displayWordAsk.value;
displayResponse.innerText = display[displayWord];
}
const run = () => {
const responseWordAsk = document.getElementById('responseWord');
const wordSelectionResponse = document.getElementById('wordSelectionResponse');
const responseWord = responseWordAsk.value;
wordSelectionResponse.innerText = responseSelection[responseWord];
}