Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <script> | ||
+ | $(document).ready(function () { | ||
+ | $(window).scroll(function () { | ||
+ | if ($(this).scrollTop() > 100) { | ||
+ | $('.up').fadeIn(); | ||
+ | } else { | ||
+ | $('.up').fadeOut(); | ||
+ | } | ||
+ | }); | ||
+ | $('.up').click(function () { | ||
+ | $("html, body").animate({ | ||
+ | scrollTop: 0 | ||
+ | }, 600); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | <body> | ||
+ | |||
+ | <div class="igemlogo"> | ||
+ | <a href="https://2016.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2016/0/03/T--TU_Delft--igem.png" alt=""></a> | ||
+ | </div> | ||
+ | <div class="up"> | ||
+ | <a href="#"><i class="fa fa-arrow-up fa-3x" aria-hidden="true"></i></a> | ||
+ | </div> | ||
Revision as of 12:54, 21 September 2016