Difference between revisions of "Team:Valencia UPV/Templates:headUPV"
m |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
--> | --> | ||
− | + | <script> | |
+ | $(document).ready(function () { | ||
+ | $(window).scroll(function () { | ||
+ | if ($(this).scrollTop() > 100) { | ||
+ | $('.scrollup').fadeIn(); | ||
+ | } else { | ||
+ | $('.scrollup').fadeOut(); | ||
+ | } | ||
+ | }); | ||
+ | $('.scrollup').click(function () { | ||
+ | $("html, body").animate({ | ||
+ | scrollTop: 0 | ||
+ | }, 600); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</head> | </head> | ||
</html> | </html> |
Latest revision as of 00:57, 19 September 2015