1(function($) { 2 'use strict'; 3 4 document.addEventListener('wpcf7mailsent', function(event) { 5 let afterSubmission = ''; 6 let reloadDelay = 5; 7 let redirectPage = ''; 8 let formDetail = event.detail; 9 let formInputs = formDetail.inputs; 10 11 formInputs.reverse(); 12 formInputs.forEach(function(item, index) { 13 if (item.name == "wpadcf7sl_after_submission") { 14 afterSubmission = item.value; 15 } 16 if (item.name == "wpadcf7sl_reload_delay") { 17 reloadDelay = item.value; 18 } 19 if (item.name == "wpadcf7sl_redirect_page") { 20 redirectPage = item.value; 21 } 22 }); 23 24 if (afterSubmission == 'redirectpage') { 25 if (redirectPage != '') { 26 window.location.assign(redirectPage); 27 } 28 } 29 30 if (afterSubmission == 'reloadpage') { 31 setTimeout(function() { 32 location.reload(); 33 }, (reloadDelay * 1000)); 34 } 35 }, false); 36 37})(jQuery);
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.