Difference between revisions of "Team:Valencia UPV/Templates:headUPV"
(5 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
+ | <!-- | ||
+ | MENTIONS | ||
+ | |||
+ | Parts of this web design come from: | ||
+ | http://html5up.net/ | ||
+ | http://tympanus.net/codrops/ | ||
+ | |||
+ | With the support of: | ||
+ | http://qubic.es | ||
+ | |||
+ | |||
+ | --> | ||
+ | <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