-
-
Save Isxida/3825062 to your computer and use it in GitHub Desktop.
Pixel tracking attemptt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var XHR = new XMLHttpRequest(); | |
XHR.open("GET", "http://shop.bodytrim.com.au/TrackingPixelList.txt", true); | |
//do watheva con alltext o lines. | |
allText = XHR.responseText; | |
lines = XHR.responseText.split("\n"); | |
XHR.send(null); | |
XHR.onload = function (){ | |
console.log( XHR.responseText.slice(0, XHR.responseText.indexOf("\n")) ); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment