-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
481 lines (460 loc) · 20.3 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
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!DOCTYPE html>
<html lang="en">
<head>
<title> pwetty penguin </title>
<link rel="stylesheet" href="index.css" />
<link rel="stylesheet" href="animate.css" />
</head>
<body>
<!-- NAVIGATION BAR-->
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="#news">News</a></li>
<li>
<a href="https://goo.gl/forms/9Jh1Y9dUPGXqvgqh1">Contact</a>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Penguin Info</a>
<div class="dropdown-content">
<a href="#ff">Fun Facts</a>
<a href="#st">The Dark Side of Penguins</a>
<a href="#pg">Photo Gallery</a>
<a href="#hop">Save Our Penguins</a>
</div> </li>
<li><a href="#about">About</a></li>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<a href="#" class="fa fa-facebook "></a>
<a href="#" class="fa fa-twitter "></a>
<a href="#" class="fa fa-snapchat"></a>
<a href="#" class="fa fa-pinterest "></a>
<a href="#" class="fa fa-instagram "></a>
</ul>
<!--HOME PAGE-->
<div class="topic">
<img src="fam.jpg" alt="Penguin Family" width="100%" height="630">
<div class="centered">
<div class="hi tada animated" style="font-family:Lucida handwriting;">THINK YOU KNOW EVERYTHING ABOUT PENGUINS?</div>
<div class="hi2 tada animated" style="font-family:ink free;"><b>Penguins are flipping adorable and lovable. However, is there a side of them that we are not aware of? </b></div>
</div>
</div>
<!--FUN FACT -->
<div id="ff">
<center><h1 style="font-family:Trebuchet MS;"><br>Fun Facts !!</h1></center>
<center><p><h1 style="font-family:ink free;"><mark>Here are some fun facts about penguins.</mark></h2></p></centre>
<div class="ffs">
<div class="fct" style="background-color:#FDEEF4;">
<h2 style="font-family:Forte;">#Fact1</h2>
<img src="swim.gif" alt="Penguin swim" width="100%" height="200">
<p><h2 style="font-family:ink free;"> Penguins can't fly but they can dive deeper than any other bird species and are able to stay underwater up to 20 minutes at a time.</h2></p><br><br><br>
<p></p>
</div>
<div class="fct" style="background-color:#E3E4FA;">
<h2 style="font-family:Forte;">#Fact2</h2>
<img src="egg.gif" alt="Penguin egg" width="100%" height="200">
<p><h2 style="font-family:ink free;"> Emperor penguins and king penguins do not make any nests. Instead, a single egg for each mated pair is incubated on a parent’s feet and kept warm by a flap of skin called a brood pouch. Incubation can take 8-10 weeks and occurs during winter, so the egg must always be kept warm and safe.</h2></p>
</div>
<div class="fct" style="background-color:#E9CFEC;">
<h2 style="font-family:Forte;">#Fact3</h2>
<img src="rock.gif" alt="Penguin rock" width="100%" height="200">
<p><h2 style="font-family:ink free;"> Male Adelies penguins give the females rocks as gifts.</h2></p><br><br><br><br>
<p></p>
</div>
</div>
</div>
<!-- DARKSIDE OF PENGUINS -->
<div id="st">
<br><br><br><br>
<center><h1 style="font-family:Trebuchet MS;">The Dark Side of Penguins</h1></center>
<center><p><h2 style="font-family:ink free;"> <mark>If you think penguins are just cute and cuddly creatures, you're wrong.</mark></h2><p></center>
<div class="ffs">
<div class="fct" style="background-color:#E6A9EC;">
<h2 style="font-family:Forte;">#Truth1</h2>
<a href="https://www.youtube.com/watch?v=MlbxRBfGAr0&t=8s">
<img src="steal.gif" alt="Penguin stealing" width="100%" height="200">
</a>
<p><h2 style="font-family:ink free;">Penguins steal others' stones to make a perfect nest to attract female. (Click on the gif to redirect to a Youtube video.)</h2> </p>
</div>
<div class="fct" style="background-color:#EDE8AB;">
<h2 style="font-family:Forte;">#Truth2</h2>
<img src="kidnap2.jpg" alt="Penguin kidnap" width="100%" height="200">
<p><h2 style="font-family:ink free;"> When penguin mothers lose a chick, they sometimes attempt to kidnap another mother's chick.</h2></p>
</div>
<div class="fct" style="background-color:#ABEDE8;">
<h2 style="font-family:Forte;">#Truth3</h2>
<img src="push.gif" alt="Penguin push" width="100%" height="200">
<p><h2 style="font-family:ink free;">Penguins have been known to push a fellow penguin into the water to check if the area is safe from predators.</h2></p>
</div>
</div>
</div>
</div>
<!-- PHOTO GALLERY -->
<div id="pg">
<br><br><br><br>
<center><h1 style="font-family:Trebuchet MS;">Photo Gallery</h1></center>
<center><p><h2 style="font-family:ink free;"><mark>Don't get dissapointed by the sad truths because they are just cute in whatever they are doing. Let's look at some of the pictures in our gallery. Hover on the pictures for descriptions and click on the pictures to enlarge.</mark></h2><p></center>
</div>
<!--penguin pics-->
<div class="gallery">
<div class="container">
<img src="happypenguin.jpg" alt="Happy penguin" onclick="openModal();currentSlide(1)" class="image">
<div class="middle">
<div class="text">Happy penguin</div>
</div>
</div>
<div class="container">
<img src="angry-penguin.jpg" alt="Angry penguin" onclick="openModal();currentSlide(2)" class="image">
<div class="middle">
<div class="text">Angry penguin</div>
</div>
</div>
<div class="container">
<img src="sad penguin.png" alt="Sad penguin" onclick="openModal();currentSlide(3)" class="image">
<div class="middle">
<div class="text">Sad penguin</div>
</div>
</div>
<div class="container">
<img src="shypenguin.jpg" alt="Shy penguin" onclick="openModal();currentSlide(4)" class="image">
<div class="middle">
<div class="text">Shy penguin</div>
</div>
</div>
<div class="container1">
<img src="hey dude.jpg" alt="Hey dude" onclick="openModal();currentSlide(5)" class="image">
<div class="middle">
<div class="text">Hey dude, whats up?</div>
</div>
</div>
<div class="container1">
<img src="mama.jpg" alt="baby penguin" onclick="openModal();currentSlide(6)" class="image">
<div class="middle">
<div class="text">Mama, I want fooddd</div>
</div>
</div>
<div class="container1">
<img src="believe.jpg" alt="Penguin tries to fly" onclick="openModal();currentSlide(7)" class="image">
<div class="middle">
<div class="text">I believe I can fly, oh wait but I can't ! I'm a bird anyway</div>
</div>
</div>
</div>
<!-- The Modal/Lightbox -->
<div id="myModal" class="modal">
<span class="close cursor" onclick="closeModal()">×</span>
<div class="modal-content">
<div class="mySlides">
<div class="numbertext">1 / 7</div>
<img src="happypenguin.jpg" width="100%" height="700" >
</div>
<div class="mySlides">
<div class="numbertext">2 / 7</div>
<img src="angry-penguin.jpg" width="100%" height="700">
</div>
<div class="mySlides">
<div class="numbertext">3 / 7</div>
<img src="sad penguin.png" width="100%" height="700">
</div>
<div class="mySlides">
<div class="numbertext">4 / 7</div>
<img src="shypenguin.jpg" width="100%" height="700">
</div>
<div class="mySlides">
<div class="numbertext">5 / 7</div>
<img src="hey dude.jpg" width="100%" height="700">
</div>
<div class="mySlides">
<div class="numbertext">6 / 7</div>
<img src="mama.jpg" width="100%" height="700">
</div>
<div class="mySlides">
<div class="numbertext">7 / 7</div>
<img src="believe.jpg" width="100%" height="700">
</div>
<!-- Next/previous controls -->
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<!-- Caption text -->
<div class="caption-container">
<p id="caption"></p>
</div>
<!-- Thumbnail image controls -->
<div class="container">
<img class="demo" src="happypenguin.jpg" onclick="currentSlide(1)" alt="Happy penguin" width="100%" height="300">
</div>
<div class="container">
<img class="demo" src="angry-penguin.jpg" onclick="currentSlide(2)" alt="Angry penguin" width="100%" height="300">
</div>
<div class="container">
<img class="demo" src="sad penguin.png" onclick="currentSlide(3)" alt="Sad penguin" width="100%" height="300">
</div>
<div class="container">
<img class="demo" src="shypenguin.jpg" onclick="currentSlide(4)" alt="Shy penguin" width="100%" height="300">
</div>
<div class="container1">
<img class="demo" src="hey dude.jpg" onclick="currentSlide(5)" alt="Hey dude" width="100%" height="300">
</div>
<div class="container1">
<img class="demo" src="mama.jpg" onclick="currentSlide(6)" alt="Baby penguin" width="100%" height="300">
</div>
<div class="container1">
<img class="demo" src="believe.jpg" onclick="currentSlide(7)" alt="Penguin tries to fly" width="100%" height="300">
</div>
</div>
</div>
<script>
// Open the Modal
function openModal() {
document.getElementById('myModal').style.display = "block";
}
// Close the Modal
function closeModal() {
document.getElementById('myModal').style.display = "none";
}
var slideIndex = 1;
showSlides(slideIndex);
// Next/previous controls
function plusSlides(n) {
showSlides(slideIndex += n);
}
// Thumbnail image controls
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("demo");
var captionText = document.getElementById("caption");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" activate", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " activate";
captionText.innerHTML = dots[slideIndex-1].alt;
}
</script>
<!--SAVE PENGUIN-->
<div class="savepenguins">
<div id="hop">
<center><h1 style="font-family:Trebuchet MS;">Please Save Our Penguins!!</h1></center>
<p1><h2 style="font-family:ink free;"><mark>Penguins are the second most threatened group of seabirds after albatrosses. A 2008 WWF study estimated that 50% of the Emperor penguins and 75% of the Adelie penguins will likely decline or disappear if global average temperatures rise above pre-industrial levels by just 2 degrees Celcius; a scenario that could be reached in less than 40 years.
Help save the penguins from the verge of extiction so that the future generation can see their cuteness. Every action matters!</mark></h2><p1>
<br><br>
<a href="https://penguin.birdlife.org/gb/">
<img src="save penguin.jpg" alt="Donate now to save the penguins!" width="600" height="150" class="center" border:0>
</a>
</div>
</div>
<!--ABOUT US-->
<div id="about">
<br><br><br><br>
<center><h1 style="font-family:Trebuchet MS;">About Us</h1></center>
<center><p><h2 style="font-family:ink free;"><span>We are from Htmlkiddos team of Shefcodefirstgirls 2018.</span></h2></p></center>
<div class="row">
<div class="column" style="background-color:#F0E68C;">
<img src="shamira.jpg" width="200" height="250" alt="Avatar" class="center">
<center><h2 style="font-family:Kristen ITC">Norshamira Mazlan</h2></center>
<center><h3 style="font-family:calibri">University of Sheffield</center>
<center><h3 style="font-family:calibri">BEng Mechanical Engineering</center>
</div>
<div class="column" style="background-color:#F0E68C;">
<img src="faizin.jpg" width="200" height="250" alt="Avatar" class="center">
<center><h2 style="font-family:Kristen ITC">Nur Faizin Zaharudin</h2></center>
<center><h3 style="font-family:calibri">University of Sheffield</h3></center>
<center><h3 style="font-family:calibri">BEng Mechanical Engineering</h3></center>
</div>
<div class="column" style="background-color:#F0E68C;">
<img src="fatin.jpeg" width="200" height="250" alt="Avatar" class="center">
<center><h2 style="font-family:Kristen ITC">Fatin Nur Izzati Mazlan</h2></center>
<center><h3 style="font-family:calibri">University of Sheffield</h3></center>
<center><h3 style="font-family:calibri">BEng Electrical Engineering</h3></center>
</div>
</div>
</div>
/*FOR SPARKLING CURSOR*/
<script type="text/javascript">
// <![CDATA[
var colour="#ff00f0";
var sparkles=120;
var x=ox=400;
var y=oy=300;
var swide=800;
var shigh=600;
var sleft=sdown=0;
var tiny=new Array();
var star=new Array();
var starv=new Array();
var starx=new Array();
var stary=new Array();
var tinyx=new Array();
var tinyy=new Array();
var tinyv=new Array();
window.onload=function() { if (document.getElementById) {
var i, rats, rlef, rdow;
for (var i=0; i<sparkles; i++) {
var rats=createDiv(3, 3);
rats.style.visibility="hidden";
document.body.appendChild(tiny[i]=rats);
starv[i]=0;
tinyv[i]=0;
var rats=createDiv(5, 5);
rats.style.backgroundColor="transparent";
rats.style.visibility="hidden";
var rlef=createDiv(1, 5);
var rdow=createDiv(5, 1);
rats.appendChild(rlef);
rats.appendChild(rdow);
rlef.style.top="2px";
rlef.style.left="0px";
rdow.style.top="0px";
rdow.style.left="2px";
document.body.appendChild(star[i]=rats);
}
set_width();
sparkle();
}}
function sparkle() {
var c;
if (x!=ox || y!=oy) {
ox=x;
oy=y;
for (c=0; c<sparkles; c++) if (!starv[c]) {
star[c].style.left=(starx[c]=x)+"px";
star[c].style.top=(stary[c]=y)+"px";
star[c].style.clip="rect(0px, 5px, 5px, 0px)";
star[c].style.visibility="visible";
starv[c]=50;
break;
}
}
for (c=0; c<sparkles; c++) {
if (starv[c]) update_star(c);
if (tinyv[c]) update_tiny(c);
}
setTimeout("sparkle()", 40);
}
function update_star(i) {
if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
if (starv[i]) {
stary[i]+=1+Math.random()*3;
if (stary[i]<shigh+sdown) {
star[i].style.top=stary[i]+"px";
starx[i]+=(i%5-2)/5;
star[i].style.left=starx[i]+"px";
}
else {
star[i].style.visibility="hidden";
starv[i]=0;
return;
}
}
else {
tinyv[i]=50;
tiny[i].style.top=(tinyy[i]=stary[i])+"px";
tiny[i].style.left=(tinyx[i]=starx[i])+"px";
tiny[i].style.width="2px";
tiny[i].style.height="2px";
star[i].style.visibility="hidden";
tiny[i].style.visibility="visible"
}
}
function update_tiny(i) {
if (--tinyv[i]==25) {
tiny[i].style.width="1px";
tiny[i].style.height="1px";
}
if (tinyv[i]) {
tinyy[i]+=1+Math.random()*3;
if (tinyy[i]<shigh+sdown) {
tiny[i].style.top=tinyy[i]+"px";
tinyx[i]+=(i%5-2)/5;
tiny[i].style.left=tinyx[i]+"px";
}
else {
tiny[i].style.visibility="hidden";
tinyv[i]=0;
return;
}
}
else tiny[i].style.visibility="hidden";
}
document.onmousemove=mouse;
function mouse(e) {
set_scroll();
y=(e)?e.pageY:event.y+sdown;
x=(e)?e.pageX:event.x+sleft;
}
function set_scroll() {
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
}
window.onresize=set_width;
function set_width() {
if (typeof(self.innerWidth)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
}
function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.height=height+"px";
div.style.width=width+"px";
div.style.overflow="hidden";
div.style.backgroundColor=colour;
return (div);
}
// ]]>
</script>
<!-- TO TOP BUTTON -->
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
<!--When the user scrolls down 20px from the top of the document, show the button-->
<script>
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
<!-- When the user clicks on the button, scroll to the top of the document -->
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- FOOTER -->
<div class="footer" <h3 style="font-family:segoe script;"></h3>
<p>#shefcodefirstgirls</p>
<p>Thank you for visiting our website :)</P>
</div>
</body>
</html>