Difference between revisions of "Template:IONIS Paris/JS"

 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
<head>
 
<head>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/jquery.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page?action=raw&ctype=text/javascript"></script>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/wow/wow.min.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page2?action=raw&ctype=text/javascript"></script>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/bootstrap/js/bootstrap.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page3?action=raw&ctype=text/javascript"></script>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/mobile/touchSwipe.min.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page4?action=raw&ctype=text/javascript"></script>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/respond/respond.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page5?action=raw&ctype=text/javascript"></script>
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/gallery/jquery.blueimp-gallery.min.js"></script>
+
<script src="https://2015.igem.org/Template:IONIS_Paris/JS_Page6?action=raw&ctype=text/javascript"></script>
  
 
<script  type="text/javascript">
 
<script  type="text/javascript">
Line 33: Line 33:
  
 
// Si on a des vidéos, on arrête le caroussel
 
// Si on a des vidéos, on arrête le caroussel
 +
 
$(document).ready(function(){
 
$(document).ready(function(){
console.log("ready to play.");
+
 
if ($('#myCarousel video') != [])
+
if ($('#myCarousel video').length != 0)
 
{  
 
{  
     var ret = $('#myCarousel').carousel('pause');
+
     var ret = $('.carousel').carousel({
     console.log("paused as we have videos: ", ret);
+
     pause: true,
 +
    interval: false
 +
});
 +
   
 
} else {
 
} else {
     console.log("no video, let's roll!");
+
      
 
     $('#myCarousel').carousel('cycle');
 
     $('#myCarousel').carousel('cycle');
 
}
 
}
 
});
 
});
 
//NB
 
//NB
 +
  
 
// NOTEBOOK
 
// NOTEBOOK
Line 69: Line 74:
 
     });
 
     });
 
   });
 
   });
 +
});
 +
 +
//GOTOP
 +
 +
 +
 +
  $(document).ready(function(){
 +
   
 +
    $(".gototop").hide();
 +
     
 +
    // faire apparaitre #gototop
 +
    $(function () {
 +
        $(window).scroll(function () {
 +
            if ($(this).scrollTop() > 450 ) {
 +
                $('.gototop').fadeIn(300);
 +
            } else {
 +
                $('.gototop').fadeOut(300);
 +
            }
 +
    });
 +
   
 +
 +
    });
 
});
 
});
  

Latest revision as of 15:33, 16 September 2015