-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (159 loc) · 7.55 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pawkyCarousel Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="pawkycarousel.css" media="screen" rel="stylesheet" type="text/css" />
<script src="jquery1.4.1.min.js" type="text/javascript"></script>
<script src="pawkycarousel.js" type="text/javascript"></script>
<style type="text/css">
body{background:#e7e0d0; margin:auto; padding:10px 0 10px 0; text-align:center; color:black; font-size:12px;}
.box{width:980px; height:auto; margin: 1px auto 0 auto; padding:20px 0 20px 0px; background:#999; -moz-border-radius: 5px; -webkit-border-radius:5px; border-radius: 5px;}
.box p{text-align:left; margin: 0 0 5px 20px;}
.item{ height:190px; background:#888; text-align:center; overflow:hidden;}
.info{width:90%; height:auto; text-align:left; padding:10px 5px 10px 0px; margin: 10px auto 10px auto; border-bottom: 1px dotted #555; border-top: 1px dotted #555;}
.info .col-left, .info .col-right{float:left; margin-right:2%; }
.col-right{width:38%;}
.col-left{width:58%;}
.html_code{background:#959595; padding:10px 20px; margin:5px 0 10px 0; color:black; font-size:11px; color:#444; -moz-border-radius: 5px; -webkit-border-radius:5px; border-radius: 5px;}
.header{background:none;}
.about{font-size: 11px;}
.basic_carousel{position:absolute;}
.basic_carousel_wrapper{position:relative; width:800px; height:190px; overflow:hidden; margin:auto; border:2px solid #333; -moz-border-radius: 5px; -webkit-border-radius: 5px;}
.basic_carousel_navigator{position:relative; width:204px; margin:10px auto 0 auto;}
.basic_carousel_navigator .button{width:100px; height:24px; background:#333; float:left; margin-left:2px; color:#bbb; text-align:center; padding-top:6px; cursor:pointer; -moz-user-select: none; -khtml-user-select: none; user-select: none; font-size:13px;}
.basic_carousel_navigator .button:hover{color:orange;}
.basic_carousel_navigator .button-prev{-moz-border-radius: 5px 0 0 5px; -webkit-border-top-left-radius:5px; -webkit-border-bottom-left-radius: 5px;}
.basic_carousel_navigator .button-next{-moz-border-radius: 0 5px 5px 0; -webkit-border-top-right-radius:5px; -webkit-border-bottom-right-radius: 5px;}
</style>
</head>
<body>
<div class="box header">
<h1 style="text-align:left;"> pawkyCarousel <small> - jQuery carosuel</small></h1>
</div>
<div class="box about">
<p><strong>Authors: </strong>Daniel Sokołowski, <a href='http://wojciech.oxos.pl'>Wojciech Kruszewski</a></p>
<p><strong>Repository: </strong>http://github.com/wojciech/carousel</p>
<p>jQuery Carousele Plugin</p>
<p>Work sponsored by <a href='http://pawky.com'><big><strong>Pawky.com</strong></big> - a short film society</a></p>
<p>Credits: First version was based on: <a href='http://www.agilecarousel.com'>Agile Carousel</a> (now there's hardly no original code left)</p>
</div>
<div class="box">
<h2> Basic carousel </h2>
<div class="info">
<div class="col-left">
HTML:
<div class="html_code">
<pre>
<code>
<div class="basic_carousel_wrapper"><br/>
<div id="basic_carousel">
<img src="images/panorama.jpg" alt="2" style="float: left"/>
<p>Lorem ipsum dolor sit amet</p>
</div>
</div><br/>
<div class="basic_carousel_navigator"><br/>
<div class="button button-prev" onclick="basic_carousel.prev();">
< prev
</div>
<div class="button button-next" onclick="basic_carousel.next();">
next >
</div>
<div style="clear:both;"><br/>
</div><br/>
</code>
</pre>
</div> </div>
<div class="col-right">
JS:
<div class="html_code">
<pre>
<code>
var basic_carousel =
new $.pawkyCarousel('#basic_carousel',{
transition_duration: 200,
shift: 200
});<br/>
</code>
</pre>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div class="basic_carousel_wrapper">
<div id="basic_carousel" style="width:1940px; position: absolute;">
<img src="images/panorama.jpg" alt="2"/>
<p style="position: absolute; left: 10px; top: 10px;">Lorem ipsum</p>
</div>
</div>
<div class="basic_carousel_navigator">
<div class="button button-prev" onclick="basic_carousel.prev();"> < prev </div>
<div class="button button-next" onclick="basic_carousel.next();"> next > </div>
<div style="clear:both;"></div>
</div>
</div>
<script type="text/javascript">
var basic_carousel = new $.pawkyCarousel('#basic_carousel',{
transition_duration: 200,
shift: 200
});
</script>
<div class="box">
<h2> Auto adjust carousel </h2>
<div class="info">
<div class="col-left">
HTML:
<div class="html_code">
<pre>
<code>
<div id="auto_carousel"><br/>
<div class="item"> <img src="images/1.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/2.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/3.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/4.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/5.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/6.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/7.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/8.jpg" height="100%" /> </div><br />
<div class="item"> <img src="images/9.jpg" height="100%" /> </div><br />
</div><br />
</code>
</pre>
</div>
</div>
<div class="col-right">
JS:
<div class="html_code">
<pre>
<code>
$('#auto_carousel').pawkyAutoCarousel({
number_slides_visible: "4",
scroll: 3
});
</code>
</pre>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div id="auto_carousel">
<div class="item"> <img src="images/1.jpg" height="100%" alt="image 1" /> </div>
<div class="item"> <img src="images/2.jpg" height="100%" alt="image 2" /> </div>
<div class="item"> <img src="images/3.jpg" height="100%" alt="image 3" /> </div>
<div class="item"> <img src="images/4.jpg" height="100%" alt="image 4" /> </div>
<div class="item"> <img src="images/5.jpg" height="100%" alt="image 5" /> </div>
<div class="item"> <img src="images/6.jpg" height="100%" alt="image 6" /> </div>
<div class="item"> <img src="images/7.jpg" height="100%" alt="image 7" /> </div>
<div class="item"> <img src="images/8.jpg" height="100%" alt="image 8" /> </div>
<div class="item"> <img src="images/9.jpg" height="100%" alt="image 9" /> </div>
</div>
</div>
<script type="text/javascript">
$('#auto_carousel').pawkyAutoCarousel({
number_slides_visible: "4",
scroll: 3
});
</script>
</body>
</html>