Team:Hong Kong-CUHK/js/common.js
From 2014.igem.org
(Difference between revisions)
(Created page with "function changemenu(){if($(".left-menu").is(":visible")){$(".left-menu").hide();$(".right-menu").hide();document.getElementById("ooswitch").style.backgroundColor="rgb(46,43,52)"}...") |
m |
||
Line 1: | Line 1: | ||
- | function changemenu(){if($(".left-menu").is(":visible")){$(".left-menu").hide();$(".right-menu").hide();document.getElementById("ooswitch").style.backgroundColor="rgb(46,43,52)"}else{$(".left-menu").show();$(".right-menu").show();document.getElementById("ooswitch").style.backgroundColor="rgb(228,45,51)"}}$(document).ready(function(){var e=$("<div></div>").attr("id","onofflogo");var t=$("<a></a>");var n=$("<img></img>").attr("id","ooswitch").attr("src","https://static.igem.org/mediawiki/2013/7/72/PB_LogoOff.gif").attr("height","15").css("backgroundColor","rgb(46,43,52)");t.click(changemenu);t.append(n);e.append(t);$("#globalWrapper").prepend(e)}) | + | function changemenu(){if($(".left-menu").is(":visible")){$(".left-menu").hide();$(".right-menu").hide();document.getElementById("ooswitch").style.backgroundColor="rgb(46,43,52)"}else{$(".left-menu").show();$(".right-menu").show();document.getElementById("ooswitch").style.backgroundColor="rgb(228,45,51)"}}$(document).ready(function(){var e=$("<div></div>").attr("id","onofflogo");var t=$("<a></a>");var n=$("<img></img>").attr("id","ooswitch").attr("src","https://static.igem.org/mediawiki/2013/7/72/PB_LogoOff.gif").attr("height","15").css("backgroundColor","rgb(46,43,52)");t.click(changemenu);t.append(n);e.append(t);$("#globalWrapper").prepend(e)}); |