Difference between revisions of "Team:HSNU-TAIPEI/HP/Material/APP"
Line 75: | Line 75: | ||
</div> | </div> | ||
</header> | </header> | ||
+ | <head> | ||
+ | <link href='https://2015.igem.org/Team:NCTU_Formosa/wiki_reset?action=raw&ctype=text/css' rel="stylesheet"> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $(".flip").click(function(){ | ||
+ | $(".panel").slideToggle("fast"); | ||
+ | }); | ||
+ | //離開頁頂時才出現gotop按鈕 | ||
+ | $(".gotop").fadeOut(0) | ||
+ | $(window).scroll(function(){ | ||
+ | if($(window).scrollTop()>=$(".p02").offset().top){ | ||
+ | $(".top").fadeIn() | ||
+ | }else{ | ||
+ | $(".top").fadeOut() | ||
+ | } | ||
+ | }) | ||
+ | |||
+ | //點擊goptop時回到頁頂 | ||
+ | $(".top").click(function(){ | ||
+ | $("html,body").stop() | ||
+ | $("html,body").animate({"scrollTop":"0"}) | ||
+ | n=1 | ||
+ | }) | ||
+ | }); | ||
+ | </script> | ||
<main> | <main> | ||
<div> | <div> |
Revision as of 08:40, 20 August 2015