-
-
Notifications
You must be signed in to change notification settings - Fork 360
/
song.html
180 lines (164 loc) · 11.2 KB
/
song.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
<!DOCTYPE HTML>
<html>
<!--
██╗ ██╗ █████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗ ██╗██████╗ ████████╗██╗ ██╗██████╗ █████╗ ██╗ ██╗ █████╗ █████╗ ███████╗████████╗██╗ ██╗ █████╗
██║ ██║██╔══██╗██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔══██╗██║██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██║ ██║██╔══██╗
███████║███████║██████╔╝██████╔╝ ╚████╔╝ ██████╔╝██║██████╔╝ ██║ ███████║██║ ██║███████║ ╚████╔╝ ███████║███████║███████╗ ██║ ███████║███████║
██╔══██║██╔══██║██╔═══╝ ██╔═══╝ ╚██╔╝ ██╔══██╗██║██╔══██╗ ██║ ██╔══██║██║ ██║██╔══██║ ╚██╔╝ ██╔══██║██╔══██║╚════██║ ██║ ██╔══██║██╔══██║
██║ ██║██║ ██║██║ ██║ ██║ ██████╔╝██║██║ ██║ ██║ ██║ ██║██████╔╝██║ ██║ ██║ ██║ ██║██║ ██║███████║ ██║ ██║ ██║██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝
-->
<!--
▄████████ ███ ▄████████ ▄██ ▄ ▀█████████▄ ▄█ ▄████████ ▄████████ ▄████████ ▄████████ ████████▄
███ ███ ▀█████████▄ ███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀███
███ █▀ ▀███▀▀██ ███ ███ ███▄▄▄███ ███ ███ ███ ███ █▀ ███ █▀ ███ █▀ ███ █▀ ███ ███
███ ███ ▀ ███ ███ ▀▀▀▀▀▀███ ▄███▄▄▄██▀ ███ ▄███▄▄▄ ███ ███ ▄███▄▄▄ ███ ███
▀███████████ ███ ▀███████████ ▄██ ███ ▀▀███▀▀▀██▄ ███ ▀▀███▀▀▀ ▀███████████ ▀███████████ ▀▀███▀▀▀ ███ ███
███ ███ ███ ███ ███ ███ ███ ██▄ ███ ███ █▄ ███ ███ ███ █▄ ███ ███
▄█ ███ ███ ███ ███ ███ ███ ███ ███ ███▌ ▄ ███ ███ ▄█ ███ ▄█ ███ ███ ███ ███ ▄███
▄████████▀ ▄████▀ ███ █▀ ▀█████▀ ▄█████████▀ █████▄▄██ ██████████ ▄████████▀ ▄████████▀ ██████████ ████████▀
▀
-->
<head>
<title>Happy Birthday Aastha</title>
<meta charset="utf-8">
<meta name="language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="distribution" content="Global" />
<meta http-equiv="Cache-control" content="public">
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="7 days"/>
<meta name="copyright" content="Vinit Shahdeo | VIT Vellore"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="May your birthday bring you as much as you happiness
you give to every one who knows you.">
<meta name="author" content="Vinit Shahdeo">
<meta property="og:type" content="website" />
<meta property="og:title" content="Happy Birthday Aastha!" />
<meta property="og:description" content="May your birthday bring you as much as you happiness
you give to every one who knows you" />
<meta property="og:image" content="https://scontent.cdninstagram.com/t51.2885-19/s320x320/17332840_428978084117611_7673563513641500672_a.jpg" />
<meta property="og:url" content="https://vinitshahdeo.github.io/HBD" />
<meta property="og:site_name" content="Happy Birthday!" />
<meta name="twitter:card" content="website">
<meta name="twitter:site" content="Happy Birthday Aastha!">
<meta name="twitter:title" content="Happy Birthday Aastha!">
<meta name="twitter:description" content="May your birthday bring you as much as you happiness
you give to every one who knows you">
<meta name="twitter:image" content="https://scontent.cdninstagram.com/t51.2885-19/s320x320/17332840_428978084117611_7673563513641500672_a.jpg">
<meta itemprop="name" content="Happy Birthday Aastha!">
<meta itemprop="description" content="May your birthday bring you as much as you happiness
you give to every one who knows you">
<meta itemprop="image" content="https://scontent.cdninstagram.com/t51.2885-19/s320x320/17332840_428978084117611_7673563513641500672_a.jpg">
<style type="text/css">
*{
background: #fff;
}
#loveHeart{
background: transparent;
background: url('guitarboy.gif') no-repeat center;
}
#copyright{
font-family: 'Montserrat',sans-serif;
opacity: 0.8;
}
#copyright a{
text-decoration: none;
}
#copyright a:hover{
text-decoration: none;
color:#339933;
}
#hbd_song{
display: none;
}
</style>
<script>
window.onload = function() {
document.getElementById("hbd_song").play();
}
</script>
<link href="css/style1.css" type="text/css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="shortcut icon" href="./cake.png" type="image/png" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/birthday.js"></script>
<script type="text/javascript" src="js/hbd.js"></script>
</head>
<body>
<div id="mainDiv">
<div id="content">
<div id="code" >
<span class="comments">/**</span><br />
<span class="space"/><span class="comments">* Today, the 6th day of May, is your birthday.</span><br />
<span class="space"/><span class="comments">* So I created a webpage to celebrate this special day.</span><br />
<span class="space"/><span class="comments">*/</span><br />
Girl u = <span class="keyword">new</span> Girl(<span class="string">"Aastha Solanki"</span>);<br />
<span class="comments">// May 5th, when the bell rang, your age increased </span><br />
Date currentTime = <span class="keyword">new</span> Date(); <br />
SimpleDateFormat formatter = <span class="keyword">new</span> SimpleDateFormat(<span class="string">"yyyy-MM-dd HH:mm:ss"</span>);<br />
String dateString = formatter.format(currentTime);<br />
if( dateString.equals(<span class="string">"2017-05-06 00:00:00"</span>) ){</br>
u.age ++;</br>
}</br>
<span class="comments">// My best wishes will be with you simultaneously.</span><br />
<span class="keyword">new</span> Thread (){<br />
@Override </br>
<span class="comments">// Forever and ever. I wish</span><br />
while(true){</br>
<span class="comments">// luckiness,</span><br />
u.fortune ++;</br>
<span class="comments">// happiness,</span><br />
u.happiness ++;</br>
<span class="comments">// and everything you wish can be achieved.</span><br />
}.start()</br>
<span class="comments">// The last thing I wanna say, boring and ordinary, is:</span><br />
System.out.println(<span class="string">"Happy Birthday!"</span>);
</div>
<div id="loveHeart">
<canvas id="garden" style="display:none"></canvas>
<audio id="hbd_song" src="audio/song.mp3" loop="loop"></audio>
</div>
</div>
<div id="copyright">
<hr>
<p>Made with love by <a href="#">Vinit Shahdeo</a></p>
</hr>
</div>
</div>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
together.setFullYear(1997,7, 9);
together.setHours(8);
together.setMinutes(0);
together.setSeconds(0);
together.setMilliseconds(0);
if (!document.createElement('canvas').getContext) {
var msg = document.createElement("div");
msg.id = "errorMsg";
msg.innerHTML = "Sorry, browser doesn't support this!";
document.body.appendChild(msg);
$("#code").css("display", "none")
$("#copyright").css("position", "absolute");
$("#copyright").css("bottom", "10px");
document.execCommand("stop");
} else {
setTimeout(function () {
startHeartAnimation();
}, 5000);
timeElapse(together);
setInterval(function () {
timeElapse(together);
}, 500);
adjustCodePosition();
$("#code").typewriter();
}
</script>
</body>
<!-- Made with love by Vinit Shahdeo -->
</html>