-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (147 loc) · 4.77 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
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
<!DOCTYPE html>
<html lang="en" class="no-js demo-4">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><我們要結婚了3>線上看 Copyright © 2021 Cuty LALA Studio.</title>
<meta name="description" content="Bookblock: A Content Flip Plugin - Demo 4" />
<meta name="keywords" content="javascript, jquery, plugin, css3, flip, page, 3d, booklet, book, perspective" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="default.css" />
<link rel="stylesheet" type="text/css" href="bookblock.css" />
<!-- custom demo style -->
<link rel="stylesheet" type="text/css" href="demo4.css" />
<script src="modernizr.custom.js"></script>
</head>
<body>
<div class="container">
<div class="bb-custom-wrapper">
<div id="bb-bookblock" class="bb-bookblock" >
<div class="bb-item">
<div class="bb-custom-firstpage">
<h1>請按播放鍵翻頁<span>手機請橫放觀賞</span><span>Copyright © 2021 <a target="_blank" href="https://www.cutylala.studio/">Cuty LALA Studio.</a></span></h1>
</div>
<div class="bb-custom-side">
<img src="01.jpg" alt="image01"/>
</div>
</div>
<div class="bb-item">
<div class="bb-custom-side">
<img src="02.jpg" alt="image02"/>
</div>
<div class="bb-custom-side">
<img src="03.jpg" alt="image03"/>
</div>
</div>
<div class="bb-item">
<div class="bb-custom-side">
<img src="04.jpg" alt="image04"/>
</div>
<div class="bb-custom-side">
<img src="05.jpg" alt="image05"/>
</div>
</div>
<div class="bb-item">
<div class="bb-custom-side">
<img src="06.jpg" alt="image06"/>
</div>
<div class="bb-custom-side">
<img src="07.jpg" alt="image07"/>
</div>
</div>
<div class="bb-item">
<div class="bb-custom-side">
<img src="08.jpg" alt="image08"/>
</div>
<div class="bb-custom-endpage">
<h1>期待再相逢<span>願上帝祝福您</span></h1>
</div>
</div>
</div>
<nav>
<a id="bb-nav-first" href="#" class="bb-custom-icon bb-custom-icon-first">First page</a>
<a id="bb-nav-prev" href="#" class="bb-custom-icon bb-custom-icon-arrow-left">Previous</a>
<a id="bb-nav-next" href="#" class="bb-custom-icon bb-custom-icon-arrow-right">Next</a>
<a id="bb-nav-last" href="#" class="bb-custom-icon bb-custom-icon-last">Last page</a>
</nav>
</div>
</div><!-- /container -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquerypp.custom.js"></script>
<script src="jquery.bookblock.js"></script>
<script>
var Page = (function() {
var config = {
$bookBlock : $( '#bb-bookblock' ),
$navNext : $( '#bb-nav-next' ),
$navPrev : $( '#bb-nav-prev' ),
$navFirst : $( '#bb-nav-first' ),
$navLast : $( '#bb-nav-last' )
},
init = function() {
config.$bookBlock.bookblock( {
speed : 1000,
shadowSides : 0.8,
shadowFlip : 0.4
} );
initEvents();
},
initEvents = function() {
var $slides = config.$bookBlock.children();
// add navigation events
config.$navNext.on( 'click touchstart', function() {
config.$bookBlock.bookblock( 'next' );
return false;
} );
config.$navPrev.on( 'click touchstart', function() {
config.$bookBlock.bookblock( 'prev' );
return false;
} );
config.$navFirst.on( 'click touchstart', function() {
config.$bookBlock.bookblock( 'first' );
return false;
} );
config.$navLast.on( 'click touchstart', function() {
config.$bookBlock.bookblock( 'last' );
return false;
} );
// add swipe events
$slides.on( {
'swipeleft' : function( event ) {
config.$bookBlock.bookblock( 'next' );
return false;
},
'swiperight' : function( event ) {
config.$bookBlock.bookblock( 'prev' );
return false;
}
} );
// add keyboard events
$( document ).keydown( function(e) {
var keyCode = e.keyCode || e.which,
arrow = {
left : 37,
up : 38,
right : 39,
down : 40
};
switch (keyCode) {
case arrow.left:
config.$bookBlock.bookblock( 'prev' );
break;
case arrow.right:
config.$bookBlock.bookblock( 'next' );
break;
}
} );
};
return { init : init };
})();
</script>
<script>
Page.init();
</script>
</body>
</html>