Difference between revisions of "Template:SDSZ China with sidebar"

Line 53: Line 53:
 
<script type="text/javascript" src="https://2016.igem.org/wiki/index.php/Team:SDSZ_China/js/easing?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="https://2016.igem.org/wiki/index.php/Team:SDSZ_China/js/easing?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript">
 
<script type="text/javascript">
 +
        var scr = true;
 
$(document).ready(function() {
 
$(document).ready(function() {
 
                 if(pageid != ""){
 
                 if(pageid != ""){
Line 64: Line 65:
 
                     $(this).removeClass("open");
 
                     $(this).removeClass("open");
 
                 });
 
                 });
                 $("body").scrollspy({ target: '#sidebar' });
+
                 if (scr){
 +
                    $("body").scrollspy({ target: '#sidebar' });
 +
                }
 
             });
 
             });
 
</script>
 
</script>

Revision as of 09:55, 18 October 2016