Difference between revisions of "Template:Team:SJTU-Software/wiki.js"

 
Line 1: Line 1:
<html>
 
<body>
 
<pre style="word-wrap: break-word; white-space: pre-wrap;">
 
  
 
<html>
 
<body>
 
<script>
 
 
$(document).ready(function(){
 
$(document).ready(function(){
 
$(".fixed-nav").css("top",$(window).height()*0.3);
 
$(".fixed-nav").css("top",$(window).height()*0.3);
Line 22: Line 15:
 
})
 
})
 
}
 
}
</script>
 
</body>
 
</html>
 
</pre>
 
</body>
 
</html>
 

Latest revision as of 16:59, 11 September 2015

$(document).ready(function(){ $(".fixed-nav").css("top",$(window).height()*0.3);

   $("html").niceScroll();    

$('.designNav').click(changePage); }); var changePage = function(){ var active = $(this).text(); console.log(active); var bros = $(this).siblings(); $("."+active).css("display","inline"); bros.each(function(){ active = $(this).text(); $("."+active).css("display","none"); }) }