1function addEvent(obj, evType, fn){ 2 if (obj.addEventListener){ 3 obj.addEventListener(evType, fn, false); 4 return true; 5 } else if (obj.attachEvent){ 6 var r = obj.attachEvent("on"+evType, fn); 7 return r; 8 } else { 9 return false; 10 } 11} 12//addEvent(window, 'load', alert('loaded')); 13//addEvent(window, 'load', bar); 14//addEvent(window, 'load', setValuesToFixDisableProblem); 15 16 17function setValuesToFixDisableProblem(){ 18 19} 20function focusOnPrevious(id){ 21 var elem = document.getElementById(id); 22 var inputs = $(':input'); 23 var index = inputs.index(elem); 24 25 while(index > 0){ 26 index--; 27 var candidateElem = inputs.get(index); 28// console.log(candidateElem); 29 if($(candidateElem).is(":visible") == true){ 30 candidateElem.focus(); 31 index = 0; 32 } 33 } 34} 35 36function SelectAll(id) 37{ 38 document.getElementById(id).focus(); 39 document.getElementById(id).select(); 40}
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.