-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.html
157 lines (137 loc) · 5.45 KB
/
helper.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<title>Interface!</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Work+Sans:wght@600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="icon" type="image/png" href="images/favicon.png">
<style>
body, html {
height: 100%;
margin: 0;
background-color: #FFFFEB;
background-image:
linear-gradient(0deg, rgba(192, 0, 5, 0.2) 1px, transparent 1px),
linear-gradient(90deg, rgba(192, 0, 5, 0.2) 1px, transparent 1px);
background-size: 30px 30px;
font-family: 'Rethink Sans', sans-serif;
}
h2 {
text-align: center;
font-family: 'Work Sans', sans-serif;
}
.go-back {
display: block;
margin: 10px;
font-size: 20px;
text-align: left;
font-family: 'Work Sans', sans-serif;
color: rgba(192, 0, 5);
text-decoration: none;
}
.go-back:visited {
color: red;
}
.word-box {
border: 1px dashed #C00005;
padding: 10px;
margin: 5px auto;
font-family: 'Rethink Sans', sans-serif;
text-align: center;
max-width: 300px;
}
.word-box::before {
display: block;
font-size: 14px;
color: #aaa;
white-space: pre-wrap;
}
#generateButton {
background-color: #C00005;
color: white;
border: none;
border-radius: 15px;
padding: 10px 20px;
margin: 10px auto;
cursor: pointer;
display: block;
text-align: center;
line-height: 1.5;
min-width: 150px;
text-decoration: none;
transition: color 0.3s;
font-family: 'Rethink Sans', sans-serif;
text-transform: none;
}
#generateButton:hover {
color: #EF3E29;
}
#wordContainer {
text-align: center;
}
.inter-box-text {
text-align: center;
margin: 15px auto;
font-family: 'Rethink Sans', sans-serif;
}
@media (max-width: 600px) {
#generateButton {
width: 100%; /* Make button full width */
margin: 10px auto; /* Add some margin for spacing */
}
.word-box {
max-width: 100%; /* Make word boxes full width */
}
.inter-box-text {
margin: 15px auto;
}
}
</style>
</head>
<body>
<a href="index.html" class="go-back">← Go Back</a>
<h2>Let's do interfacing</h2>
<div id="wordContainer">
<div class="inter-box-text">I will say:</div>
<div class="word-box" id="word1"></div>
<div class="inter-box-text">as my body</div>
<div class="word-box" id="word2"></div>
<div class="inter-box-text">the computer will</div>
<div class="word-box" id="word3"></div>
<div class="inter-box-text">And the response will:</div>
<div class="word-box" id="word4"></div>
<div class="inter-box-text">My movements will feel like:</div>
<div class="word-box" id="word5"></div>
</div>
<div>
<button id="generateButton">Generate</button>
</div>
<script>
var btn = document.getElementById("generateButton");
var word1 = document.getElementById("word1");
var word2 = document.getElementById("word2");
var word3 = document.getElementById("word3");
var word4 = document.getElementById("word4");
var word5 = document.getElementById("word5"); // Added word5
var source1 = ['I am determined', 'I feel overwhelmed', 'I am curious', 'I sense joy', 'I am hesitant', 'I feel powerful', 'I am hopeful', 'I am anxious', 'I am contemplative', 'I am passionate', 'I feel serene', 'I am confused', 'I feel liberated', 'I am ambitious', 'I am nostalgic', 'I feel restless', 'I am inspired', 'I feel vulnerable', 'I am grateful', 'I am disillusioned'];
var source2 = ['nods', 'shrugs', 'leans', 'reaches', 'jumps', 'sits', 'stands', 'runs', 'walks', 'waves', 'bows', 'kneels', 'stretches', 'dodges', 'spins', 'crouches', 'climbs', 'dives', 'sprints', 'sways'];
var source3 = ['calculate', 'process', 'display', 'connect', 'store', 'download', 'upload', 'analyze', 'render', 'encrypt', 'decode', 'compress', 'expand', 'scan', 'print', 'stream', 'backup', 'update', 'notify', 'log'];
var source4 = ['will intrigue me', 'will energize me', 'will frustrate me', 'will amuse me', 'will enlighten me', 'will disappoint me', 'will relax me', 'will challenge me', 'will motivate me', 'will bore me', 'will comfort me', 'will excite me', 'will startle me', 'will soothe me', 'will dismay me', 'will inspire me', 'will perplex me', 'will satisfy me', 'will alarm me', 'will fascinate me'];
var source5 = ['graceful', 'abrupt', 'fluid', 'jerky', 'steady', 'frenetic', 'deliberate', 'hasty', 'slow', 'rapid', 'measured', 'chaotic', 'smooth', 'aggressive', 'gentle', 'precise', 'awkward', 'elegant', 'forceful', 'languid']; // Added source5
btn.addEventListener("click", function() {
word1.textContent = getRandomWord(source1);
word2.textContent = getRandomWord(source2);
word3.textContent = getRandomWord(source3);
word4.textContent = getRandomWord(source4);
word5.textContent = getRandomWord(source5); // Set word5
});
function getRandomWord(sourceArray) {
var wordIndex = Math.floor(Math.random() * sourceArray.length);
return sourceArray[wordIndex];
}
</script>
</body>
</html>