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

(Created page with " $(document).ready(function(){ $(".fixed-nav").css("top",$(window).height()*0.3); $("html").niceScroll(); $('.designNav').click(changePage); }); var changePage = fun...")
 
(Blanked the page)
 
Line 1: Line 1:
  
$(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");
 
})
 
}
 

Latest revision as of 16:08, 11 September 2015