PageSourceSearch

https://kphvie.ac.at/_assets/088da3a750d375bd789825171c238fa6/JavaScript/Dce/filter.js?1769188147

js kphvie.ac.at collected 2026-10-02 04:00:18 UTC 2,289 bytes, 68 lines download raw bytes

1
2function filter(arg) {
3    window.onload=filter;
4    //console.log(arg.value);
5    noC = arg.value.substring(0,arg.value.indexOf('_'));
6    noB = arg.value.substring(arg.value.indexOf('_')+1);
7    //console.log("noC:" + noC);
8    c = document.getElementsByClassName('dce-container_'+ noC);          //dce container
9    bb = document.getElementsByClassName('button-bar button-bar_'+ noC); //button bar
10
11    // get active filters
12    let filterList = []; //active filters
13    let z=0;
14    //console.log(bb[0]);
15    for (let i = 0; i < bb[0].children.length; i++) {
16            //console.log(bb[0].children[i]);
17            //console.log(bb[0].children[i].children[1]);
18            //console.log(bb[0].children[i].children[1].children[0]);
19            if (bb[0].children[i].children[1].children[0].checked) {
20                //console.log("Checked +" + bb[0].children[i].children[1].children[0]);
21                filterList[z] ='filter_'+ bb[0].children[i].children[1].children[0].id.substring(6);
22                z++;
23            }
24        }
25    //console.log("Filterlist "+ filterList);
26    //console.log(c);
27    //console.log(c[0]);
28
29    let filterOr=false;
30
31    if (filterList.length>0) {
32        for (let i = 0; i < c[0].children.length; i++) {  // hide all
33            c[0].children[i].style.display='none';
34        }
35
36        for (let i = 0; i < c[0].children.length; i++) {  // show elements with filterCriteria
37            let show = false;  //and-filter
38            for(let j=0;j<filterList.length;j++) {
39                //console.log("FILTER: " + filterList[j]);
40                //console.log(c[0].children[i].className.indexOf(filterList[j]));
41
42                if (c[0].children[i].className.indexOf(filterList[j]) >=0) { // found filterCriteria
43                    show = true;
44                    if (filterOr) {
45                        break;
46                    }
47                }
48                else {
49                    show = false;
50                    break;
51                }
52            }
53            if (show) {
54                c[0].children[i].style.display='inline-flex';
55            }
56        }
57    }
58    else { // show all
59        for (let i = 0; i < c[0].children.length; i++) {
60            c[0].children[i].style.display='inline-flex';
61        }
62    }
63}
64
65
66
67
68

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.