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