Lines Matching refs:elements
52 var elements;
54 elements = document.getElementsByClassName("folder");
55 for (i = 0; i < elements.length; i++) {
58 if (elements[i].className.search("open") == -1) {
66 elements[i].className = elements[i].className.replace(/open/g, "");
68 elements[i].className = elements[i].className + " open";
73 // get folded elements
74 elements = document.getElementsByClassName("folded");
75 for (i = 0; i < elements.length; i++) {
77 elements[i].className = elements[i].className.replace(/open/g, "");
78 elements[i].className = elements[i].className + " hidden";
80 elements[i].className = elements[i].className.replace(/hidden/g, "");
81 elements[i].className = elements[i].className + " open";