1/** 2 * @author Christopher Klaver 3 */ 4function searchBlur(searchValue){ 5 var boxID = document.getElementById('txtSearchFor32'); 6 if (searchValue == '') { 7 boxID.value = 'Search'; 8 boxID.style.color='#c0c0c0' 9 } 10} 11function searchFocus(searchValue){ 12 var boxID = document.getElementById('txtSearchFor32'); 13 if (searchValue == 'Search') { 14 boxID.value = ''; 15 boxID.style.color='black'; 16 } 17} 18function searchCheck (form) { 19 var searchAll = form.querySelector('[name="searchterms"]').value; 20 console.log(searchAll); 21 var returnVal; 22 if (searchAll == null || searchAll.trim() === ''){ 23 returnVal = false; 24 } 25 else { 26 returnVal = true; 27 } 28 return returnVal; 29} 30function searchSubmit (e) { 31 e.preventDefault(); 32 var form = e.target; 33 var searchSubConf = searchCheck(form); 34 if (searchSubConf == 1){ 35 form.submit();; 36 } 37} 38function searchSaveOnly () { 39 var searchSubConf = searchCheck(); 40 if (searchSubConf == 1){ 41 var buttonCheck = document.getElementById('savecheck'); 42 buttonCheck.value = '1'; 43 document.getElementById('frmNewsQuery').submit(); 44 } 45} 46function nextPage(startRecord, recordCnt, pageNo, searchTerms, searchSession, savedID, news, bills, committees, boards, planner, rules, names, blog, searchUUID) { 47 var nextPageForm = document.getElementById('priorpage'); 48 nextPageForm.elements["start"].value = startRecord; 49 nextPageForm.elements["records"].value = recordCnt; 50 nextPageForm.elements["page"].value = pageNo; 51 nextPageForm.elements["searchterms"].value = searchTerms; 52 nextPageForm.elements["searchsessid"].value = searchSession; 53 nextPageForm.elements["searchid"].value = savedID; 54 nextPageForm.elements["cknews"].value = news; 55 nextPageForm.elements["ckLegislation"].value = bills; 56 nextPageForm.elements["ckLegComm"].value = committees; 57 nextPageForm.elements["ckAgCal"].value = boards; 58 nextPageForm.elements["ckEventCal"].value = planner; 59 nextPageForm.elements["ckAdRules"].value = rules; 60 nextPageForm.elements["ckNames"].value = names; 61 nextPageForm.elements["ckBlog"].value = blog; 62 nextPageForm.elements["searchUUID"].value = searchUUID; 63 nextPageForm.submit(); 64 //console.log(nextPageForm.action); 65} 66function deleteSearch(searchID) { 67 var answer = confirm("Are you sure you want to delete this saved search?"); 68 if (answer) { 69 var url = "/tracking/trackprocessor.cfm?delete=1&searchid=" + searchID; 70 $.get(url, function() { 71 window.location = window.location; 72 }); 73 } 74}
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.