GG ITAU

https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js
https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js

GG ITAU

ᴄᴏᴅᴀᴅᴏ ᴘᴏʀ @ForgePy

Use E Abuse !
FORMATO : CC|MÊS|ANO|CVV

INICIAR
PARAR
VOLTAR

Aprovados
0

Reprovados
0

Testados
0

Carregados
0

AGUARDANDO INICIO

Aprovados – 0
Reprovados – 0


http://theme-assets/vendors/js/vendors.min.js


http://theme-assets/vendors/js/charts/chartist.min.js


http://theme-assets/js/core/app-menu-lite.js
http://theme-assets/js/core/app-lite.js


http://theme-assets/js/scripts/pages/dashboard-lite.js


$(document).ready(function(){
$(“#bode”).hide();
$(“#esconde”).show();
$(‘#mostra’).click(function(){$(“#bode”).slideToggle();});
});
$(document).ready(function(){
$(“#bode2”).hide();
$(“#esconde2”).show();
$(‘#mostra2’).click(function(){$(“#bode2”).slideToggle();});
});

// set audios vars.
var audioLive = new Audio(‘live.mp3’);

function enviar() {
var linha = $(“#lista”).val();
var linhaenviar = linha.split(“\n”);
var total = linhaenviar.length;
var ap = 0;
var rp = 0;
$(‘#testar’).attr(‘disabled’, ‘disabled’);
$(‘#parar’).attr(‘disabled’, null);
linhaenviar.forEach(function(value, index) {
setTimeout(
function() {
var ajaxCall = $.ajax({
url: ‘api.php?lista=’ + value,
type: ‘GET’,
async: true,
success: function(resultado) {
if (resultado.match(“LIVE”)) {
removelinha();
ap++;
aprovadas(resultado + “”);
audioLive.play();
$(‘#status_ccs’).html(‘LIVE’);
}else {
removelinha();
rp++;
reprovadas(resultado + “”);
$(‘#status_ccs’).html(‘DIE’);
}
$(‘#carregadas’).html(total);
var fila = parseInt(ap) + parseInt(rp);
$(‘#cLive’).html(ap);
$(‘#cDie’).html(rp);
$(‘#total’).html(fila);
$(‘#cLive2’).html(ap);
$(‘#cDie2’).html(rp);

if (fila == total) {
$(‘#testar’).attr(‘disabled’, null);
$(‘#parar’).attr(‘disabled’, ‘disabled’);
$(‘#lista’).attr(‘disabled’, null);
// audio.play();
document.getElementById(“status_ccs”).innerHTML = “FINALIZADO”;
setTimeout(function() {
document.getElementById(“status_ccs”).innerHTML = “AGUARDANDO INICIO…”;
}, 2000);
}
}
});
$(‘#parar’).click(function () {
ajaxCall.abort();
$(‘#testar’).attr(‘disabled’, null);
$(‘#parar’).attr(‘disabled’, ‘disabled’);
$(‘#lista’).attr(‘disabled’, null);
var st = ‘PAUSADO’;
$(‘#status_ccs’).html(st);
});
}, 20 * index);

});
}
function aprovadas(str) {
$(“.aprovadas”).prepend(str + “
“);
}
function reprovadas(str) {
$(“.reprovadas”).prepend(str + “
“);
}
function removelinha() {
var lines = $(“#lista”).val().split(‘\n’);
lines.splice(0, 1);
$(“#lista”).val(lines.join(“\n”));
}

SE IDRATE 🙂

Copyright ForgePy 2021

Crie um site como este com o WordPress.com
Comece agora