-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (107 loc) · 4.01 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
<!DOCTYPE HTML>
<html>
<head>
<title>Our Love Story</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style type="text/css">
@font-face {
font-family: digit;
src: url('digital.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.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
</head>
<body>
<div id="mainDiv">
<div id="content">
<div id="code">
<span class="comments">##</span><br/>
<span class="comments"># I am a programmer,</span><br/>
<span class="comments"># so I write code to celebrate Valentine's Day in coder's way.</span><br/>
<span class="comments">##</span><br/>
i = Boy(<span class="string">"Cyrus Mbithi"</span>);<br/>
u = Girl(<span class="string">"Florence Nzila"</span>);<br/>
<span class="comments"># August 2021, I met you through a friend. </span><br/>
i.meet(u)<br/>
<span class="comments"># Afterwards, I confessed to you. </span><br/>
i.confess(u)<br/>
<span class="comments"># September 04, 2021, You became my girlfriend.</span><br/>
u.accepted(i)<br/>
<span class="comments"># Since then, we spent harmony happiness life every day.</span><br/>
happy(u, i)<br/>
<span class="comments"># We enjoy studying together.</span><br/>
study(u, i)<br/>
<span class="comments"># We enjoy cuisine together.</span><br/>
dine(u, i)<br/>
<span class="comments"># We enjoy appointment together.</span><br/>
appoint(u, i)<br/>
<span class="comments"># We enjoy vacation together.</span><br/>
vacation(u, i)<br/>
<span class="comments"># Sometimes there are a few conflicts between us.</span><br/>
conflict(u, i, sometimes=<span class="keyword">True</span>)<br/>
<span class="comments"># But we are getting more and more in harmony together.</span><br/>
u.in_harmony_with(i) <br/>
i.in_harmony_with(u) <br/>
<span class="comments"># You are the greatest love of my life.</span><br/>
while <span class="keyword">True</span>:<br/>
<span class="placeholder"></span><span class="keyword">if</span> u.with(i):<br/>
<span class="placeholder"></span><span class="placeholder"></span>u = everything<br/>
<span class="placeholder"></span><span class="keyword">else</span>:<br/>
<span class="placeholder"></span><span class="placeholder"></span>everything = u<br/>
<span class="comments"># I love you forever.</span><br/>
</div>
<div id="loveHeart">
<canvas id="garden"></canvas>
<div id="words">
<div id="messages">
Flora, I have fallen in love with you for
<div id="elapseClock"></div>
</div>
<div id="loveu">
Love u forever and ever.<br/>
<div class="signature">- Cyrus | Nzila</div>
</div>
</div>
</div>
</div>
<div id="copyright">
Copyright © 2023 <a href='http://cyrusnzila.com'>cyrusnzila.com</a> 2021-present
</div>
</div>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
//set date counter
together.setFullYear(2021, 08, 07);
together.setHours(15);
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>