1 2 var path = window.location.pathname; 3 var page = path.split("/").pop(); 4 5 6 7 $.ajax({ 8 type: "POST", 9 url: "/get-cortina", 10 success: function(result){ 11 try{ 12 13 var response = JSON.parse(result); 14 console.log(response); 15 if(response.respuesta == "1"){ 16 if(page == "cortina-mantencion"){ 17 $("#imgMobile").attr('src', response.imgMobile); 18 $("#imgDesktop").attr('src', response.imgDesktop); 19 setTimeout(function () { 20 window.location.reload(); 21 }, 100000); 22 }else{ 23 window.location.href = "/cortina-mantencion"; 24 } 25 }else if(response.respuesta == "2"){ 26 if(page == "sucursal-virtual"){ 27 $("#pagoOnline").html(''); 28 29 const ua = navigator.userAgent; 30 if (/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(ua)) { 31 $('#pagoOnline').append('<img width="100%" height="100%" alt="sitio en mantencion" src="'+response.imgMobile+'" />') 32 }else{ 33 $('#pagoOnline').append('<center><img src="'+response.imgDesktop+'" /></center>') 34 } 35 }else if(page == "PagoExpress"){ 36 $("#pago-online-collapse1").html(''); 37 38 const ua = navigator.userAgent; 39 if (/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(ua)) { 40 $('#pago-online-collapse1').append('<img width="100%" height="100%" alt="sitio en mantencion" src="'+response.imgMobile+'" />') 41 }else{ 42 $('#pago-online-collapse1').append('<center><img src="'+response.imgDesktop+'" /></center>') 43 } 44 setTimeout(function () { 45 window.location.reload(); 46 }, 100000); 47 }if(page == "pago-cuentas"){ 48 $("#pago-online-collapse").html(''); 49 50 const ua = navigator.userAgent; 51 if (/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(ua)) { 52 $('#pago-online-collapse').append('<img width="100%" height="100%" alt="sitio en mantencion" src="'+response.imgMobile+'" />') 53 }else{ 54 $('#pago-online-collapse').append('<center><img src="'+response.imgDesktop+'" /></center>') 55 } 56 setTimeout(function () { 57 window.location.reload(); 58 }, 100000); 59 } 60 }else if(response.respuesta == "0" && page == "cortina-mantencion"){ 61 window.location.href = "/"; 62 } 63 64 var element = document.getElementById('pago-online-collapse'); 65 if(typeof(element) != 'undefined' && element != null){ 66 element.style.visibility = "visible"; 67 } 68 69 }catch(e){ 70 console.log(e); 71 } 72 }}); 73 74
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.