Skip to content

Commit

Permalink
Closes woocommerce#819 - Adds caption demo file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffikus committed May 26, 2015
1 parent 14d30cb commit 3e72688
Show file tree
Hide file tree
Showing 10 changed files with 195 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/basic-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="header-nav">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li class="active"><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
186 changes: 186 additions & 0 deletions demo/basic-slider-with-caption.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta content="charset=utf-8">
<title>FlexSlider 2</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">

<!-- Syntax Highlighter -->
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
<!-- Demo CSS -->
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../flexslider.css" type="text/css" media="screen" />

<!-- Modernizr -->
<script src="js/modernizr.js"></script>

<style type="text/css">
.flex-caption {
width: 96%;
padding: 2%;
left: 0;
bottom: 0;
background: rgba(0,0,0,.5);
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.3);
font-size: 14px;
line-height: 18px;
}
li.css a {
border-radius: 0;
}
</style>

</head>
<body class="loading">

<div id="container" class="cf">
<header role="navigation">
<a class="logo" href="http://www.woothemes.com" title="WooThemes">
<img src="images/logo.png" alt="WooThemes" />
</a>
<h1>FlexSlider 2</h1>
<h2>The best responsive slider. Period.</h2>
<a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
<h3 class="nav-header">Other Examples</h3>
<nav>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li class="active"><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
<li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
<li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
<li><a href="video.html">Video & the api (vimeo)</a></li>
<li><a href="video-wistia.html">Video & the api (wistia)</a></li>
</ul>
</nav>
</header>

<div id="main" role="main">
<section class="slider">
<div class="flexslider">
<ul class="slides">
<li>
<img src="images/kitchen_adventurer_cheesecake_brownie.jpg" />
<p class="flex-caption">Adventurer Cheesecake Brownie</p>
</li>
<li>
<img src="images/kitchen_adventurer_lemon.jpg" />
<p class="flex-caption">Adventurer Lemon</p>
</li>
<li>
<img src="images/kitchen_adventurer_donut.jpg" />
<p class="flex-caption">Adventurer Donut</p>
</li>
<li>
<img src="images/kitchen_adventurer_caramel.jpg" />
<p class="flex-caption">Adventurer Caramel</p>
</li>
</ul>
</div>
</section>
<aside>
<div class="cf">
<h3>Basic Slider</h3>
<ul class="toggle cf">
<li class="js"><a href="#view-js">JS</a></li>
<li class="css"><a href="#view-css">CSS</a></li>
<li class="html"><a href="#view-html">HTML</a></li>
</ul>
</div>
<div id="view-js" class="code">
<pre class="brush: js; toolbar: false; gutter: false;">
// Can also be used with $(document).ready()
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
</pre>
</div>
<div id="view-css" class="code">
<pre class="brush: xml; toolbar: false; gutter: false;">
&lt;!-- Place either at the bottom in the &lt;head&gt; of your page or inside your CSS -->
&lt;style type="text/css">
.flex-caption {
width: 96%;
padding: 2%;
left: 0;
bottom: 0;
background: rgba(0,0,0,.5);
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.3);
font-size: 14px;
line-height: 18px;
}
&lt;/style>
</pre>
</div>
<div id="view-html" class="code">
<pre class="brush: xml; toolbar: false; gutter: false;">
&lt;!-- Place somewhere in the &lt;body&gt; of your page -->
&lt;div class="flexslider">
&lt;ul class="slides">
&lt;li>
&lt;img src="slide1.jpg" />
&lt;p class="flex-caption">Adventurer Cheesecake Brownie&lt;/p>
&lt;/li>
&lt;li>
&lt;img src="slide2.jpg" />
&lt;p class="flex-caption">Adventurer Lemon&lt;/p>
&lt;/li>
&lt;li>
&lt;img src="slide3.jpg" />
&lt;p class="flex-caption">Adventurer Donut&lt;/p>
&lt;/li>
&lt;li>
&lt;img src="slide4.jpg" />
&lt;p class="flex-caption">Adventurer Caramel&lt;/p>
&lt;/li>
&lt;/ul>
&lt;/div>
</pre>
</div>
</aside>
</div>

</div>

<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>

<!-- FlexSlider -->
<script defer src="../jquery.flexslider.js"></script>

<script type="text/javascript">
$(function(){
SyntaxHighlighter.all();
});
$(window).load(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>


<!-- Syntax Highlighter -->
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushXml.js"></script>
<script type="text/javascript" src="js/shBrushJScript.js"></script>

<!-- Optional FlexSlider Additions -->
<script src="js/jquery.easing.js"></script>
<script src="js/jquery.mousewheel.js"></script>
<script defer src="js/demo.js"></script>

</body>
</html>
1 change: 1 addition & 0 deletions demo/basic-slider-with-custom-direction-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li class="active"><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/carousel-min-max.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/dynamic-carousel-min-max.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li class="active"><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/thumbnail-controlnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li class="active"><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/thumbnail-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li class="active"><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/video-wistia.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down
1 change: 1 addition & 0 deletions demo/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ <h3 class="nav-header">Other Examples</h3>
<ul>
<li><a href="index.html">Basic Slider</a></li>
<li><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
<li><a href="basic-carousel.html">Basic Carousel</a></li>
Expand Down

0 comments on commit 3e72688

Please sign in to comment.