-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathindex.html
135 lines (129 loc) · 4.59 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>
<head>
<title>Happy Birthday Shivanshu</title>
<meta charset="utf-8" />
<meta name="language" content="en-us" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
* {
background: #fff;
}
#loveHeart {
background: transparent;
background: url("smile.gif") no-repeat center;
}
#copyright {
font-family: "Montserrat", sans-serif;
}
#copyright a {
text-decoration: none;
}
#copyright a:hover {
text-decoration: none;
color: royalblue;
}
#hbd_song {
display: none;
}
#disc {
color: lightgray;
font-weight: bold;
font-size: 13px;
}
</style>
<link href="css/style1.css" type="text/css" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css?family=Montserrat"
rel="stylesheet"
/>
<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>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
</head>
<body>
<div style="padding-top: 10px;" class="section">
<div class="columns">
<div class="column is-12">
<center>
<audio controls loop>
<source src="song.mp3" type="audio/mpeg">
</audio>
<br />
<span class="disc">Disclaimer : Hey Man, This time again stuck with Autoplay thing, Just Play it Manually, Scroll your screen and Enjoy! For Better view Use Laptop </span>
</center>
</div>
</div>
<br />
<br />
<div class="columns">
<div id="code" class="column is-6 is-offset-2">
<span class="comments">/**</span><br />
<span class="space"/><span class="comments">* Today, the 29th 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 />
Boy u = <span class="keyword">new</span> Boy(<span class="string">"Shivanshu Mathur"</span>);<br />
<span class="comments">// May 28th, 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">"2020-05-29 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:</span><br />
System.out.println(<span class="string">"Happy Birthday!"</span>);
</div>
<div id="loveHeart" class="is-4 column">
<canvas id="garden" style="display:none"></canvas>
</div>
</div>
<br />
<hr />
<div class="columns">
<div class="column is-12" id="copyright">
<center>
<p>Made with love by <a href="https://www.facebook.com/smilegupta.1998" target="_blank">Smile Gupta</a></p>
</center>
</div>
</div>
</div>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
together.setFullYear(1999, 5, 29);
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 {
adjustCodePosition();
$("#code").typewriter();
}
</script>
</body>
</html>