1// $(document).ready(function() { 2// $("#users").append('<div class="no-result">Keine Einträge gefunden</div>'); 3// $(".no-result").hide(); 4// var options = { 5// valueNames: [ 6// "email", 7// "name", 8// "cat", 9// "committee", 10// "partyaffiliation", 11// { 12// data: ["year"], 13// data: ["date"] 14// }, 15// "dateFilter", { name: 'dateFilter', attr: 'data-date' } 16// ], 17// }; 18 19// if ($(".pager").length >= 1) { 20// options["page"] = 12; 21// options["pagination"] = [{ 22// name: "pager", 23// paginationClass: "pager", 24// innerWindow: 2, 25// outerWindow: 2, 26// left: 1, 27// right: 1 28// }]; 29// } 30 31 32// var userList = new List("users", options); 33 34// $(".next").on("click", function() { 35// $(".pagination") 36// .find(".active") 37// .next() 38// .trigger("click"); 39// }); 40 41// $(".previous").on("click", function() { 42// $(".pagination") 43// .find(".active") 44// .prev() 45// .trigger("click"); 46// }); 47 48// function updateList() { 49// year = $("#selectedYear").val(); 50// cat = $("#selectedCategory").val(); 51// committee = $("#selectedCommittee").val(); 52// partyaffiliation = $("#selectedPartyaffiliation").val(); 53// date = $("#selectedDate").val(); 54// var values_year = year; 55// var values_cat = cat; 56// var values_committee = committee; 57// var values_partyaffiliation = partyaffiliation; 58// var values_date = date; 59 60// userList.filter(function(item) { 61// var yearFilter = true; 62// var catFilter = true; 63// var committeeFilter = true; 64// var partyaffiliationFilter = true; 65// var dateFilter = true; 66 67// if ( 68// values_year != "undefined" && 69// values_year != undefined && 70// values_year != null 71// ) 72// yearFilter = item.values().year >= values_year; 73 74// if ( 75// values_cat != "undefined" && 76// values_cat != undefined && 77// values_cat != null 78// ) 79// catFilter = item.values().cat.indexOf(values_cat) >= 0; 80 81// if ( 82// values_committee != "undefined" && 83// values_committee != undefined && 84// values_committee != null 85// ) 86// committeeFilter = item 87// .values() 88// .committee.includes(values_committee); 89 90// // console.log({ values_partyaffiliation }, { item }); 91// if ( 92// values_partyaffiliation != "undefined" && 93// values_partyaffiliation != undefined && 94// values_partyaffiliation != null 95// ) 96// partyaffiliationFilter = item 97// .values() 98// .partyaffiliation.includes(values_partyaffiliation); 99 100// if ( 101// values_date != "undefined" && 102// values_date != undefined && 103// values_date != null 104// ) 105// dateFilter = moment(item.values().date, "DD.MM.YYYY") >= moment(values_date, "DD.MM.YYYY"); 106// // console.log("1"); 107// // console.log( + " >= " + ); 108// // console.log("2"); 109// // console.log(values_date + " >= " + item.values().date); 110 111// console.log('Auswahl: ' + moment(values_date, "DD.MM.YYYY")); 112// console.log('Item: ' + moment(item.values().date, "DD.MM.YYYY")); 113// console.log(moment(item.values().date, "DD.MM.YYYY") >= moment(values_date, "DD.MM.YYYY")); 114// console.log('--------'); 115 116// // console.log({ values_date }, { values_cat }, { values_committee }, { values_partyaffiliation }) 117 118// return ( 119// yearFilter && 120// catFilter && 121// committeeFilter && 122// partyaffiliationFilter && 123// dateFilter 124// ); 125// });
126// userList.update(); 127// console.log('______________________________________________________') 128// } 129 130// $(function() { 131// //updateList(); 132// $("#selectedDate").change(updateList); 133// $("#selectedYear").change(updateList); 134// $("#selectedCategory").change(updateList); 135// $("#selectedCommittee").change(updateList); 136// $("#selectedPartyaffiliation").change(updateList); 137// userList.on("updated", function(list) { 138// if (list.matchingItems.length > 0) { 139// $(".pagination").show(); 140// $(".no-result").hide(); 141// } else { 142// $(".pagination").hide(); 143// $(".no-result").show(); 144// } 145// }); 146 147// }); 148// });
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.