Template:SJTU-Software/teamJs
$(document).ready(function(){ $(".fixed-nav").css("top",$(window).height()*0.3); $("html").niceScroll(); $('.membersNav').click(changePage); $('img').click(show); $('.colorful').click(hide) }); var changePage = function(){ var active = $(this).attr("id"); var bros = $(this).siblings(); $("."+active).css("display","inline"); bros.each(function(){ active = $(this).attr("id"); $("."+active).css("display","none"); }) }
var show = function(){ var target = $(this).attr("id"); target = "#"+target+"2"; $(target).css("width","100%"); $(target).css("-webkit-transform","rotate(360deg)"); $(target).css("display","block") }
var hide = function(){ $(this).css("width","0");
}