Changes

Jump to navigation Jump to search
23 bytes removed ,  13:16, 27 May 2020
m
no edit summary
/* Any JavaScript here will be loaded for all users on every page load. */
filterSelection("all")function filterSelection(c) { var x, i; x = document/* Javascript filter for the manual 2020.05.getElementsByClassName("ManualsfilterLi");26 if (c == "all") c = "";-------------------------------------------------*/ // Add the "show" class (display:block) to the filtered elements, and remove the "show" class from the elements that are not selectedanimate divs on start for (i var items = 0; i < xdocument.length; i++) { w3RemoveClassquerySelectorAll(x[i], "Manualsshow"'.filter-sections ul'); if (x[i].className.indexOf(c) > -1) w3AddClassanimate(x[i], "Manualsshow"items); }}
// Show filtered elementsfilter on clickeach('.filter-links li a', function w3AddClass(element, nameel) { var iel.addEventListener('click', arr1, arr2; arr1 = element.className.splitfunction(" "e);{ arr2 = name e.splitpreventDefault(" "); for (i = 0; i < arr2.length; i++) { if filterLinks(arr1.indexOf(arr2[i]) == -1el) { element.className += " " + arr2[i]; } });});
// Hide elements that are not selectedfilter links functionsfunction w3RemoveClassfilterLinks(element, name) { var i, arr1, arr2;// get text arr1 var el = element.classNametextContent, // convert to lowercase linksTolowerCase = el.splittoLowerCase(" "); arr2 // if all remove all elements if (el === name'All') { // first show all view class each('.splitview', function(" "e);{ for e.classList.remove(i = 0'view'); i < arr2.length }); i++ // no show init animation animate(items) ; } else { while // if not click all remove all elements each(arr1'.indexOfview', function(arr2[i]) > -1e) { arr1e.splice(arr1classList.indexOfremove(arr2[i]), 1'view'); });
}
element// show animation for current elements animate(document.className = arr1querySelectorAll('.join(" "' + linksTolowerCase));};// Add active class to the current control button forech arraysfunction each(highlight itel, callback){ var btnContainer allDivs = document.getElementByIdquerySelectorAll("myBtnContainer"el);,var btns alltoArr = btnContainerArray.prototype.slice.getElementsByClassNamecall("Manualsbtn"allDivs);for (var i = 0; i < btns Array.prototype.length; i++) { btns[i]forEach.addEventListenercall("click"alltoArr, function(selector, index) { var current = document.getElementsByClassNameif ("active"callback); current[0].className = current[0].className.replacereturn callback(" active", ""selector); this.className += " active";
});
};// animate functionfunction animate(item) { (function show(counter) { setTimeout(function() { item[counter].classList.add('view'); counter++; if (counter < item.length) show(counter); },1); })(0);};

Navigation menu