mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
#define js_dropdowns {"
|
|
function dropdowns() {
|
|
var divs = document.getElementsByTagName('div');
|
|
var headers = new Array();
|
|
var links = new Array();
|
|
for(var i=0;i<divs.length;i++){
|
|
if(divs\[i\].className=='header') {
|
|
divs\[i\].className='header closed';
|
|
divs\[i\].innerHTML = divs\[i\].innerHTML+' +';
|
|
headers.push(divs\[i\]);
|
|
}
|
|
if(divs\[i\].className=='links') {
|
|
divs\[i\].className='links hidden';
|
|
links.push(divs\[i\]);
|
|
}
|
|
}
|
|
for(var i=0;i<headers.length;i++){
|
|
if(typeof(links\[i\])!== 'undefined' && links\[i\]!=null) {
|
|
headers\[i\].onclick = (function(elem) {
|
|
return function() {
|
|
if(elem.className.search('visible')>=0) {
|
|
elem.className = elem.className.replace('visible','hidden');
|
|
this.className = this.className.replace('open','closed');
|
|
this.innerHTML = this.innerHTML.replace('-','+');
|
|
}
|
|
else {
|
|
elem.className = elem.className.replace('hidden','visible');
|
|
this.className = this.className.replace('closed','open');
|
|
this.innerHTML = this.innerHTML.replace('+','-');
|
|
}
|
|
return false;
|
|
}
|
|
})(links\[i\]);
|
|
}
|
|
}
|
|
}
|
|
"} |