Template:SJTU-Software/requirementJs

$(document).ready(function(){ $('area').click(open); $('.am-close').click(close) $('#bronze1').click(function(){ $('#bronze1-4').css("display","block"); }); $('#bronze1-4').click(function(){ $(this).css("display","none") }); });


var open = function(){ var id = $(this).attr("href"); $(id).css("display","block"); var bro = $(this).siblings(); bro.each(function(){ id = $(this).attr("href"); $(id).css("display","none") })

} var close = function(){ $(this).parent().css("display","none"); }