Team:Toulouse/template/slider

From 2014.igem.org

(Difference between revisions)
 
(56 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
 +
 +
<!-- 1. Link to jQuery (1.8 or later), -->
 +
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- 33 KB -->
 +
 +
<!-- 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 -->
<style type="text/css">
<style type="text/css">
-
/* Slider (thanks to flowplayer.org) */
+
 
-
/*************************************/
+
.content-slide a{
-
.cbp-fwslider {
+
-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px; padding: 15px 30px 15px; color: white; text-decoration: none; font-size: 20px; display: inline-block; width: 130px; background-color:#82C46C; text-align: center; margin-top: 70px;
-
    position: relative;
+
-
    margin: 0 0 10px;
+
-
    overflow: hidden;
+
-
    padding: 40px 0 60px;
+
}
}
-
+
.content-slide a:hover{
-
.cbp-fwslider ul {
+
background-color:#22780F;
-
    margin: 0;
+
-
    padding: 0;
+
-
    white-space: nowrap;
+
-
    list-style-type: none;
+
-
}
+
-
+
-
.cbp-fwslider ul li {
+
-
    transform: translateZ(0);
+
-
    float: left;
+
-
    display: block;
+
-
    margin: 0;
+
-
    padding: 0;
+
-
}
+
-
+
-
.cbp-fwslider ul li > a,
+
-
.cbp-fwslider ul li > div {
+
-
    display: block;
+
-
    text-align: center;
+
-
    outline: none;
+
-
}
+
-
+
-
.cbp-fwslider ul li > a img {
+
-
    border: none;
+
-
    display: block;
+
-
    margin: 0 auto;
+
-
    max-width: 75%;
+
-
}
+
-
+
-
.cbp-fwslider nav span {
+
-
    position: absolute;
+
-
    top: 50%;
+
-
    width: 50px;
+
-
    height: 100px;
+
-
    background: #47a3da;
+
-
    color: #fff;
+
-
    font-size: 50px;
+
-
    text-align: center;
+
-
    margin-top: -50px;
+
-
    line-height: 100px;
+
-
    cursor: pointer;
+
-
    font-weight: normal;
+
-
}
+
-
+
-
.cbp-fwslider nav span:hover {
+
-
    background: #378fc3;
+
-
}
+
-
+
-
.cbp-fwslider nav span.cbp-fwnext {
+
-
    right: 0px;
+
-
}
+
-
+
-
.cbp-fwslider nav span.cbp-fwprev {
+
-
    left: 0px;
+
-
}
+
-
+
-
.cbp-fwdots {
+
-
    position: absolute;
+
-
    bottom: 0px;
+
-
    white-space: nowrap;
+
-
    text-align: center;
+
-
    width: 100%;
+
-
}
+
-
+
-
.cbp-fwdots span {
+
-
    display: inline-block;
+
-
    width: 18px;
+
-
    height: 18px;
+
-
    background: #ddd;
+
-
    margin: 4px;
+
-
    border-radius: 50%;
+
-
    cursor: pointer;
+
-
}
+
-
+
-
.cbp-fwdots span:hover {
+
-
    background: #999;
+
-
}
+
-
+
-
.cbp-fwdots span.cbp-fwcurrent {
+
-
    background: #47a3da;
+
-
    box-shadow: 0 0 0 2px #47a3da;
+
-
    transition: box-shadow 0.2s ease-in-out;
+
}
}
</style>
</style>
-
<!--/* JS contenu PROPRE à cette page*/-->
 
-
    <!-- jQuery Tools (slider) -->
+
<!-------------------------------- SLIDE HEADER --------------------------------->
-
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+
-
    <script src="https://raw.githubusercontent.com/codrops/Blueprint-FullWidthImageSlider/master/js/jquery.cbpFWSlider.min.js"></script>
+
-
<script type="text/javascript">  
+
<div style="position:relative; class="wrapper-slide">
-
$( function() {
+
  <div class="fotorama" data-width="100%" data-fit="contain" data-nav="false"  data-ratio="3.2" data-height="690px" data-loop="true" style="margin-top:35px;-webkit-filter: grayscale(0.3);">
 +
    <center><img src="https://static.igem.org/mediawiki/2014/2/24/Hometesttoulouse.jpg" data-fit="cover" style="-webkit-filter:grayscale(0.5); -moz-filter: grayscale(50%); filter: grayscale(50%);" ></center>
 +
    <!--<img src="https://static.igem.org/mediawiki/2014/3/39/Banderole.jpg" data-fit="cover" >
 +
    <img src="https://static.igem.org/mediawiki/2014/4/4b/Home_4.JPG" data-fit="cover" >
 +
    <img src="https://static.igem.org/mediawiki/2014/c/c1/Banderole_exp.jpg" data-fit="cover" >-->
 +
   
 +
  </div>
-
$( '#cbp-fwslider' ).cbpFWSlider();
+
  <div style="margin: 0 auto; width:230px;">
-
} );
+
    <div style="position:absolute; top:0; text-align:center;" class="content-slide">
-
</script>
+
      <h1 style="font-size:54px; color:white; margin-top: 120px; text-shadow: 2px 2px 2px rgba(0,0,0, 0.60);">SubtiTree</h1>
-
 
+
      <p style="font-size:30px; color:white; margin-top: 30px; text-shadow: 2px 2px 2px rgba(0,0,0, 0.60);">Save our trees</p>
-
 
+
      <a href="https://2014.igem.org/Team:Toulouse/Project/Overviews">Learn more</a>
-
<!-------------------------------- SLIDE HEADER --------------------------------->
+
  </div>
 +
  </div>
-
<div id="cbp-fwslider" class="cbp-fwslider">
 
-
    <ul>
 
-
        <li><a href="https://2014.igem.org/Team:Toulouse/Project/Overviews"><img src="https://static.igem.org/mediawiki/2014/8/89/Toulouse_Home_1.JPG"/></a></li>
 
-
        <li><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"/></a></li>
 
-
        <li><a href="https://2014.igem.org/Team:Toulouse/Team"><img src="https://static.igem.org/mediawiki/2014/3/36/Toulouse_Home_3.jpg" alt="img03"/></a></li>
 
-
        <li><a href="#"><img src="https://static.igem.org/mediawiki/2014/4/4a/Template-igem2014-slide2.jpg" alt="img04"/></a></li>
 
-
    </ul>
 
</div>
</div>
-
 
 
</html>
</html>

Latest revision as of 12:32, 23 February 2015

SubtiTree

Save our trees

Learn more