Projet

Général

Profil

Paste
Télécharger (6,01 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / libraries / flexslider-2.5.0 / demo / basic-slider-with-custom-direction-nav.html @ 4b706e38

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
  <!-- Syntax Highlighter -->
9
  <link href="css/shCore.css" rel="stylesheet" type="text/css" />
10
  <link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
11
  <!-- Demo CSS -->
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
  <!-- Modernizr -->
16
  <script src="js/modernizr.js"></script>
17

    
18
  <style>
19
    .flexslider {
20
      margin-bottom: 10px;
21
    }
22

23
    .flex-control-nav {
24
      position: relative;
25
      bottom: auto;
26
    }
27

28
    .custom-navigation {
29
      display: table;
30
      width: 100%;
31
      table-layout: fixed;
32
    }
33

34
    .custom-navigation > * {
35
      display: table-cell;
36
    }
37

38
    .custom-navigation > a {
39
      width: 50px;
40
    }
41

42
    .custom-navigation .flex-next {
43
      text-align: right;
44
    }
45
  </style>
46

    
47
</head>
48
<body class="loading">
49

    
50
  <div id="container" class="cf">
51
    <header role="navigation">
52
      <a class="logo" href="http://www.woothemes.com" title="WooThemes">
53
        <img src="images/logo.png" alt="WooThemes" />
54
    </a>
55
      <h1>FlexSlider 2</h1>
56
      <h2>The best responsive slider. Period.</h2>
57
      <a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
58
      <h3 class="nav-header">Other Examples</h3>
59
      <nav>
60
        <ul>
61
          <li><a href="index.html">Basic Slider</a></li>
62
          <li class="active"><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
63
          <li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
64
          <li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
65
          <li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
66
          <li><a href="basic-carousel.html">Basic Carousel</a></li>
67
          <li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
68
          <li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
69
          <li><a href="video.html">Video & the api (vimeo)</a></li>
70
          <li><a href="video-wistia.html">Video & the api (wistia)</a></li>
71
        </ul>
72
      </nav>
73
    </header>
74

    
75
  <div id="main" role="main">
76

    
77
      <section class="slider">
78
        <div class="flexslider">
79
          <ul class="slides">
80
            <li>
81
              <img src="images/kitchen_adventurer_cheesecake_brownie.jpg" />
82
            </li>
83
            <li>
84
              <img src="images/kitchen_adventurer_lemon.jpg" />
85
            </li>
86
            <li>
87
              <img src="images/kitchen_adventurer_donut.jpg" />
88
            </li>
89
            <li>
90
              <img src="images/kitchen_adventurer_caramel.jpg" />
91
            </li>
92
          </ul>
93
        </div>
94
        <div class="custom-navigation">
95
          <a href="#" class="flex-prev">Prev</a>
96
          <div class="custom-controls-container"></div>
97
          <a href="#" class="flex-next">Next</a>
98
        </div>
99
      </section>
100

    
101
      <aside>
102
        <div class="cf">
103
          <h3>Basic Slider</h3>
104
          <ul class="toggle cf">
105
            <li class="js"><a href="#view-js">JS</a></li>
106
            <li class="html"><a href="#view-html">HTML</a></li>
107
          </ul>
108
        </div>
109
        <div id="view-js" class="code">
110
          <pre class="brush: js; toolbar: false; gutter: false;">
111
            // Can also be used with $(document).ready()
112
            $(window).load(function() {
113
              $('.flexslider').flexslider({
114
                animation: "slide",
115
                controlsContainer: $(".custom-controls-container"),
116
                customDirectionNav: $(".custom-navigation a")
117
              });
118
            });
119
          </pre>
120
        </div>
121
        <div id="view-html" class="code">
122
          <pre class="brush: xml; toolbar: false; gutter: false;">
123
            &lt;!-- Place somewhere in the &lt;body&gt; of your page -->
124
            &lt;div class="flexslider">
125
              &lt;ul class="slides">
126
                &lt;li>
127
                  &lt;img src="slide1.jpg" />
128
                &lt;/li>
129
                &lt;li>
130
                  &lt;img src="slide2.jpg" />
131
                &lt;/li>
132
                &lt;li>
133
                  &lt;img src="slide3.jpg" />
134
                &lt;/li>
135
                &lt;li>
136
                  &lt;img src="slide4.jpg" />
137
                &lt;/li>
138
              &lt;/ul>
139
            &lt;/div>
140
            &lt;div class="custom-navigation">
141
              &lt;a href="#" class="flex-prev">Prev&lt;/a>
142
              &lt;div class="custom-controls-container">&lt;/div>
143
              &lt;a href="#" class="flex-next">Next&lt;/a>
144
            &lt;/div>
145
          </pre>
146
        </div>
147
      </aside>
148
    </div>
149

    
150
  </div>
151

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

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

    
159
  <script type="text/javascript">
160
    $(function(){
161
      SyntaxHighlighter.all();
162
    });
163
    $(window).load(function(){
164
      $('.flexslider').flexslider({
165
        animation: "slide",
166
        controlsContainer: $(".custom-controls-container"),
167
        customDirectionNav: $(".custom-navigation a"),
168
        start: function(slider){
169
          $('body').removeClass('loading');
170
        }
171
      });
172
    });
173
  </script>
174

    
175

    
176
  <!-- Syntax Highlighter -->
177
  <script type="text/javascript" src="js/shCore.js"></script>
178
  <script type="text/javascript" src="js/shBrushXml.js"></script>
179
  <script type="text/javascript" src="js/shBrushJScript.js"></script>
180

    
181
  <!-- Optional FlexSlider Additions -->
182
  <script src="js/jquery.easing.js"></script>
183
  <script src="js/jquery.mousewheel.js"></script>
184
  <script defer src="js/demo.js"></script>
185

    
186
</body>
187
</html>