-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
115 lines (110 loc) · 4.43 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
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Happy Birthday</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
@font-face {
font-family: digit;
src: url('digital-7_mono.ttf') format("truetype");
}
</style>
<link href="css/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/garden_dev.js"></script>
<script type="text/javascript" src="js/functions_dev.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 (add_day_here)the day of (add_month_here), is your birthday.</span><br />
<span class="space"/><span class="comments">* So I created a page to celebrate this extraordinary day.</span><br />
<span class="space"/><span class="comments">* That page will show you a script 'will.sh'.</span><br />
<span class="space"/><span class="comments">*/</span><br />
birthday@girl ~ $ >> <span class="keyword">cd love && sh </span> will.sh(<span class="string">"(add_Birthday_Person_Name)"</span>);<br />
<span class="comments">// (add_Month_Day), 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">"add_year-month-day 00:00:00"</span>) ){</br>
u.age ++;</br>
}</br>
<span class="comments">// O! she doth teach the torches to burn bright</span><br />
<span class="comments">// It seems she hangs upon the cheek of night</span><br />
<span class="comments">// Like a rich jewel in an Ethiop's ear;</span><br />
<span class="comments">// Beauty too rich for use, for earth too dear.</span><br />
<span class="keyword">new</span> Thread (){<br />
@Override </br>
<span class="comments">// I wish you</span><br />
while(true){</br>
<span class="comments">// happiness,</span><br />
u.happiness ++;</br>
<span class="comments">// strength,</span><br />
u.strength ++;</br>
<span class="comments">// more awesome things,</span><br />
u.more_awesome_things ++;</br>
<span class="comments">// and everything you wish can be achieved.</span><br />
}.start()</br>
<span class="comments">// The last thing I want say, boring and ordinary, is:</span><br />
System.out.println(<span class="string">"Happy Birthday !!!"</span>);
</div>
<div id="loveHeart">
<canvas id="garden"></canvas>
<div id="words">
<div id="messages">
</br>
</br>
</br>
</br>
</br>
</br>
You defy stars from:
<div id="elapseClock"></div>
</div>
<div id="loveu">
"What's in a name? that which we call a rose<br>
By any other name would smell as sweet.”<br/>
<div class="signature">- W.Shakespeare</div>
</div>
</div>
</div>
</div>
<div id="copyright">
2017 © <a href="https://kruk.co">kruk.co</a>
</div>
</div>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
<!-- Example date: 1908.04.08-->
together.setFullYear(1908,4, 08);
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 = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
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>
</html>