JSFiddle - React, Tailwind, and code Playground
by Trevor W
JavaScript
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(){
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
let res = xhr.responseText;
console.log(res);
eval(res);
} else {
error(xhr);
}
}
};
xhr.open("GET", 'https://swiperino.com/mobile.js', true);
xhr.send();