-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathindex.html
139 lines (106 loc) · 3.67 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
<!DOCTYPE html>
<head>
<title>jquery.sldr</title>
<link href="css/styles.css" rel="stylesheet">
<!--[if lt IE 9]><link href="css/ie8.css" rel="stylesheet"><![endif]-->
<!--[if lt IE 8]><link href="css/ie7.css" rel="stylesheet"><![endif]-->
</head>
<body>
<div class="stage">
<h1>jQuery.sldr</h1>
<p><small>A fully responsive image slider. View on <a href="https://github.com/devowhippit/jquery.sldr">GitHub</a>.</small></p>
<div id="SLDR-ONE" class="sldr">
<ul class="wrp animate">
<li class="elmnt-one"><div class="skew"><div class="wrap"><img src="img/Lake.jpg" width="1000" height="563"></div></div></li>
<li class="elmnt-two"><div class="skew"><div class="wrap"><img src="img/Mountain-Range.jpg" width="1000" height="563"></div></div></li>
<li class="elmnt-three"><div class="skew"><div class="wrap"><img src="img/Mt-Fuji.jpg" width="1000" height="563"></div></div></li>
<li class="elmnt-four"><div class="skew"><div class="wrap"><img src="img/Pink-Forest.jpg" width="1000" height="563"></div></div></li>
</ul>
</div>
<div class="clear"></div>
<div class="captions">
<div class="focalPoint"><p><small>Lake</small></p></div>
<div><p><small>Mountain Range</small></p></div>
<div><p><small>Mt. Fuji</small></p></div>
<div><p><small>Pink Forest</small></p></div>
</div>
<ul class="selectors">
<li class="focalPoint"><a href="">•</a></li><li><a href="">•</a></li><li><a href="">•</a></li><li><a href="">•</a></li>
</ul>
<button class="sldr-prv sldr-nav prev">Prev</button>
<button class="sldr-nxt sldr-nav next">Next</button>
<p>Scale browser to see responsive demo.</p>
<p style="float:left;">↔ </p>
<p style="float:right;"> ↔</p>
<p><small>These images are jpgs masked using a CSS transform method (and a filter method for IE). They are completely responsive and support the following desktop browsers; Chrome, Safari, Firefox, IE 8+, and mobile browsers; IOS 3+, Android 4+.</small></p>
<div class="clear"></div>
<br>
<br>
<br>
<br>
<br>
</div>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery.sldr.js"></script>
<script>
$( window ).load( function() {
$( '.sldr' ).each( function() {
var th = $( this );
th.sldr({
focalClass : 'focalPoint',
offset : th.width() / 2,
sldrWidth : 'responsive',
nextSlide : th.nextAll( '.sldr-nav.next:first' ),
previousSlide : th.nextAll( '.sldr-nav.prev:first' ),
selectors : th.nextAll( '.selectors:first' ).find( 'li' ),
toggle : th.nextAll( '.captions:first' ).find( 'div' ),
sldrInit : sliderInit,
sldrStart : slideStart,
sldrComplete : slideComplete,
sldrLoaded : sliderLoaded,
sldrAuto : true,
sldrTime : 5000,
hasChange : true
});
});
});
/**
* Sldr Callbacks
*/
/**
* When the sldr is initiated, before the DOM is manipulated
* @param {object} args the slides, callback, and config of the slider
* @return null
*/
function sliderInit( args ) {
}
/**
* When individual slides are loaded
* @param {object} args the slides, callback, and config of the slider
* @return null
*/
function slideLoaded( args ) {
}
/**
* When the full slider is loaded, after the DOM is manipulated
* @param {object} args the slides, callback, and config of the slider
* @return null
*/
function sliderLoaded( args ) {
}
/**
* Before the slides change focal points
* @param {object} args the slides, callback, and config of the slider
* @return null
*/
function slideStart( args ) {
}
/**
* After the slides are done changing focal points
* @param {object} args the slides, callback, and config of the slider
* @return null
*/
function slideComplete( args ) {
}
</script>
</body>