1function setWaitLoader() { 2 var vgmpagosWaitMessage = document.getElementById("vgmpagosWaitMessage"); 3 if (vgmpagosWaitMessage) { 4 vgmpagosWaitMessage.style.display = "inline-block"; 5 } 6} 7function loadPaymentHandle() { 8 var bodyId = document.body.id; 9 if ((bodyId == "checkout")) { 10 console.log("bodyId: " + bodyId); 11 var buttons = document.getElementsByTagName("button"); 12 for (var i = 0; i < buttons.length; i++) { 13 if (buttons[i].type == "submit") { 14 window.addEventListener('beforeunload', function (e) { setWaitLoader(); }); 15 console.log("setWaitLoader listener set"); 16 break; 17 } 18 } 19 } 20} 21window.addEventListener("load", loadPaymentHandle, false);
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.