1var artist = { 2 init: function() { 3 window.galleries.artist.enquire.init(); 4 }, 5 6 enquire: { 7 init: function() { 8 if ($('#artist_enquire_form.errorOccurred').length != 0) { 9 h.alert('Error: Some of the information entered was missing or incorrect.'); 10 } else if ($('#artist_enquire_form.captchaError').length != 0) { 11 h.alert('Error: The text entered did not match the image. Please try again.'); 12 } 13 }, 14 15 check_form: function() { 16 if ($('#f_name').val()=='') { 17 h.alert('Please enter your name.'); 18 return false 19 } else if (window.app.checkEmail.check('#f_email') == false) { 20 h.alert('Please enter a valid email address.'); 21 return false 22 } else if ($('#f_message').val()=='') { 23 h.alert('Please enter a message.'); 24 return false 25 } else if ($('#captcha_answer').val()=='') { 26 h.alert('Ooops! The text entered did not match the image. Please try again.'); 27 return false 28 } 29 30 return true; 31 32 }, 33 34 submit: function() { 35 36 if (window.galleries.artist.enquire.check_form()) { 37 document.artist_enquire_form.submit(); 38 } 39 40 } 41 } 42} 43 44window.galleries = window.galleries || {}; 45window.galleries.artist = artist 46export default artist
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.