-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (114 loc) · 4.89 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
<!DOCTYPE html>
<html>
<head>
<title>给我挚爱的人 - 文玉 </title>
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta content="initial-scale=1,user-scalable=no" name="viewport">
<link rel="icon" href="./images/love.gif" type='image/x-icon' />
<link rel="stylesheet" href="css/default.css" type="text/css"></link>
<script type="text/javascript" src="jquery-1.8.0.js"></script>
<script type="text/javascript" src="jiangzz.plugin.heart.js"></script>
<script type="text/javascript" src="jquery.let_it_snow.js"></script>
<script type="text/javascript">
$(function(){
$("#heartCanvas").sweetheart();
$("#bg").drawbg();
$("#flower1").let_it_snow({image:'images/th4.png',count:5,speed:0,windPower:0,size:8});
$("#flower2").let_it_snow({image:'images/th1.png',count:15,speed:0,windPower:0,size:3});
$("#flower3").let_it_snow({count:60});
$("#code").typewriter();
setTimeout(function(){
// 文字显示动画
var together = new Date(2014,2,20);
$("#words").fadeIn("slow",function(){
together.setMilliseconds(0);
timeElapse(together);
setInterval(function () {
timeElapse(together);
}, 1000);
window.setInterval(function(){
$("#heart").clone().appendTo($("#heart").parent("div"));
$("#heart").siblings().animate({margin:"-=10",width:"+=20",height:"+=20",opacity: "0"},200,function(){
$(this).remove();
});
},800);
});
}, 5000);
//音乐logo
$("#audio-btn").click(function(){
var className = $(this).attr('class');
var ids = document.getElementById("media");
if(className == 'on'){
$(this).removeClass('on').addClass('off');
}else{
$(this).removeClass('off').addClass('on');
}
if(className == 'on'){
ids.pause()
}else{
ids.play();
}
});
$("#media").bind("play",function(){
$("#audio-btn").addClass("on");
});
});
</script>
</head>
<body onorientationchange="window.location.reload(true);" oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' >
<canvas id="bg"></canvas>
<canvas id="flower1"></canvas>
<canvas id="flower2"></canvas>
<canvas id="flower3"></canvas>
<div id="leftPanel" >
<div id="code" >
<span class="comments">/**</span><br>
<span class="space" title="The day I meet you again"><span class="comments" >*Since 2014-03-20 pm</span><br/>
<span class="space"><span class="comments">*Up to now...</span><br/>
<span class="space"><span class="comments">*/</span><br/>
Boy name = <span class="keyword">Mr JiangZhongzhou;</span><br/>
Girl name = <span class="keyword">Mrs WangWenyu;</span> <br/>
<span class="comments">// Fall in love river. </span><br>
The boy love the girl;<br>
<span class="comments">// They love each other.</span><br/>
The girl loved the boy;<br>
<span class="comments">// As time goes on.</span><br/>
The boy can not be separated the girl;<br/>
<span class="comments">// At the same time.</span><br/>
The girl can not be separated the boy;<br/>
<span class="comments">//Both wind and snow all over the sky.</span><br/>
<span class="comments">//Whether on foot or 5 kilometers.</span><br/>
<span class="keyword">The boy</span> very <span class="keyword">happy</span>;<br/>
<span class="keyword">The girl</span> is also very <span class="keyword">happy</span>;<br/>
<span class="comments">// Whether it is right now</span><br/>
<span class="comments">// Still in the distant future.</span><br/>
<span class="keyword">The boy has but one dream;</span><br/>
<span class="comments">// The boy wants the girl could well have been happy.</span><br/>
<br/>
I want to say:<br/>
Girl,I will love you forever.<br/>
</span></span></span>
</div>
</div>
<div id="rightPanel" >
<canvas id="heartCanvas"></canvas>
<div id="words" >
<div id="messages" class="sparkley">
<span title="The girl who came to my heart quietly" onclick="playmusic();" style="cursor:pointer;">WenYu</span><span>, this is the time we get together.</span>
<div id="elapseClock" style="cursor:pointer;" title="Wish the time would record my memories with you to last a lifetime "></div>
</div>
<div id="loveu" title="A lifelong commitment" >
<div style="position:relative;">I'll love you forever <img id="heart" style="position:absolute;top:5px;cursor:pointer;" src="./images/heart.gif" width="16px"/></div>
<div class="signature" title="The man who will love you forever" style="cursor:pointer;">--JiangZhongzhou</div>
</div>
</div>
<div id="logo" >
<div id="audio-btn" >
<audio id="media" autoplay="true">
<source title="" loop="loop" preload="none" src="./files/music.mp3" ></source>
</audio>
</div>
</div>
</body>
</html>