tdxev Posted October 25, 2011 Report Posted October 25, 2011 In cazul in care mai oragnizeaz? vreun concurs de "treasure hunter" (Stai treaz, cauta comori si castiga un iPad 2! @ eMAG Blog)Deschide?i o consola JavaScript in pagina cu harta (reteaua.emag.ro/reteaua) copy/paste ap?sa?i RUN ?i a?tepta?i sa apar? comorile. Scriptul caut? si trimite codul secret automat.JavaScript:function attak(){ $.ajax({ type: "POST", url: "/show_treasure", success: function(msg){ points = jQuery.parseJSON(msg); $.each(points, function(index, value) { if(value.parola) { console.log("Send Password:" + value.parola ); saveCode(value.parola); } else { console.log("no password"); } }); } });}function checkTime(){ var currentTime = new Date(); var hours = currentTime.getHours(); var minutes = currentTime.getMinutes(); var seconds = currentTime.getSeconds(); console.log(minutes+ ":" + seconds); if ((minutes in {0:'',15:'',37:'',45:''}) && (seconds in {5:'',45:''})) { console.log("Ataca!"); attak(); } if ((minutes in {59:'',14:'',29:'',44:''}) && (seconds in {10:'',20:'',40:'',50:''})) { showMoreMarkers(map); }}window.setInterval( "checkTime()", 1000);PS. S-ar putea sa nu ave?i parte de primul premiu dar m?car men?iune ceva acolo tot lua?i. Quote
Birkoff Posted October 25, 2011 Report Posted October 25, 2011 ceva gen autoresponder la intrebarile de la joc nu stii? ca am vazut ca unii raspund in 0.02 si ma intreb cum naiba fac... Quote