Difference between revisions of "Template:IONIS Paris/JS"
(4 intermediate revisions by the same user not shown) | |||
Line 76: | Line 76: | ||
}); | }); | ||
− | // | + | //GOTOP |
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | $(document).ready(function(){ | ||
+ | |||
+ | $(".gototop").hide(); | ||
+ | |||
+ | // faire apparaitre #gototop | ||
+ | $(function () { | ||
+ | $(window).scroll(function () { | ||
+ | if ($(this).scrollTop() > 450 ) { | ||
+ | $('.gototop').fadeIn(300); | ||
+ | } else { | ||
+ | $('.gototop').fadeOut(300); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | |||
+ | }); | ||
+ | }); | ||
</script> | </script> |
Latest revision as of 15:33, 16 September 2015