Oscarliu117 (Talk | contribs) |
Oscarliu117 (Talk | contribs) |
||
Line 81: | Line 81: | ||
</p> | </p> | ||
</div> | </div> | ||
+ | |||
+ | <img class="contentimg col-6" src="https://static.igem.org/mediawiki/2018/d/d3/T--NCKU_Tainan--42912140_290158111713027_2209295202416328704_n_%282%29.jpg"> | ||
+ | |||
+ | <img class="contentimg col-6" src="https://static.igem.org/mediawiki/2018/c/cb/T--NCKU_Tainan--42936461_2453345124690709_7123450105071403008_n_%281%29.jpg"> | ||
<div id="pt"> | <div id="pt"> | ||
Line 179: | Line 183: | ||
</style> | </style> | ||
− | + | <script> | |
− | + | $(document).ready(function () { | |
− | + | $(window).scroll(function () { | |
− | + | if ($(this).scrollTop() >= 90) { | |
− | + | var position = $("#sidelist").position(); | |
− | + | if (position == undefined) {} else { | |
− | + | $('#sidelist').css({ | |
− | + | "position": "fixed", | |
− | + | "top": "145px", | |
− | + | "margin-top": "0px" | |
− | + | }); | |
− | } | + | |
− | + | ||
− | + | ||
} | } | ||
− | }); | + | } else { |
− | $(function () { | + | $('#sidelist').removeAttr('style'); |
− | + | } | |
− | + | }); | |
− | + | $(function () { | |
− | + | $('i.fa-arrow-up').click(function () { | |
− | + | $('html, body').animate({ | |
− | + | scrollTop: 0 | |
+ | }, 600); | ||
+ | return false; | ||
}); | }); | ||
}); | }); | ||
− | </script> | + | }); |
+ | </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 14:33, 5 October 2018