Difference between revisions of "Template:IONIS Paris/JS"
Line 82: | Line 82: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | $(" | + | $(".gototop").hide(); |
− | // faire apparaitre # | + | // faire apparaitre #gototop |
$(function () { | $(function () { | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
− | if ($(this).scrollTop() > | + | if ($(this).scrollTop() > 450 ) { |
− | $(' | + | $('.gototop').fadeIn(300); |
} else { | } else { | ||
− | $(' | + | $('.gototop').fadeOut(300); |
} | } | ||
}); | }); |
Latest revision as of 15:33, 16 September 2015