Difference between revisions of "Team:NCTU Formosa/Description"

Line 4: Line 4:
 
<head>
 
<head>
 
<script src="https://2015.igem.org/Team:NCTU_Formosa/source/scrollit?action=raw&ctype=text/javascript" type='text/javascript'></script>
 
<script src="https://2015.igem.org/Team:NCTU_Formosa/source/scrollit?action=raw&ctype=text/javascript" type='text/javascript'></script>
    <script>$(function() { $.scrollIt(); });</script>
+
<script src="https://2015.igem.org/Team:NCTU_Formosa/source/stickyrelocate?action=raw&ctype=text/javascript" type='text/javascript"></script>
  <script>function sticky_relocate() {
+
    <script>$(function() { $.scrollIt(); });</script>  
            var window_top = $(window).scrollTop();
+
            var div_top = $('#sticky-anchor').offset().top;
+
            if (window_top > div_top) {
+
                $('#sidenav').addClass('stick');
+
            } else {
+
                $('#sidenav').removeClass('stick');
+
            }
+
        }
+
       
+
        $(function () {
+
            $(window).scroll(sticky_relocate);
+
            sticky_relocate();
+
        });</script>
+
 
<style tpe=text/css>
 
<style tpe=text/css>
 
/* v1.0 | 20080212 */
 
/* v1.0 | 20080212 */

Revision as of 01:52, 19 September 2015