-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (114 loc) · 5.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Links to access bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- link to attack css file -->
<link rel="stylesheet" href="bday.css">
<!-- link to attach js file -->
<script src="bday.js"></script>
<!-- using web fonts -->
<link href="https://fonts.googleapis.com/css2?family=Arvo&family=Libre+Baskerville:ital,wght@0,700;1,400&family=Patua+One&family=Source+Serif+Pro&display=swap" rel="stylesheet">
<title>HBD</title>
</head>
<body>
<!-- Navigation Bar -->
<nav id="navbar">
<div>
<ul>
<li><a href="#navbar"> Loads of Wishes</a></li>
<li><a href="#Photo_page">Photo Album</a></li>
<li><a href="#suprise_page">Suprise</a></li>
</ul>
</div>
</nav>
<!-- Happy birthday text -->
<section id="home" class='center'>
<span id="animation_text">HAPPY <br> BIRTHDAY <br> MALIKAAAAA <span>
</h1>
</section>
<!-- Photo Album -->
<section id="Photo_page">
<div class="container center" id="photo_album">
<h2>Refreshing Old Memories :)</h2>
<p>With every photo in album, there is a flashback of memory and nostalgia reloaded!</p>
<!-- Creating Carausel -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Dot Indicators for images -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
<li data-target="#myCarousel" data-slide-to="4"></li>
<li data-target="#myCarousel" data-slide-to="5"></li>
</ol>
<!-- Slideshow of images -->
<div class="carousel-inner">
<div class="item active">
<img src="1.jpeg" alt="1" id="one">
</div>
<div class="item">
<img src="2.jpeg" alt="Chicago" id="two">
</div>
<div class="item">
<img src="3.jpeg" alt="New York" id="three">
</div>
<div class="item">
<img src="4.jpeg" alt="New York" id="four">
</div>
<div class="item">
<img src="5.jpeg" alt="New York" id="five">
</div>
<div class="item">
<img src="6.jpeg" alt="New York" id="six">
</div>
<!-- Left Arrow keys -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<!-- Right arrow key -->
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</section>
<!-- Surprise Page -->
<section id=suprise_page>
<!-- Heading of Suprise Page -->
<div id="surprise" class="center">
<h2>Hey, There is a surprise for you!!! </h2>
</div>
<!-- Surprise Text -->
<div id="surprise_txt">
<p>Click to check your surprise!</p>
</div>
<!-- CLick me button -->
<div class="surprise">
<button id='surprise_btn' type="button"
onclick="document.getElementById('my_img').src='hug.gif';surprise_text();">
Click Me!
</button>
<img src="surprise.jpeg" alt="surprise" id="my_img">
</div>
<!-- javascript for surprise -->
<script>
function surprise_text() {
var x = document.getElementById("surprise_txt");
if (x.innerHTML === "Click to check your surprise!") {
x.innerHTML = "I was going to get something special for your birthday, then I thought what can be special then a hug :)";
} else {
x.innerHTML = "I was going to get something special for your birthday, then I thought what can be special then a hug :)";
}
}
</script>
</section>
</body>
</html>