1function search_dtpicker_onUpdate1(cal) { 2 dtpicker_newDate = cal.date; 3 var selected = cal.date; 4 if (selected.getDate() < 10) { 5 document.getElementById("fromDay").value = "0" + selected.getDate(); 6 } else { 7 document.getElementById("fromDay").value = selected.getDate(); 8 } 9 document.getElementById("fromMonth").selectedIndex = selected.getMonth() + 1; 10 document.getElementById("fromYear").value = selected.getFullYear(); 11} 12 13function search_dtpicker_onUpdate2(cal) { 14 dtpicker_newDate = cal.date; 15 var selected = cal.date; 16 if (selected.getDate() < 10) { 17 document.getElementById("toDay").value = "0" + selected.getDate(); 18 } else { 19 document.getElementById("toDay").value = selected.getDate(); 20 } 21 document.getElementById("toMonth").selectedIndex = selected.getMonth() + 1; 22 document.getElementById("toYear").value = selected.getFullYear(); 23} 24 25var CMSSearchObject = function () { 26 return { 27 hideExtended: function (id) { 28 var elem = jQuery('#' + id); 29 if (elem === null) 30 return; 31 elem.hide(); 32 }, 33 showExtended: function (id, rid, rid2) { 34 var elem = jQuery('#' + id); 35 if (elem === null) 36 return; 37 elem.toggle('blind', {}, 500); 38 39 }, 40 toggleDisabled: function (id, active) { 41 var elem = jQuery('#' + id); 42 if (elem === null) 43 return; 44 elem.attr('disabled', active); 45 }, 46 toggle: function (id, show) { 47 var elem = jQuery('#' + id); 48 if (elem === null) 49 return; 50 if (show) { 51 elem.toggle(true); 52 elem.find('*').attr('disabled', false); 53 } else { 54 elem.toggle(false); 55 elem.find('*').attr('disabled', true); 56 } 57 }, 58 selectAllSection: function (id, doAll) { 59 var selectBox; 60 if (typeof id == "string") { 61 selectBox = document.getElementById(id); 62 } else { 63 return; 64 } 65 66 for (var i = 0; i < selectBox.options.length; i++) { 67 selectBox.options[i].selected = Boolean(doAll); 68 } 69 } 70 71 } 72}(); 73 74 75jQuery(document).ready(function () { 76 jQuery('.score-bar').each(function () { 77 var $bar = jQuery(this); 78 var score = $bar.siblings(".score-val").html(); 79 $bar.children(".score-bar-inner").css("width", score.replace("%", "") + "px"); 80 }); 81 82 // focus for quick search 83 var queryString = window.location.search; 84 var urlParams = new URLSearchParams(queryString); 85 var qs = urlParams.has('quicksearch'); 86 if (qs) { 87 jQuery("input[class='pbsearch-autocomplete']").each(function () { 88 this.setAttribute('tabindex', -1); 89 this.focus(); 90 }); 91 } 92});
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.