-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
292 lines (254 loc) · 10.5 KB
/
index.html
File metadata and controls
292 lines (254 loc) · 10.5 KB
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/multilevelmenu.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="css/animations.css" />
<link rel="stylesheet" type="text/css" href="css/animate.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<script src="js/modernizr.custom.js"></script>
</head>
<body>
<div class="pt-triggers">
<button id="iterateEffects" class="pt-touch-button"
style="display: none;">Next</button>
<audio id="myBGM" src="bgm/122878141.mp3" hidden="true">
Your browser does not support the <code>audio</code> element.
</audio>
</div>
<div id="pt-main" class="pt-perspective">
<div class="pt-page pt-page-1">
<div id="allmap1" class="map-container" ></div>
<div id="story1" align="center" data-out-effect="flipOutX" data-out-shuffle="true">
<ul class="texts" style="display: none">
<li>从前有个两个人</li>
<li>他们都在火锅大学!!</li>
<li>再后来他们就结婚了!!!(还有后续)</li>
<li>其实2006-2010年,他们相遇在川大,却没谈恋爱</li>
</ul>
</div>
</div>
<div class="pt-page pt-page-2">
<div id="allmap2" class="map-container" style="height: 500px;"></div>
<div id="story2" align="center" data-out-effect="flipOutX" data-out-shuffle="true">
<ul class="texts" style="display: none">
<li>后来到了2012年</li>
<li>他们相爱了(其实我想说是世界末日好嘛~)</li>
<li>可是他们是异地恋!(异地恋啊!!!)</li>
</ul>
</div>
</div>
<div class="pt-page pt-page-3">
<div id="allmap3" class="map-container" style="height: 500px;"></div>
<div id="story3" align="center" data-out-effect="flipOutX" data-out-shuffle="true">
<ul class="texts" style="display: none">
<li>再后来2013年</li>
<li>他们都在杭州</li>
<li>可是他们还是异房恋!(异房恋啊!!!)</li>
</ul>
</div>
</div>
<div class="pt-page pt-page-4">
<div id="allmap4" class="map-container" style="height: 500px;"></div>
<div id="story4" align="center" data-out-effect="flipOutX" data-out-shuffle="true">
<ul class="texts" style="display: none">
<li>最终在2014年</li>
<li>他们在青岛结婚咯</li>
<li>(字幕君我祝福你们啊!)</li>
</ul>
</div>
</div>
<div class="pt-page pt-page-5">
<div id="allmap5" class="map-container" style="height: 500px;"></div>
<div id="story5" align="center" data-out-effect="flipOutX" data-out-shuffle="true">
<ul class="texts" style="display: none">
<li>时间:2014/09/14 (星期天)</li>
<li>地点:青岛市李沧区书院路188号盛世桃园生态酒店</li>
<li>17098041087(新郎:孙正磊)18158348707(新娘:何燕)</li>
</ul>
</div>
</div>
</div>
<div class="pt-message">
<p>Your browser does not support CSS animations.</p>
</div>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery.dlmenu.js"></script>
<script src="js/pagetransitions.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/jquery.lettering.js"></script>
<script src="js/jquery.textillate.js"></script>
<script type="text/javascript"
src="http://api.map.baidu.com/api?v=1.5&ak=A9d82b9587eb92487a5068542db56799"></script>
<script type="text/javascript">
$().ready(function() {
// bgm start
document.getElementById("myBGM").play();
// story 1
var map1 = new BMap.Map("allmap1");
// a 点, 104.070871,30.646375
// b 点, 104.078309,30.64493
map1.centerAndZoom(new BMap.Point(104.074177,30.646701), 17);
map1.enableScrollWheelZoom();
// boy
var boyPoint = new BMap.Point(104.070871,30.646375);
var boyIcon = new BMap.Icon("bzpic/b1.png", new BMap.Size(50, 50));
var boy = new BMap.Marker(boyPoint,{icon:boyIcon});
var boyLabel = new BMap.Label("孙尼玛",{offset:new BMap.Size(20,-10)});
boy.setLabel(boyLabel);
map1.addOverlay(boy);
// gril
var grilPoint = new BMap.Point(104.078309,30.64493);
var grilIcon = new BMap.Icon("bzpic/g1.png", new BMap.Size(50, 50));
var gril = new BMap.Marker(grilPoint,{icon:grilIcon});
var grilLabel = new BMap.Label("何尼美",{offset:new BMap.Size(20,-10)});
gril.setLabel(grilLabel);
map1.addOverlay(gril);
$("#story1").textillate({
callback : function() {
var boyTrack = [];
boyTrack.push(new BMap.Point(104.070871,30.646375));
boyTrack.push(new BMap.Point(104.071871,30.646375));
boyTrack.push(new BMap.Point(104.074177,30.646701));
boyTrack.push(new BMap.Point(104.071871,30.646375));
boyTrack.push(new BMap.Point(104.070871,30.646375));
var grilTrack = [];
grilTrack.push(new BMap.Point(104.078309,30.64493));
grilTrack.push(new BMap.Point(104.076297,30.645878));
grilTrack.push(new BMap.Point(104.074249,30.644837));
grilTrack.push(new BMap.Point(104.076297,30.645878));
grilTrack.push(new BMap.Point(104.078309,30.64493));
setTimeout(function () {
var boyIndex = 0;
var gridIndex = 0;
resetMkPoint(boy, boyTrack, boyIndex);
resetMkPoint(gril, grilTrack, gridIndex);
}, 1000);
setTimeout(function () {
// story 2
nextStage();
var map2 = new BMap.Map("allmap2");
// a 点, 125.060549, 43.446525
// b 点, 120.277252, 30.993691
map2.centerAndZoom(new BMap.Point(122.595311, 38.137858), 5);
map2.enableScrollWheelZoom();
// boy
var boyPoint = new BMap.Point(125.060549, 43.446525);
var boyIcon = new BMap.Icon("bzpic/b1.png", new BMap.Size(50, 50));
var boy = new BMap.Marker(boyPoint,{icon:boyIcon});
boy.setLabel(boyLabel);
map2.addOverlay(boy);
// gril
var grilPoint = new BMap.Point(120.277252, 30.993691);
var grilIcon = new BMap.Icon("bzpic/g1.png", new BMap.Size(50, 50));
var gril = new BMap.Marker(grilPoint,{icon:grilIcon});
gril.setLabel(grilLabel);
map2.addOverlay(gril);
$("#story2").textillate({
callback : function() {
boy.setIcon(new BMap.Icon("bzpic/b3.png", new BMap.Size(50, 50)));
gril.setIcon(new BMap.Icon("bzpic/g3.png", new BMap.Size(50, 50)));
setTimeout(function () {
// story 3
nextStage();
var map3 = new BMap.Map("allmap3");
// a 点, 120.212717, 30.247708
// b 点, 120.128923, 30.278901
map3.centerAndZoom(new BMap.Point(120.154363, 30.253198), 14);
map3.enableScrollWheelZoom();
// boy
var boyPoint = new BMap.Point(120.212717, 30.247708);
var boyIcon = new BMap.Icon("bzpic/b3.png", new BMap.Size(50, 50));
var boy = new BMap.Marker(boyPoint,{icon:boyIcon});
boy.setLabel(boyLabel);
map3.addOverlay(boy);
// gril
var grilPoint = new BMap.Point(120.128923, 30.278901);
var grilIcon = new BMap.Icon("bzpic/g3.png", new BMap.Size(50, 50));
var gril = new BMap.Marker(grilPoint,{icon:grilIcon});
gril.setLabel(grilLabel);
map3.addOverlay(gril);
$("#story3").textillate({
callback : function() {
boy.setIcon(new BMap.Icon("bzpic/b6.png", new BMap.Size(50, 50)));
gril.setIcon(new BMap.Icon("bzpic/g2.png", new BMap.Size(50, 50)));
setTimeout(function () {
// story 4
nextStage();
var map4 = new BMap.Map("allmap4");
// a 点, 120.417531, 36.155043
// b 点, 120.423136, 36.155859
map4.centerAndZoom(new BMap.Point(120.419903, 36.153178), 14);
map4.enableScrollWheelZoom();
// boy
var boyPoint = new BMap.Point(120.417531, 36.155043);
var boyIcon = new BMap.Icon("bzpic/b7.png", new BMap.Size(50, 50));
var boy = new BMap.Marker(boyPoint,{icon:boyIcon});
boy.setLabel(boyLabel);
map4.addOverlay(boy);
// gril
var grilPoint = new BMap.Point(120.423136, 36.155859);
var grilIcon = new BMap.Icon("bzpic/g7.png", new BMap.Size(50, 50));
var gril = new BMap.Marker(grilPoint,{icon:grilIcon});
gril.setLabel(grilLabel);
map4.addOverlay(gril);
$("#story4").textillate({
callback : function() {
setTimeout(function () {
// story 5
nextStage();
var map5 = new BMap.Map("allmap5");
map5.centerAndZoom(new BMap.Point(120.419903, 36.153178), 14);
map5.enableScrollWheelZoom();
// gril
var grilPoint = new BMap.Point(120.423136, 36.155859);
var grilIcon = new BMap.Icon("bzpic/g7.png", new BMap.Size(50, 50));
var gril = new BMap.Marker(grilPoint,{icon:grilIcon});
gril.setLabel(grilLabel);
map5.addOverlay(gril);
var opts = {
width : 200,
height: 100
}
var infoWindow = new BMap.InfoWindow("2014/09/14<br/>老娘在这儿等你哦!<br/>alipay: heyancq1987@126.com");
map5.openInfoWindow(infoWindow, grilPoint);
gril.addEventListener("click", function(){
var grilPoint = new BMap.Point(120.423136, 36.155859);
var opts = {
width : 200,
height: 100
}
var infoWindow = new BMap.InfoWindow("2014/09/14<br/>老娘在这儿等你哦!<br/>alipay: heyancq1987@126.com");
map5.openInfoWindow(infoWindow, grilPoint);
});
$("#story5").textillate();
}, 3000);
}
});
}, 3000);
}
});
}, 3000);
}
});
}, 8000);
}
});
});
function resetMkPoint(marker, track, i){
marker.setPosition(track[i]);
if(i < track.length){
setTimeout(function(){
i++;
resetMkPoint(marker, track, i);
}, 1000);
}
}
function nextStage() {
$("#iterateEffects").click();
}
</script>
</body>
</html>