Team:ZJU-China/JS/wiki.js
From 2014.igem.org
(Difference between revisions)
(Created page with "$(".left-menu li:last-child").css('color', 'transparent');") |
|||
Line 1: | Line 1: | ||
$(".left-menu li:last-child").css('color', 'transparent'); | $(".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"); | ||
+ | }); | ||
+ | }); |
Revision as of 11:03, 21 September 2014
$(".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"); });
});