1jQuery(function() { 2 3 jQuery('div.rhce_banner').on('click', function(event){ 4 $('a', this)[0].click(); 5 } 6 ); 7 8 jQuery('div.menublokje').on('click', function(event){ 9 $('a', this)[0].click(); 10 } 11 ); 12 13 //hamburger 14 jQuery('.hamburger').bind('click',function (e) { 15 if (jQuery(this).hasClass('cross')) { 16 jQuery(this).removeClass('cross'); 17 } else { 18 jQuery(this).addClass('cross'); 19 } 20 }); 21 22 jQuery('.navbar .hamburger').on('keydown', function (event) { 23 if(event.keyCode===13 ){ 24 if (jQuery(this).hasClass('cross')) { 25 jQuery(this).removeClass('cross'); 26 jQuery(this).attr('aria-expanded', 'false'); 27 jQuery('.navbar .navbar-collapse').removeClass('show'); 28 } else { 29 jQuery(this).addClass('cross'); 30 jQuery(this).attr('aria-expanded', 'true'); 31 jQuery('.navbar .navbar-collapse').addClass('show'); 32 } 33 } 34 }); 35 36 37 38 jQuery('#system-message .alert').attr('tabindex','0'); 39 jQuery('#system-message .alert').attr('aria-label','Druk op enter om de melding te verbergen'); 40 41 jQuery('#system-message .alert').on('keydown', function (event) { 42 if(event.keyCode===13){ 43 jQuery(this).hide(); 44 } 45 }); 46 47 jQuery('.form-check').on('keydown', function (event) { 48 if(event.keyCode===32){ 49 console.log('bla'); 50 jQuery(this).checked = !jQuery(this).checked; 51 } 52 }); 53 54 jQuery('.nav-child.deeper.parent.dropdown.menu.show').on('keydown', function (event) { 55 if(event.keyCode===13){ 56 console.log('bla'); 57 // jQuery(this).checked = !jQuery(this).checked; 58 } 59 }); 60 61 62 //header scroll 63 var settinyheader = function(){ 64 var scroll = jQuery(window).scrollTop(); 65 if (scroll >= 50) { 66 jQuery('header').addClass('tinyheader'); 67 } else { 68 jQuery('header').removeClass('tinyheader'); 69 } 70 }; 71 72 jQuery(window).scroll(settinyheader); 73 settinyheader(); 74 75 var validations ={ 76 email: [/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/, 'Gebruik bij e-mail het format [email protected]'] 77 }; 78 79 jQuery(document).ready(function () { 80 // Attach validateEmail function to both focusout and input events 81 $("#jform_contact_email").on('focusout input', function () { 82 // Set the regular expression to validate the email 83 var validation = new RegExp(validations['email'][0]); 84 var emailField = $("#jform_contact_email")[0]; 85 var errorMessage = $('#jform_contact_email-lbl .form-control-feedback'); 86 87 // If the error message element does not exist, create it 88 if (errorMessage.length === 0) { 89 $('#jform_contact_email-lbl').append( 90 '<span role="alert" class="form-control-feedback">Gebruik bij e-mail het format [email protected]</span>'); 91 errorMessage = $('#jform_contact_email-lbl .form-control-feedback'); 92 } 93 94 // Validate the email value against the regular expression 95 if (!validation.test(emailField.value)) { 96 // If the validation fails then show the custom error message 97 emailField.setCustomValidity(validations['email'][1]); 98 errorMessage.show(); 99 } else { 100 // If the validation is successful, reset the custom error message 101 emailField.setCustomValidity(''); 102 errorMessage.hide(); 103 } 104 }); 105 }); 106 107 jQuery("#jform_contact_name").focusout( function(){ 108 if (this.value==''){ 109 $('#jform_contact_name-lbl').append( 110 '<span role="alert" class="form-control-feedback">Uw naam is niet ingevuld</span>'); 111 return false; 112 } 113 }); 114 jQuery("#jform_contact_emailmsg").focusout( function(){ 115 if (this.value==''){ 116 $('#jform_contact_emailmsg-lbl').append( 117 '<span role="alert" class="form-control-feedback">Het onderwerp is niet ingevuld</span>'); 118 return false; 119 } 120 }); 121 jQuery("#jform_contact_message").focusout( function(){ 122 if (this.value==''){ 123 $('#jform_contact_message-lbl').append( 124 '<span role="alert" class="form-control-feedback">Er is nog geen bericht opgesteld</span>'); 125 return false; 126 } 127 }); 128 129});
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.