1var run_onload = new Array(); 2function set_onload() { 3 if (run_onload && run_onload.length > 0) { 4 if (document.observe) { 5 document.observe('dom:loaded', 6 function () { 7 for (var i = 0; i < run_onload.length; i++) { 8 switch (run_onload[i]) { 9 case 'load_map': 10 load_map(); 11 break; 12 case 'recaptcha_focus_response_field': 13 if ( typeof(Recaptcha) != 'undefined' ) { 14 //Recaptcha.focus_response_field(); 15 } 16 break; 17 } 18 } 19 if (typeof stripeAllTables == 'function') { 20 stripeAllTables(); 21 } 22 } 23 ); 24 } else { 25 window.onload = function () { 26 for (var i = 0; i < run_onload.length; i++) { 27 switch (run_onload[i]) { 28 case 'load_map': 29 load_map(); 30 break; 31 case 'recaptcha_focus_response_field': 32 if ( typeof(Recaptcha) != 'undefined' ) { 33 //Recaptcha.focus_response_field(); 34 } 35 break; 36 } 37 } 38 if (typeof stripeAllTables == 'function') { 39 stripeAllTables(); 40 } 41 }; 42 } 43 } 44} 45 46/* ************************ */ 47/* GENERAL HELPER FUNCTIONS */ 48/* ************************ */ 49 50/** 51 * Checks if jQuery version at least x is loaded 52 */ 53function isJQueryValidVersion(version) { 54 var validVersion = true; 55 if (typeof jQuery != 'undefined') { 56 if ((typeof version != 'undefined') && (version != '')) { 57 var neededVersion = version.split('.'); 58 var jQver = jQuery.fn.jquery.split('.'); 59 for (var i = 0; i < jQver.length; i++) { 60 var actset = parseInt(jQver[i]); 61 if (neededVersion.length >= (i+1)) { 62 var actneeded = parseInt(neededVersion[i]); 63 if (actneeded > actset) { 64 validVersion = false; 65 break; 66 } else if (actneeded < actset) { 67 validVersion = true; 68 break; 69 } else { 70 continue; 71 } 72 } else { 73 if (actset >= 0) { 74 validVersion = true; 75 break; 76 } 77 } 78 } 79 } 80 } else { 81 validVersion = false; 82 } 83 return validVersion; 84 } 85 86
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.