Team:ZJU-China/JS/wiki.js
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
+ | /* hide the white moji "team" */ | ||
$(".left-menu li:last-child").css('color', 'transparent'); | $(".left-menu li:last-child").css('color', 'transparent'); | ||
Line 11: | Line 12: | ||
} | } | ||
$("li#igem_edit").toggleClass("edit_on"); | $("li#igem_edit").toggleClass("edit_on"); | ||
+ | }); | ||
+ | |||
+ | /* move the footer to the right place */ | ||
+ | $("#footer-box").prepend($("div.zju_footer")); | ||
+ | /* hide and show media wiki */ | ||
+ | $("span#mediawikilogo").click(function () { | ||
+ | $("div#footer").toggle("normal"); | ||
}); | }); | ||
}); | }); |
Revision as of 12:48, 6 October 2014
/* hide the white moji "team" */ $(".left-menu li:last-child").css('color', 'transparent');
$(document).ready(function () {
$("li#igem_edit").click(function () { if ($("li#igem_edit").attr('class') === 'edit_on') { $("#top-section").css('background-color', 'transparent'); $("#menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover").removeAttr("style"); } else { $("#top-section").css('background-color', '#4480ff'); $("#menubar a:link, #menubar a:active, #menubar a:visited").css('color', '#fff'); } $("li#igem_edit").toggleClass("edit_on"); });
/* move the footer to the right place */ $("#footer-box").prepend($("div.zju_footer")); /* hide and show media wiki */ $("span#mediawikilogo").click(function () { $("div#footer").toggle("normal"); });
});