-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment05.html
More file actions
416 lines (343 loc) · 13.5 KB
/
Copy pathassignment05.html
File metadata and controls
416 lines (343 loc) · 13.5 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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!DOCTYPE html>
<html lang="en">
<title>
National Museum of Funeral History
</title>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A markup of the National Funeral History Museum">
</head>
<style>
html {
position: absolute;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background-color: transparent;
color: #175E17;
font-size: 1em;
}
body {
background-color: white;
}
hr {
border-color: #175E17;
border-style: double;
}
nav {
padding-bottom: 2em;
}
#navMenu {
color: #175E17;
}
ul {
float: right;
}
li {
float: left;
list-style-type: none;
padding: 2em;
}
button {
background-color: black;
color: #959c15;
padding: 1em;
box-shadow: 3px 5px gray;
top: auto;
}
button:focus {
background-color: black;
padding: 1em;
box-shadow: 3px 5px coral;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
position: static;
width: auto;
height: auto;
}
button:hover {
background-color: black;
color: coral;
padding: 1em;
box-shadow: 3px 5px coral;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
position: static;
width: auto;
height: auto;
}
button:active {
color: rgb(170, 170, 108);
background-color: transparent;
padding: 1em;
box-shadow: 3px 5px gray;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
position: static;
width: auto;
height: auto;
}
#BgFontButton {
color: transparent;
width: 4em;
height: 4em;
padding: 0.5em;
background-image: url("./icons/big.png");
background-size: cover;
}
#SlFontButton {
color: transparent;
width: 4em;
height: 4em;
padding: 0.5em;
background-image: url("./icons/small.png");
background-size: cover;
}
#DarkMButton {
color: transparent;
width: 4em;
height: 4em;
padding: 0.5em;
background-image: url("./icons/darkmode.png");
background-size: cover;
}
.dark-mode {
background-color: black;
color: white;
}
a.dark-mode {
color: white;
}
h1 {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align: center;
}
#w {
font-size: 3em;
}
h2 {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align: center;
}
a:any-link {
color: #175E17;
background-color: transparent;
text-decoration: none;
font-style: italic;
}
a:focus {
color: #175E17;
filter: grayscale(1);
background-color: transparent;
text-decoration: none;
font-style: bold;
}
a:visited {
color: rgb(165, 71, 37);
background-color: transparent;
text-decoration: none;
}
a:hover {
color: goldenrod;
background-color: transparent;
text-decoration: underline;
}
a:active {
color: rgb(91, 91, 53);
background-color: transparent;
text-decoration: underline;
}
img {
width: 1000px;
}
.social-img {
position: relative;
margin: 1em;
width: 50px
}
.social-img:hover {
filter: grayscale(1);
}
</style>
<body>
<nav id="navMenu">
<a href="https://www.nmfh.org/visit-the-museum/" target="_blank">Visit the Museum </a>|
<a href="https://www.nmfh.org/exhibits/" target="_blank">Exhibits</a>|
<a href="https://www.nmfh.org/donate/" target="_blank">Donate </a>|
<a href="https://www.nmfh.org/shop/" target="_blank">Shop </a>|
<a href="https://www.nmfh.org/education/" target="_blank">Education </a>|
<a href="https://www.nmfh.org/about/" target="_blank">About </a>|
</nav>
<header id="top">
<button id="skiptocontent" class id="nav" onclick=" location.href='#jazz'">
Skip to Content
</button>
<button id="skiptodocumentation" class id="documentation" onclick="location.href='#doc'">
Skip to Documentation
</button>
<ul>
<li><button type="button" id="SlFontButton" aria-label="make font smaller"> </button></li>
<li><button type="button" id="BgFontButton" aria-label="make font bigger"></button></li>
<li><button type="button" id="DarkMButton" aria-label="turn dark mode on and off"></button></li>
</ul>
<br><br><br><br><br><br><br><br><br>
</header>
<main>
<h1 id="w">Welcome</h1>
<p>The National Museum of Funeral History is an educational experience like no other
and
offers something for everyone. Discover America’s largest collection of
authentic,
historical funeral service items. Learn about caskets and coffins, hearses
through
history, plus the funerals of Presidents, Popes, celebrities and more while you
witness
the cultural heritage of the funeral service industry and its time-honored
tradition
of
compassion.
<hr>
</p>
<section id="jazz">
<h2>Jazz Funerals of New Orleans</h2>
<p>The museum's new exhibit opens on November 12. This exhibition will focus on
how
a
common way to bid farewell to a loved one originated with a jazz funeral or
a
funeral with music that is now a tradition unique to the city of New
Orleans,
especially among the African American community.
<a href="https://www.nmfh.org/exhibits/permanent-exhibits/jazz-funerals-of-new-orleans"
title="Jazz Funerals of New Orleans">Click Here To Learn More</a>
</p>
</section>
<h2>The History of Cremation<br>Now Open</h2>
<p>The Museum and the Cremation Association of North America (CANA) have teamed up for
this special exhibit, which showcases cremation through the ages and how we
memorialize our dearly departed.
<a href="https://www.nmfh.org/exhibits/permanent-exhibits/the-history-of-cremation"
title="The History of Cremation<br>Now Open">View More</a>
</p>
<h2>Important Update</h2>
<p>The museum is open! We are constantly monitoring Harris County and CDC
recommendations. The safety and health of our visitors and staff are of
utmost
importance. Masks are required for all visitors over the age of 10
throughout
the
museum and social distancing procedures are in place.
<a href="https://www.nmfh.org/visit-the-museum/" title="Important Update" target="_blank">Click Here to
Learn More</a>
</p>
<h2>Visit Our Gift Shop</h2>
<p>Visit the Museum's gift shop for a variety of unique gifts and one-of-a-kind
trinkets
and treasures.
<a href="https://www.nmfh.org/exhibits/permanent-exhibits/bush-memorial-exhibit"
title="George H.W. Bush Memorial Exhibit Now Open">Click Here for More
Info</a>
</p>
<h2>The 27th Annual Charity Golf Classic<br>Save the Date</h2>
<p>Sponsor Appreciation Night: November 7, 2021 <br>
NMFH Golf Classic: November 8, 2021
<a href="https://www.nmfh.org/donate/charity-golf-classic"
title="The 27th Annual Charity Golf Classic<br>Save the Date" target="_blank">Click Here to Read
More</a>
</p>
<h2>NMFH Wins<br>Best Museum Award!</h2>
<p>"Houston is home to some truly great museums with huge collections and
rotating
exhibits, but when it comes to showing someone Houston's most interesting
museum,
it's hard to beat the National Museum of Funeral History." –Houston Press
<a href="https://www.houstonpress.com/arts/best-of-houston-2019-best-museum-11068766"
title="NMFH Wins<br>Best Museum Award!" target="_blank">Click Here to View
More</a>
</p>
<hr>
<article id="hours">
<h1>Hours</h1>
<p>Monday – Friday: 10am – 4pm</p>
<p>Saturday: 10am – 5pm</p>
<p>Sunday: 12pm – 5pm</p>
<hr>
</article>
</main>
<script>
var myBigFontBTN = document.querySelector("#BgFontButton");
var myBody = document.querySelector("body");
var myHeader = document.querySelector("header");
myBigFontBTN.addEventListener("click", MakeFontBigger);
function MakeFontBigger() {
// change font-size;
myBody.style.fontSize = "2em";
}
var mySmallFontBTN = document.querySelector("#SlFontButton");
mySmallFontBTN.addEventListener("click", MakeFontSmaller);
function MakeFontSmaller() {
// change font-size;
myBody.style.fontSize = "1em";
}
var myDarkMBTN = document.querySelector("#DarkMButton");
myDarkMBTN.addEventListener("click", MakeItDark);
function MakeItDark() {
myBody.classList.toggle("dark-mode");
myHeader.classList.toggle("dark-mode");
const allLinks = document.links;
for (let link of allLinks) {
link.classList.toggle("dark-mode-link");
}
}
</script>
</body>
<footer>
<p>© 2021 National Museum of Funeral History (NMFH)</p>
<p>All Rights Reserved</p>
<p>Privacy Policy</p>
<p>Shipping Policy</p>
<a href="https://www.facebook.com/funeralmuseum/" target="_black"><img
src="https://www.nmfh.org/assets/img/elements/footer_fbook.svg" class="social-img" alt="Facebook"
title="Facebook" aria-label="visit National Funeral History Museum FaceBook"></a>
<a href="https://twitter.com/funeralmuseum/" target="_black"><img
src="https://www.nmfh.org/assets/img/elements/footer_twitter.svg" class="social-img" alt="Twitter"
title="Twitter" aria-label="visit National Funeral History Museum Twitter"></a>
<a href="https://www.flickr.com/photos/135226701@N05/" target="_black"><img
src="https://www.nmfh.org/assets/img/elements/footer_flickr.svg" class="social-img" alt="Flickr"
title="Flickr" aria-label="visit National Funeral History Museum Flickr"></a>
<a href="https://www.tripadvisor.com/Attraction_Review-g56003-d106117-Reviews-National_Museum_of_Funeral_History-Houston_Texas.html"
target="_black"><img src="https://www.nmfh.org/assets/img/elements/footer_tripadv.svg" class="social-img"
alt="Trip Advisor" title="Trip Advisor" aria-label="visit National Funeral History Museum Trip Advisor"></a>
<section>
<p style=" font-size: medium;">
This website is a markup of the original <a href="https://www.nmfh.org/" target="_blank">National Museum
of Funeral History</a>. The work is
only for the assignment02,
DH150: Web-coding for UX by Labiba Alam. Here is the accessibility/seo audit result with the
original scores shown right below and the new scores below the orginal scores: <br>
<hr>
<img src="./img/Scores3.jpg" alt="original accessibility and seo scores"> <br> <br>
<hr>
<img src="./img/Scores2.jpg" alt="new markup accessibility and seo scores"> <br> <br>
<hr>
<section id="back">
<button id="backtotop" class id="nav" onclick=" location.href='#top'">
Back to Top
</button>
</section>
<section id="doc">
<h2>Web Documentation</h2>
I chose to improve assignment04 by adding a text increasing icon and a text decreasing icon as well as a
toggleable dark mode button. After following the demo and
adding aria labels. I noticed that the Accessibility score went down because of the low contrast between the
white background and the font color, So I changed the
font color to a darker shade using <a
href="https://wave.webaim.org/report#/https://lisa58.github.io/DH150/Week5/assignment05.html">wave.webaim.org</a>
to help
me pick a color. I also made the navigation bar visible this time. This all improved the Accessibility Score
and brought it back to 100, but SEO went down to 91 from 100 because
of a robot.txt error. I didn't entirely understand this error, but after I made sure all the links had
"https://," this error was fixed, bringing the SEO score to 100 again. I did more testing with ARC Toolkit
and found
no major errors. Afterwards, I used the Chrome screen reader extension and tabbed through my website and
didn't find any major errors there either since the aria-labels were called out properly.
<br>
</p>
</section>
</footer>
</html>