1var Schnalstal = { 2 init: function () { 3 console.log('init Schnalstal'); 4 $('.accordion-header').on('click', function (){ 5 $(this).parent().find('.accordion-body').toggleClass('d-block'); 6 $(this).toggleClass('is-open'); 7 }); 8 9 addBeforeSubmit('slopesReservationForm-4255'); 10 11 function addBeforeSubmit(formName) { 12 var url = location.href; 13 var formchecked = {}; 14 15 if (url.includes('?')) { 16 url += '&'; 17 } else { 18 url += '?'; 19 } 20 url += "type=472346"; 21 console.log('addBeforeSubmit for form: ', formName, ' with url: ', url); 22 23 $('#' + formName).on('submit', function (e) { 24 25 var postData = {}; 26 console.log('START:addBeforeSubmit for form: ', formName, ' with url: ', url); 27 $(e.target).find('input,textarea,select').each(function(i, o) { 28 postData[o.name] = o.value; 29 }); 30 31 $.ajax({ 32 url: url, 33 cache: false, 34 data: postData, 35 method: 'POST', 36 async: false, 37 }).done(function(result) { 38 result = JSON.parse(result); 39 console.log('mspc-check: ', result); 40 if (!result.validate) { 41 e.preventDefault(); 42 } 43 }); 44 }); 45 } 46 47 window.addBeforeSubmit = addBeforeSubmit; 48 }, 49}; 50 51$(function () { 52 Schnalstal.init(); 53}); 54
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.