-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
326 lines (309 loc) · 10.6 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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quiz-App</title>
<link rel="stylesheet" href="src/scss/styles.scss" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Oswald&family=Overpass+Mono:wght@300&display=swap"
rel="stylesheet"
/>
<script defer src="src/js/index.js"></script>
</head>
<body>
<header id="header1" class="header">
<h1 class="header__headline">Quiz-App</h1>
</header>
<main id="home">
<section class="card">
<button id="bookmark1" class="card__bookmark-button p-0"></button>
<h2 class="card__headline">Question:</h2>
<p class="card__text card__text--question">
What is the difference between method and property?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
Properties are basically information that an object has. Methods
are what an object can do. Example: You have an instance (object)
from a class named Vehicle, which can represent a car, a truck or
a motorbike.
</p>
</div>
</div>
<ul class="tag-list">
<li>JavaScript</li>
<li>Property</li>
<li>Method</li>
</ul>
</section>
<section class="card">
<button id="bookmark2" class="card__bookmark-button p-0"></button>
<h2 class="card__headline">Question:</h2>
<p class="card__text card__text--question">
What is a variable?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
Variable means anything that can vary. JavaScript includes
variables which hold the data value and it can be changed anytime.
JavaScript uses reserved keyword var to declare a variable. A
variable must have a unique name.
</p>
</div>
</div>
<ul class="tag-list">
<li>JavaScript</li>
<li>Basic</li>
<li>Variable</li>
</ul>
</section>
<section class="card">
<button id="bookmark3" class="card__bookmark-button p-0"></button>
<h2 class="card__headline">Question:</h2>
<p class="card__text card__text--question">
What should you keep in mind when naming your variables?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
A variable name should have a clean, obvious meaning, describing
the data that it stores. The name must contain only letters,
digits, or the symbols “$” and underscore “_”. And the first
character must not be a digit.
</p>
<p>
Some names cannot be used as variables because they are used by
the language itself.
</p>
</div>
</div>
<ul class="tag-list">
<li>JavaScript</li>
<li>Variable</li>
<li>Naming</li>
</ul>
</section>
</main>
<header id="header2" class="header displaynone">
<h1 class="header__headline">Bookmarks</h1>
</header>
<main id="bookmarks" class="displaynone">
<section class="card">
<button
class="card__bookmark-button p-0 card__bookmark-button--active"
></button>
<h2>Question:</h2>
<p class="card__text card__text--question">
What is a data type?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
A value in JavaScript is always of a certain type. There are 8
different data types for example string or number.
</p>
</div>
</div>
<ul class="tag-list">
<li>JavaScript</li>
<li>Data Type</li>
<li>Value</li>
</ul>
</section>
<section class="card">
<button
class="card__bookmark-button p-0 card__bookmark-button--active"
></button>
<h2>Question:</h2>
<p class="card__text card__text--question">
How does JavaScript recognize the string type?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
In JavaScript, there are 3 types of quotes.
</p>
<ul>
<li>Double quotes: "Hello".</li>
<li>Single quotes: 'Hello'.</li>
<li>Backticks: `Hello`.</li>
</ul>
</div>
</div>
<ul class="tag-list">
<li>JavaScript</li>
<li>Data type</li>
<li>String</li>
</ul>
</section>
<section class="card">
<button
class="card__bookmark-button p-0 card__bookmark-button--active"
></button>
<h2>Question:</h2>
<p class="card__text card__text--question">
What’s the difference between ‘==’ and ‘===’?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<ul>
<li>= is an assignment operator</li>
<li>== is an equality test (loose comparison / looseEquals)</li>
<li>
=== checks the equality without type conversion (strict
comparison / strictEquals).
</li>
</ul>
</div>
</div>
<ul class="tag-list">
<li>Assignment</li>
<li>looseEquals</li>
<li>looseEquals</li>
</ul>
</section>
<section class="card">
<button
class="card__bookmark-button p-0 card__bookmark-button--active"
></button>
<h2>Question:</h2>
<p class="card__text card__text--question">
When comparing string via ‘>’, how does JS determine if this is true?
</p>
<div class="answer">
<button type="button" class="card__answer-button">Show answer</button>
<div class="content displaynone">
<h2 class="card__headline">Answer:</h2>
<p>
Greater/less than: a > b, a < b.
</p>
<p>
All comparison operators return a boolean value. true – means
“yes”, “correct” or “the truth”. false – means “no”, “wrong” or
“not the truth”.
</p>
</div>
</div>
<ul class="tag-list">
<li>Greater than</li>
<li>Less than</li>
<li>Boolean value</li>
</ul>
</section>
</main>
<header id="header3" class="header displaynone">
<h1 class="header__headline">Create</h1>
</header>
<main id="create" class="displaynone">
<section class="create">
<form class="create__form">
<label for="question" class="create__label">Add Question</label>
<textarea
class="create__form--input"
id="question"
name="question"
cols="35"
rows="6"
></textarea>
<label for="answer" class="create__label">Add Answer</label>
<textarea
class="create__form--input"
id="answer"
name="answer"
cols="35"
rows="6"
></textarea>
<label for="tags" class="create__label">Add Tag</label>
<textarea
class="create__form--input"
id="tags"
name="tags"
cols="35"
rows="6"
></textarea>
<div>
<button type="reset" class="submit-button">Submit</button>
</div>
</form>
</section>
</main>
<header id="header4" class="header displaynone">
<h1 class="header__headline">Profile</h1>
</header>
<main id="profile" class="card mb-150 displaynone">
<div class="profile__intro">
<img
class="profile__intro--image"
src="https://source.unsplash.com/500x500/?person"
alt="User's profile photo"
/>
<h2 class="profile__intro--name">User Name</h2>
</div>
<h2>About me:</h2>
<p>
Hi! I am a web designer/developer focused on crafting great web
experiences. Designing and Coding have been my passion since the days I
started working with computers.
</p>
<h2>Skills</h2>
<ul class="tag-list">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<div class="logout">
<button class="logout__button">LOGOUT</button>
<button class="light__button">Night-Mode</button>
<button class="night__button displaynone">
Day-Mode
</button>
</div>
</main>
<footer class="footer">
<nav class="footer__nav">
<a id="nav_home" href="#home"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="svg-filled"
>
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
</a>
<a id="nav_bookmark" href="#bookmarks"
><img src="img/bookmark.svg" alt="Bookmarks"
/></a>
<a id="nav_create" href="#create"
><img src="img/edit.svg" alt="Create"
/></a>
<a id="nav_profile" href="#profile"
><img src="img/users.svg" alt="profile"
/></a>
</nav>
</footer>
</body>
</html>