Line 105: | Line 105: | ||
</div> | </div> | ||
</div> | </div> | ||
+ | <script> | ||
+ | $(document).ready(function() { | ||
+ | $(window).scroll(function() { | ||
+ | if ($(this).scrollTop() >= 50) { | ||
+ | var position = $("#sidelist").position(); | ||
+ | if(position == undefined){} | ||
+ | else{ | ||
+ | $('#sidelist').css({"position": "fixed", "top": "145px", "margin-top": "0px"}); | ||
+ | } | ||
+ | } else { | ||
+ | $('#sidelist').removeAttr('style'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
<script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&ctype=text/javascript"></script> | <script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&ctype=text/javascript"></script> | ||
<script src="https://2018.igem.org/Template:NCKU_Tainan/js/bootstrap_min_js?action=raw&ctype=text/javascript"></script> | <script src="https://2018.igem.org/Template:NCKU_Tainan/js/bootstrap_min_js?action=raw&ctype=text/javascript"></script> |
Revision as of 11:25, 23 July 2018