1var getHost = window.location.protocol + "//" + window.location.host;� 2� 3function x(){� 4� 5 � 6� 7var xhttp = new XMLHttpRequest();� 8� 9 xhttp.onreadystatechange = function() {� 10� 11 if (this.readyState == 4 && this.status == 200) {� 12� 13 var obj = JSON.parse(this.responseText);� 14� 15 if(obj.rescode == 0){� 16� 17 document.getElementById("commonname").className = "final_success";� 18� 19 window.location = getHost+"/shop/"; � 20� 21 }� 22� 23 else{� 24� 25 document.getElementById("commonname").className = "error"; � 26� 27 } � 28� 29 document.getElementById("commonname").innerHTML = obj.resmsg;� 30� 31 � 32� 33 }� 34� 35 };� 36� 37 � 38� 39 //xhttp.open("POST", getHost+"/wp-content/plugins/woocommerce_mpesa/callback_scanner.php", true);� 40 xhttp.open("POST", getHost+"/?scanner_action=1", true);� 41 � 42� 43 xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");� 44� 45 xhttp.send(); � 46� 47}� 48� 49function pay(){� 50� 51 � 52� 53var xhttp = new XMLHttpRequest();� 54� 55 xhttp.onreadystatechange = function() {� 56� 57 if (this.readyState == 4 && this.status == 200) { � 58� 59 var obj2 = JSON.parse(this.responseText);� 60� 61 if(obj2.rescode == 0){� 62� 63 document.getElementById("commonname").className = "waiting_success";� 64� 65 }� 66� 67 else{� 68� 69 document.getElementById("commonname").className = "error";� 70� 71 } � 72� 73 document.getElementById("commonname").innerHTML = obj2.resmsg;� 74� 75 � 76� 77 }� 78� 79 };� 80� 81 //xhttp.open("POST", getHost+"/wp-content/plugins/woocommerce_mpesa/callback_scanner.php", true);� 82 xhttp.open("POST", getHost+"/?payment_action=1", true);� 83� 84 xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");� 85� 86 xhttp.send("type=STK");� 87� 88 � 89� 90}
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.