1document.addEventListener('DOMContentLoaded', () => { 2 3 // Get all "navbar-burger" elements 4 const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); 5 6 // Check if there are any navbar burgers 7 if ($navbarBurgers.length > 0) { 8 9 // Add a click event on each of them 10 $navbarBurgers.forEach( el => { 11 el.addEventListener('click', () => { 12 13 // Get the target from the "data-target" attribute 14 const target = el.dataset.target; 15 const $target = document.getElementById(target); 16 17 // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" 18 el.classList.toggle('is-active'); 19 $target.classList.toggle('is-active'); 20 21 }); 22 }); 23 } 24 25}); 26 27 28const sendNotification = (message) => { 29 var myToast = Toastify({ 30 text: message, 31 duration: 5000 32 }); 33 myToast.showToast(); 34} 35 36 37const validate = () => { 38 //Validate the form 39 var inputs = document.getElementsByTagName('input'); 40 for(var i = 0; i< inputs.length; i++) { 41 if(!inputs[i].checkValidity()) { 42 inputs[i].reportValidity(); 43 return false 44 } 45 } 46 document.getElementById('label-reservieren').innerHTML = 'Ihre Reservierungsanfrage wird versendet...'; 47 return true 48}
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.