An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/static/js/modern.js

29 lines
748 B

function getChildrenShower(elem) {
return function() {
for(var i=0; i<elem.childNodes.length; i++) {
if(elem.childNodes[i].nodeName == "DIV") {
elem.childNodes[i].style.display="block";
}
}
}
}
function showChildren(elem) {
clearTimeout(elem.interval);
elem.interval = setTimeout(getChildrenShower(elem), 200);
}
function getChildrenHider(elem) {
return function() {
for(var i=0; i<elem.childNodes.length; i++) {
if(elem.childNodes[i].nodeName == "DIV" && elem.childNodes[i].getAttribute("default") != "default") {
elem.childNodes[i].style.display="none";
}
}
}
}
function hideChildren(elem) {
clearTimeout(elem.interval);
elem.interval = setTimeout(getChildrenHider(elem), 200);
}