MediaWiki:Common.js/lightswitch.js: Difference between revisions
From The Official Visionaire Studio: Adventure Game Engine Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$("#switchLight | $("#switchLight").click(function() { | ||
//$("body").css({background:, "#000000"}); | //$("body").css({background:, "#000000"}); | ||
$("#switchLight").hide(); $("#switchDark").show(); | $("#switchLight").hide(); | ||
$("#switchDark").show(); | |||
//$.cookie("css", null, {expires: 365, path: '/'}); | //$.cookie("css", null, {expires: 365, path: '/'}); | ||
return false; | |||
}); | }); | ||
$("#switchDark | $("#switchDark").click(function() { | ||
//$("body").css({background:, "#ffffff"}); | //$("body").css({background:, "#ffffff"}); | ||
$("#switchDark").hide(); $("#switchLight").show(); | $("#switchDark").hide(); | ||
$("#switchLight").show(); | |||
//$.cookie("css", null, {expires: 365, path: '/'}); | //$.cookie("css", null, {expires: 365, path: '/'}); | ||
return false; | |||
}); | |||
}); | }); | ||
Revision as of 22:51, 5 November 2014
$(document).ready(function() {
$("#switchLight").click(function() {
//$("body").css({background:, "#000000"});
$("#switchLight").hide();
$("#switchDark").show();
//$.cookie("css", null, {expires: 365, path: '/'});
return false;
});
$("#switchDark").click(function() {
//$("body").css({background:, "#ffffff"});
$("#switchDark").hide();
$("#switchLight").show();
//$.cookie("css", null, {expires: 365, path: '/'});
return false;
});
});