1 2 var breakingStart = true; // autostart breaking news 3 var breakingSpeed = 40; // breaking msg speed 4 5 var breakingScroll = [0,0,0,0,0,0,0,0,0,0]; 6 var breakingOffset = [0,0,0,0,0,0,0,0,0,0]; 7 var elementsToClone = [true,true,true,true,true,true,true,true,true,true]; 8 var elementsActive = []; 9 var theCount = [0,0,0,0,0,0,0,0,0,0]; 10 var _legatus_slider_timer; 11 12 // Legatus Slider Options 13 var _legatus_slider_autostart = true // Autostart Slider (false / true) 14 var _legatus_slider_interval = 5000; // Autoslide Interval (Def = 5000) 15 var _legatus_slider_loading = true; // Autoslide With Loading Bar (false / true) 16 17 18 19 //form validation 20 function validateName(fld) { 21 "use strict"; 22 var error = ""; 23 24 if (fld.value === '' || fld.value === 'Nickname' || fld.value === 'Enter Your Name..' || fld.value === 'Your Name..') { 25 error = "You didn't enter Your First Name."; 26 } else if ((fld.value.length < 2) || (fld.value.length > 200)) { 27 error = "First Name is the wrong length."; 28 } 29 return error; 30 } 31 32 function validateEmail(fld) { 33 "use strict"; 34 var error=""; 35 var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/; 36 37 if (fld.value === "") { 38 error = "You didn't enter an email address."; 39 } else if ( fld.value.match(illegalChars) === null) { 40 error = "The email address contains illegal characters."; 41 } 42 43 return error; 44 45 } 46 47 function valName(text) { 48 "use strict"; 49 var error = ""; 50 51 if (text === '' || text === 'Nickname' || text === 'Enter Your Name..' || text === 'Your Name..') { 52 error = "You didn't enter Your First Name."; 53 } else if ((text.length < 2) || (text.length > 50)) { 54 error = "First Name is the wrong length."; 55 } 56 return error; 57 } 58 59 function valEmail(text) { 60 "use strict"; 61 var error=""; 62 var illegalChars = /^[^@]+@[^@.]+\.[^@]*\w\w$/; 63 64 if (text === "") { 65 error = "You didn't enter an email address."; 66 } else if ( text.match(illegalChars) === null) { 67 error = "The email address contains illegal characters."; 68 } 69 70 return error; 71 72 } 73 74 function validateMessage(fld) { 75 "use strict"; 76 var error = ""; 77 78 if (fld.value === '') { 79 error = "You didn't enter Your message."; 80 } else if (fld.value.length < 3) { 81 error = "The message is to short."; 82 } 83 84 return error; 85 } 86 87 function validatecheckbox() { 88 "use strict"; 89 var error = "Please select at least one checkbox!"; 90 return error; 91 }
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.