X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=static%2Fstatic%2Fmenu.js;fp=static%2Fstatic%2Fmenu.js;h=bcaee0d8860666258df22ecd387995b6694fafb8;hp=023e62440757526865c0a33e05b8fdcf948d0526;hb=3c851b6824c0f54c9082640c4f83e453bbecbb6a;hpb=ce8b9c388ddaf73c6b35b7ece7fcdbf8618aee9f diff --git a/static/static/menu.js b/static/static/menu.js index 023e6244..bcaee0d8 100644 --- a/static/static/menu.js +++ b/static/static/menu.js @@ -21,35 +21,13 @@ } } } - function showExpert(a) - { - b=document.getElementsByClassName("expert"); - for(i=0;b.length>i;i++) - { - if(!a) {b[i].setAttribute("class","expert experthidden"); } - else {b[i].setAttribute("class","expert");} - } - b=document.getElementsByClassName("expertoff"); - for(i=0;b.length>i;i++) - { - b[i].setAttribute("class",""); - } - } - function init(){ - initMenu(); - showExpert(false); - var expert = document.getElementById("expertbox"); - if(expert !== null) { - expert.onchange = (function(expert){return function(){showExpert(expert.checked)}})(expert); - } - } (function(oldLoad) { if (oldLoad == undefined) { window.onload = init; } else { window.onload = function() { - init(); + initMenu(); oldLoad(); } }