1
|
<!DOCTYPE html>
|
2
|
<html class="no-js" lang="en">
|
3
|
<head>
|
4
|
<meta content="charset=utf-8">
|
5
|
<title>FlexSlider 2</title>
|
6
|
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
7
|
|
8
|
|
9
|
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
|
10
|
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
|
11
|
|
12
|
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
|
13
|
<link rel="stylesheet" href="../flexslider.css" type="text/css" media="screen" />
|
14
|
|
15
|
|
16
|
<script src="js/modernizr.js"></script>
|
17
|
|
18
|
|
19
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
20
|
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>
|
21
|
|
22
|
|
23
|
<script src="http://fast.wistia.com/static/iframe-api-v1.js"></script>
|
24
|
|
25
|
</head>
|
26
|
<body class="loading">
|
27
|
|
28
|
<div id="container" class="cf">
|
29
|
<header role="navigation">
|
30
|
<a class="logo" href="http://www.woothemes.com" title="WooThemes">
|
31
|
<img src="images/logo.png" alt="WooThemes" />
|
32
|
</a>
|
33
|
<h1>FlexSlider 2</h1>
|
34
|
<h2>The best responsive slider. Period.</h2>
|
35
|
<a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
|
36
|
<h3 class="nav-header">Other Examples</h3>
|
37
|
<nav>
|
38
|
<ul>
|
39
|
<li><a href="index.html">Basic Slider</a></li>
|
40
|
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
|
41
|
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
|
42
|
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
|
43
|
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
|
44
|
<li><a href="basic-carousel.html">Basic Carousel</a></li>
|
45
|
<li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
|
46
|
<li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
|
47
|
<li><a href="video.html">Video & the api (vimeo)</a></li>
|
48
|
<li class="active"><a href="video-wistia.html">Video & the api (wistia)</a></li>
|
49
|
</ul>
|
50
|
</nav>
|
51
|
</header>
|
52
|
<div id="main" role="main">
|
53
|
<section class="slider">
|
54
|
<div class="flexslider">
|
55
|
<ul class="slides">
|
56
|
<li>
|
57
|
<iframe id="player_1" src="http://fast.wistia.com/embed/iframe/t4yniozocs?controlsVisibleOnLoad=true&playerColor=474745&version=v1&videoHeight=366&videoWidth=650&volumeControl=true&videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="650" height="366"></iframe>
|
58
|
</li>
|
59
|
<li>
|
60
|
<img src="images/kitchen_adventurer_lemon.jpg" />
|
61
|
</li>
|
62
|
<li>
|
63
|
<img src="images/kitchen_adventurer_donut.jpg" />
|
64
|
</li>
|
65
|
<li>
|
66
|
<img src="images/kitchen_adventurer_caramel.jpg" />
|
67
|
</li>
|
68
|
</ul>
|
69
|
</div>
|
70
|
</section>
|
71
|
<aside>
|
72
|
<div class="cf">
|
73
|
<h3>Video</h3>
|
74
|
<ul class="toggle cf">
|
75
|
<li class="js"><a href="#view-js">JS</a></li>
|
76
|
<li class="html"><a href="#view-html">HTML</a></li>
|
77
|
</ul>
|
78
|
</div>
|
79
|
<div id="view-js" class="code">
|
80
|
<pre class="brush: js; toolbar: false; gutter: false;">
|
81
|
// Can also be used with $(document).ready()
|
82
|
$(window).load(function(){
|
83
|
// Wistia handler.
|
84
|
wistiaEmbed = document.getElementById( 'player_1' ).wistiaApi;
|
85
|
|
86
|
// Call fitVid before FlexSlider initializes, so the proper initial height can be retrieved.
|
87
|
$( '.flexslider' )
|
88
|
.fitVids()
|
89
|
.flexslider({
|
90
|
animation: 'slide',
|
91
|
useCSS: false,
|
92
|
animationLoop: false,
|
93
|
smoothHeight: true,
|
94
|
start: function( slider ) {
|
95
|
$('body').removeClass( 'loading' );
|
96
|
},
|
97
|
before: function ( slider ) {
|
98
|
wistiaEmbed.pause();
|
99
|
}
|
100
|
});
|
101
|
|
102
|
wistiaEmbed.bind( 'play', function() {
|
103
|
jQuery( '.flexslider' ).flexslider( 'pause' );
|
104
|
});
|
105
|
|
106
|
wistiaEmbed.bind( 'end', function() {
|
107
|
jQuery( '.flexslider' ).flexslider( 'play' );
|
108
|
});
|
109
|
});
|
110
|
</pre>
|
111
|
</div>
|
112
|
<div id="view-html" class="code">
|
113
|
<pre class="brush: xml; toolbar: false; gutter: false;">
|
114
|
<!-- Place somewhere in the <body> of your page -->
|
115
|
<div class="flexslider">
|
116
|
<ul class="slides">
|
117
|
<li>
|
118
|
<iframe id="player_1" src="http://fast.wistia.com/embed/iframe/t4yniozocs?controlsVisibleOnLoad=true&playerColor=474745&version=v1&videoHeight=366&videoWidth=650&volumeControl=true&videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="650" height="366"></iframe>
|
119
|
</li>
|
120
|
<li>
|
121
|
<img src="slide2.jpg" />
|
122
|
</li>
|
123
|
<li>
|
124
|
<img src="slide3.jpg" />
|
125
|
</li>
|
126
|
<li>
|
127
|
<img src="slide4.jpg" />
|
128
|
</li>
|
129
|
</ul>
|
130
|
</div>
|
131
|
</pre>
|
132
|
</div>
|
133
|
</aside>
|
134
|
</div>
|
135
|
|
136
|
</div>
|
137
|
|
138
|
|
139
|
<script defer src="../jquery.flexslider.js"></script>
|
140
|
|
141
|
<script type="text/javascript">
|
142
|
$(function(){
|
143
|
SyntaxHighlighter.all();
|
144
|
});
|
145
|
$(window).load(function(){
|
146
|
|
147
|
wistiaEmbed = document.getElementById( 'player_1' ).wistiaApi;
|
148
|
|
149
|
|
150
|
$( '.flexslider' )
|
151
|
.fitVids()
|
152
|
.flexslider({
|
153
|
animation: 'slide',
|
154
|
useCSS: false,
|
155
|
animationLoop: false,
|
156
|
smoothHeight: true,
|
157
|
start: function( slider ) {
|
158
|
$('body').removeClass( 'loading' );
|
159
|
},
|
160
|
before: function ( slider ) {
|
161
|
wistiaEmbed.pause();
|
162
|
}
|
163
|
});
|
164
|
|
165
|
wistiaEmbed.bind( 'play', function() {
|
166
|
jQuery( '.flexslider' ).flexslider( 'pause' );
|
167
|
});
|
168
|
|
169
|
wistiaEmbed.bind( 'end', function() {
|
170
|
jQuery( '.flexslider' ).flexslider( 'play' );
|
171
|
});
|
172
|
});
|
173
|
</script>
|
174
|
|
175
|
|
176
|
<script type="text/javascript" src="js/shCore.js"></script>
|
177
|
<script type="text/javascript" src="js/shBrushXml.js"></script>
|
178
|
<script type="text/javascript" src="js/shBrushJScript.js"></script>
|
179
|
|
180
|
|
181
|
<script src="js/jquery.fitvid.js"></script>
|
182
|
<script src="js/demo.js"></script>
|
183
|
|
184
|
</body>
|
185
|
</html>
|