Difference between revisions of "Template:IONIS Paris/JS"
Line 76: | Line 76: | ||
}); | }); | ||
− | // | + | //GOTOP |
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | $(".gototop").hide(); | ||
+ | $(function () { | ||
+ | $(window).scroll(function () { | ||
+ | if ($(this).scrollTop() > 400 ) { | ||
+ | $('.gototop').fadeIn(500); | ||
+ | } } | ||
+ | |||
+ | }); | ||
</script> | </script> |
Revision as of 15:20, 16 September 2015