Team:Toulouse/template/slider

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
-
<style type="text/css">
+
<!-- 1. Link to jQuery (1.8 or later), -->
-
/* Slider (thanks to flowplayer.org) */
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- 33 KB -->
-
/*************************************/
+
-
.scrollable {
+
-
/* required settinsg */
+
-
position: relative;
+
-
overflow :hidden;
+
-
    margin-top: 14px;
+
-
    width: 100%;
+
-
    height: 675px;
+
-
    background: #FFFFFF;
+
-
    }
+
-
   
+
-
.scrollable .items {
+
-
/* this cannot be too large */
+
-
width: 50000px;
+
-
position: absolute;
+
-
    }
+
-
   
+
-
.items div {
+
-
float: left;
+
-
max-width: 2500px;
+
-
        width:100%;
+
-
height: 675px;
+
-
    }
+
-
   
+
-
.prev {
+
-
        background: url(https://static.igem.org/mediawiki/2011/8/81/DTU-Denmark2011-slider-prev.png) no-repeat;
+
-
        height: 74px;
+
-
        width: 74px;
+
-
        position: absolute;
+
-
            left: -486px; /* ceil(963/2) + 74/2 = 482 + 37 = 519 */
+
-
            top: 450px;
+
-
        margin-left: 50%;
+
-
        cursor: pointer;
+
-
        }
+
-
       
+
-
.next {
+
-
        background: url(https://static.igem.org/mediawiki/2011/5/56/DTU-Denmark2011-slider-next.png) no-repeat;
+
-
        height: 74px;
+
-
        width: 74px;
+
-
        margin-right: 50%;
+
-
        position: absolute;
+
-
            right: -488px;
+
-
            top: 450px;
+
-
        cursor: pointer;
+
-
        }
+
-
       
+
-
.disabled {
+
-
        visibility: hidden;}
+
-
</style>
+
<!-- fotorama.css & fotorama.js. -->
 +
<link  href="http://fotorama.s3.amazonaws.com/4.5.2/fotorama.css" rel="stylesheet"> <!-- 3 KB -->
 +
<script src="http://fotorama.s3.amazonaws.com/4.5.2/fotorama.js"></script> <!-- 16 KB -->
-
<!--/* JS contenu PROPRE à cette page*/-->
 
-
    <!-- jQuery Tools (slider) -->
 
-
    <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
 
-
    <script>
 
-
        $(function() {
 
-
    // initialize scrollable
 
-
    $(".scrollable").scrollable().navigator();
 
-
        });
 
-
    </script>
 
<!-------------------------------- SLIDE HEADER --------------------------------->
<!-------------------------------- SLIDE HEADER --------------------------------->
-
            <div class="scrollable">
+
<div class="fotorama" data-width="100%" data-fit="contain" data-nav="false" data-ratio="3.2">
-
              <div class="items">
+
-
                <div>
+
-
                  <a href="https://2014.igem.org/Team:Toulouse/Project/Overviews"><img src="https://static.igem.org/mediawiki/2014/8/89/Toulouse_Home_1.JPG" alt="Title"/></a>
+
-
                </div>
+
-
                <div>
+
  <div data-img="http://www.hdwallpaperscool.com/wp-content/uploads/2013/11/nature-hd-wallpapers-beatiful-desktop-background-images.jpg" data-fit="cover"><h1>Virginia iGEM 2014</h1></div>
-
                  <a href="https://2014.igem.org/Team:Toulouse/Result/experimental-results"><img src="https://static.igem.org/mediawiki/2014/9/95/Toulouse_Home_2.JPG" alt="Introduction"/></a>
+
  <img src="https://static.igem.org/mediawiki/2014/8/89/Toulouse_Home_1.JPG" data-fit="cover">
-
                </div>
+
<div data-img="http://www.ghulmil.com/wp-content/uploads/pure-green-nature-spike-hd-wallpaper.jpg" data-fit="cover">One</div>
-
                <div>
+
  <img src="https://static.igem.org/mediawiki/2014/9/95/Toulouse_Home_2.JPG" data-fit="cover">
-
                    <a href="https://2014.igem.org/Team:Toulouse/Team"><img src="https://static.igem.org/mediawiki/2014/3/36/Toulouse_Home_3.jpg" alt="Team" /></a>
+
<img src="https://static.igem.org/mediawiki/2014/3/36/Toulouse_Home_3.jpg" data-fit="cover">
-
                </div>
+
-
                <!--<div>
+
-
                    <a href="#"><img src="https://static.igem.org/mediawiki/2014/4/4a/Template-igem2014-slide2.jpg" alt="#"/></a>
+
-
                </div>-->
+
-
              </div>
+
 
-
            </div>
+
</div>
-
            <div class="prev"></div>
+
-
            <div class="next"></div>
+
-
            <div class="navi"></div>
+
-
<div class="clear"></div>
 
-
 
-
 
 
</html>
</html>

Revision as of 13:00, 8 October 2014

Virginia iGEM 2014

One