- 扫描 ID:
- 0d4328c3-d0db-452b-89c3-05c13f748faf已完成
- 提交的 URL:
- https://farmaciasbatres.com.gt/
- 报告完成时间:
链接 · 找到 3 个
从页面中识别出的传出链接
链接 | 文本 |
---|---|
https://www.facebook.com/FarmBatres/ | |
https://www.instagram.com/farmbatres/?hl=es-la | |
https://www.youtube.com/channel/UCkaR485qygKHdYhocmWH6vg?view_as=subscriber |
JavaScript 变量 · 找到 117 个
在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问
名称 | 类型 |
---|---|
0 | object |
1 | object |
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
gtag | function |
dataLayer | object |
fbq | function |
_fbq | function |
google_tag_manager | object |
控制台日志消息 · 找到 2 条
记录到 Web 控制台的消息
类型 | 类别 | 记录 |
---|---|---|
warning | other |
|
verbose | dom |
|
HTML
页面的原始 HTML 正文
<!-- P R O D U C C I O N --><html lang="es"><head><script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-2KZZ5SNP52&l=dataLayer&cx=c&gtm=457e4bk0za200zb896620989"></script><script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-91R0VYB9QY&l=dataLayer&cx=c&gtm=457e4bk0za200zb896620989"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=UA-140672693-1&l=dataLayer&cx=c&gtm=45je4bk0v896620989za200"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=UA-249065267-1&l=dataLayer&cx=c&gtm=45je4bk0v896620989za200"></script><script src="https://connect.facebook.net/signals/config/1490548701429268?v=2.9.176&r=stable&domain=farmaciasbatres.com.gt&hme=872f04a0547459b3285cb03b0d7a47bfde40628f4b386809918a621e2688602f&ex_m=70%2C121%2C107%2C111%2C61%2C4%2C100%2C69%2C16%2C97%2C89%2C51%2C54%2C172%2C175%2C187%2C183%2C184%2C186%2C29%2C101%2C53%2C77%2C185%2C167%2C170%2C180%2C181%2C188%2C131%2C41%2C189%2C190%2C34%2C143%2C15%2C50%2C195%2C194%2C133%2C18%2C40%2C1%2C43%2C65%2C66%2C67%2C71%2C93%2C17%2C14%2C96%2C92%2C91%2C108%2C52%2C110%2C39%2C109%2C30%2C94%2C26%2C168%2C171%2C140%2C86%2C56%2C84%2C33%2C73%2C0%2C95%2C32%2C28%2C82%2C83%2C88%2C47%2C46%2C87%2C37%2C11%2C12%2C13%2C6%2C7%2C25%2C22%2C23%2C57%2C62%2C64%2C75%2C102%2C27%2C76%2C9%2C8%2C80%2C48%2C21%2C104%2C103%2C105%2C98%2C10%2C20%2C3%2C38%2C74%2C19%2C5%2C90%2C81%2C44%2C35%2C85%2C2%2C36%2C63%2C42%2C106%2C45%2C79%2C68%2C112%2C60%2C59%2C31%2C99%2C58%2C55%2C49%2C78%2C72%2C24%2C113" async=""></script><script async="" src="https://connect.facebook.net/en_US/fbevents.js"></script><script>
if (window.location.protocol == 'http:')
window.location.href = 'https://farmaciasbatres.com.gt';
</script>
<!---Mau-->
<!-- Google Tag Manager -->
<!--
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-N6TT6DW');</script> -->
<!-- End Google Tag Manager -->
<!-- Mau 2023 -->
<!-- Google tag (gtag.js) --> <script async="" src="https://www.googletagmanager.com/gtag/js?id=G-PY6T9M08NE"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-PY6T9M08NE'); </script>
<!-- Meta Pixel Code Mau 2023 -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1490548701429268');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1490548701429268&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
<meta http-equiv="cache-control" content="max-age=0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
<meta http-equiv="pragma" content="no-cache">
<meta name="facebook-domain-verification" content="pt8vvfsoru9aqvrfxapp4k6m9029mu">
<meta name="description" content="Farmacias Batres - PBX 1763">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="css/min.css?2.1.5">
<link rel="stylesheet" type="text/css" href="css/jws.css?2">
<link href="css/jquery.autocomplete.css?2" rel="stylesheet" type="text/css">
<link href="css/share.css?2" rel="stylesheet" type="text/css">
<!--script src="js/jquerymin.js"></script-->
<script src="js/jquery-1.4.1.min.js"></script>
<script src="js/jquery.autocomplete.js" type="text/javascript"></script>
<script src="js/jwsClient0.4.js?2.0.1"></script>
<script src="js/dbStore.js?2"></script>
<link rel="shortcut icon" type="image/x-icon" href="img/favicon3.png">
<title>Farmacias Batres PBX-1763</title>
<style>
#sug{
display:none;
height:60px;
overflow:auto;
font-size:11px;
padding:2px
}
.sug{
display:inline-block;
margin:2px;
padding:5px;
border-radius:4px;
background-color: black;
color:white;
}
.itemSug{
display:inline-block;
vertical-align: top;
top:0px;
width:150px;
margin:3px;
border:1px solid silver;
border-radius: 4px;
font-size:0.8rem
}
.itemSug>img{
max-width:100%;
height:100px;
}
.itemSug>div{
padding:5px;
}
.menuItem{
font-size:13px;
}
.item > img {border:8px solid white;border-radius:8px}
#banCyber > img{
display:none;
border:1px solid silver;
cursor:pointer;
}
#lg{
padding:40px;
position:fixed;
top:100px;
right:0px;
border:1px solid gray;
background-color: white;
text-align:center;
display:none;
}
td{
vertical-align: top;
}
</style><script async="" src="https://static.hotjar.com/c/hotjar-1114178.js?sv=6"></script><style>.b11ce{
display:none;
position:fixed;
z-index:999;
top:0;
left:0;
right:0;
bottom:0;
padding:1em;
background:rgba(0, 0, 0, 0.8);
}
.d36f2{
display:block;
animation:db9df 200ms linear forwards;
}
.b11ce span{
display:block;
width:100%;
height:100%;
background-position:center;
background-repeat:no-repeat;
background-size:contain;
}
@keyframes db9df{
0%{
opacity:0;
}
100%{
opacity:1;
}
}
.dfa50{
background-color:transparent !important;
border:none !important;
position:fixed !important;
bottom:0px !important;
right:0px !important;
box-sizing:border-box !important;
min-width:auto;
max-height:100%;
}
.eac07{
bottom:0px !important;
left:0px !important;
}
.faa07{
bottom:0px !important;
right:0px !important;
}
.bda45.d0b39{
width:90px !important;
height:90px !important;
}
.bda45.e22f5{
width:72px !important;
height:72px !important;
}
.bda45.d3396{
width:108px !important;
height:108px !important;
}
.eca54{
width:90px !important;
height:0px !important;
visibility:hidden !important;
}
.c8d90.ce2e4{
width:320px !important;
height:480px !important;
}
.c8d90.deef1{
width:400px !important;
height:600px !important;
}
.c8d90.e57b4{
width:480px !important;
height:720px !important;
}
.c8d90.bd30a{
width:100% !important;
height:100% !important;
}
@media (max-width: 600px){
.c8d90.ce2e4,
.c8d90.deef1,
.c8d90.e57b4{
width:100% !important;
height:100% !important;
}
}
.c8caa{
width:270px !important;
height:180px !important;
}
.ce859{
width:370px !important;
height:290px !important;
}
@media (max-width: 400px){
.c8caa{
width:100% !important;
}
.ce859{
width:100% !important;
}
}
#dbee1{
position:fixed;
z-index:2147483647 !important;
}
</style><script async="" src="https://script.hotjar.com/modules.86621fa4aeada5bcf025.js" charset="utf-8"></script></head>
<body>
<!-- mau -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6TT6DW"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<a name="home"></a>
<div class="row" id="cabeza">
<div class="col c1" style="color:white">.</div>
<!--div class="col c3"><img id="logo" src="img/logo.png" style="margin-left:20px;margin-top:20px" onclick="window.location.href='.'"></div-->
<div class="col c3"><img id="logo" src="img/logo.png" style="margin-left:20px;margin-top:20px" onclick="home()"></div>
<div class="col c6">
<table id="menu" style="Xfloat:right" onclick="$(this).addClass('menu2')"><tbody><tr>
<td><img id="btMn" src="img/menu.png"></td>
<td><a class="menuItem" href="javascript:clOro()" onclick="$('#menu').removeClass('menu2');event.stopPropagation();"><img src="img/siHay.jpg"><br>Si Hay!</a> </td>
<td><a class="menuItem" href="#promociones" onclick="$('#menu').removeClass('menu2');event.stopPropagation();"><img src="img/promo.png?1"><br>Promociones</a> </td>
<td><a class="menuItem" href="javascript:programas()" onclick="$('#menu').removeClass('menu2');event.stopPropagation();"> <img src="img/programas.png?1"><br>Programas <br>de Salud</a></td>
<td><a class="menuItem" href="#nosotros" onclick="$('#menu').removeClass('menu2');event.stopPropagation();"><img src="img/nosotros.png?1"><br>Nosotros</a> </td>
<!-- <td><a class="menuItem" href="#" onclick="alivio();$('#menu').removeClass('menu2');event.stopPropagation();"><img src="img/icoMedico.png?1"><br>Telemedicina Batres<br><span style="font-size:10px">Powered by Aliv.io</span></a> </td> -->
<td><a class="menuItem" href="#" onclick="login();$('#menu').removeClass('menu2');event.stopPropagation();"><img src="img/login.png?1"><br>Acceder</a> </td>
<!--td><img src="img/noti.png"><br>Noticias</td-->
</tr></tbody></table>
</div>
<div id="carrito" onclick="carRefresh(1)" style="cursor:pointer"><img id="car" src="img/car2.png"></div>
<div class="col c2" style="color:gray"> </div>
</div>
<!--div style="text-align:center;padding:8px"-->
<div class="row">
<div class="col c2" style="color:white">.</div>
<div class="col c8" id="lbCompra">
<span style="color:red;font-weight: bold;font-size:17px">Compra en Línea aquí: </span><br>
<div id="sug"></div>
<input type="text" id="txtBuscar" placeholder="Que artículo buscar..." autocomplete="off" class="ac_input"><button class="btn btn-c btn-sm" onclick="buscar(txtBuscar.value,0)">Buscar</button>
</div>
<!--/div-->
<div class="col c2" style="color:white">.</div>
</div>
<!--div style="text-align:center">
<div id="banCyber"><img src="cyber/1.jpg" onclick="buscar('AFRIN PURE SEA SOLU',0)"><img src="cyber/2.jpg" onclick="buscar('affective',0)"><img src="cyber/3.jpg" onclick="buscar('ALKA-SELTZER FRUTABS*36',0)"><img src="cyber/4.jpg" onclick="buscar('ASTROTON FEM * 30 TABLETAS',0)"><img src="cyber/5.jpg" onclick="buscar('ASTROTON H4 * 60 CAPSULAS',0)"><img src="cyber/6.jpg" onclick="buscar('eferol',0)"><img src="cyber/7.jpg" onclick="buscar('PECTIN IMMUNE GUMMY PLUS*60',0)"><img src="cyber/8.jpg" onclick="buscar('MULTIVITAMINAS GUMMY BEARS*60',0)"><img src="cyber/9.jpg" onclick="buscar('LUTEVISTA * 30 GELCAPS',0)"><img src="cyber/10.jpg?1" onclick="cyberDays()"><img src="cyber/11.jpg" onclick="buscar('NUTRISON H3 PLUS * 30 CAPSULAS ATADO 1+1',0)"><img src="cyber/12.jpg" onclick="buscar('PAMPERS',0)"><img src="cyber/13.jpg" onclick="buscar('PASINERVA * 30 CAPSULAS ATADO 1+1',0)"><img src="cyber/14.jpg" onclick="buscar('OMEGA 3 GUMMY SHARKS*60',0)"><img src="cyber/15.jpg" onclick="buscar('VITAMINA C GUMMY BEAR*60',0)"></div>
<p>Ofertas de CyberDays válidas únicamente el 1 y 2 de Octubre del presente año mientras duren existencias.</p-->
<div id="cuerpo">
<a name="screen"></a>
<div class="row" id="pantalla"><div class="col c1"> </div><div class="col c10"><div style="width:100%;text-align:center"><img onclick="window.location.href='https://farmaciasbatres.com'" class="slide" src="/css/newEcommerce.jpg" style="width: 90%; display: block;"><img class="slide" src="https://sab.cbsa.com.gt/promo/slide/01.png?1732642783823" style="width: 90%; margin-left: 5% !important; display: none;"><img class="slide" src="https://sab.cbsa.com.gt/promo/slide/02.png?1732642783823" style="width:90%;margin-left:5%!important;display:none"><img onclick="buscarCods('32838,', '')" class="slide" src="https://sab.cbsa.com.gt/promo/slide/05.png?1732642783823" style="width:90%;margin-left:5%!important;display:none"><br><img src="img/punto.png" onclick="slideVer(0)" style="width:20px;cursor:pointer"><img src="img/punto.png" onclick="slideVer(1)" style="width:20px;cursor:pointer"><img src="img/punto.png" onclick="slideVer(2)" style="width:20px;cursor:pointer"></div></div><div class="col c1"> </div></div>
<div class="row" style="background-color:#f0f0f0">
<div class="panel" id="d_promo" style="text-align:center"><div class="col c4"><div class="item"><img src="https://sab.cbsa.com.gt/promo/promo/01.png?1732642783844"> <h3>DONOFLAT</h3><span></span><div></div><button class="btn btn-c btn-sm" onclick="buscarCods('33301,27048','')">Comprar en línea</button></div></div><div class="col c4"><div class="item"><img src="https://sab.cbsa.com.gt/promo/promo/02.png?1732642783844"> <h3>VITAL FUERTE</h3><span></span><div></div><button class="btn btn-c btn-sm" onclick="buscarCods('22314','')">Comprar en línea</button></div></div><div class="col c4"><div class="item"><img src="https://sab.cbsa.com.gt/promo/promo/03.png?1732642783844"> <h3>FREX CLEAN - T</h3><span></span><div></div><button class="btn btn-c btn-sm" onclick="undefined">Comprar en línea</button></div></div><div id="mpromo" class="col c12"><br><br><button class="btn btn-c btn-sm" onclick="verPromo('3')">MAS PROMOCIONES</button><br><br></div></div>
</div>
<div class="row">
<a name="nosotros"></a>
<div class="panel">
<h1>Nosotros</h1>
<p>En esta sección podrás conocer más sobre Farmacias Batres</p>
<div class="col c3">
<img src="img/RANITA.png" style="width:80%;cursor:pointer" onclick="cargar('histo.html')">
<br>Historia de la Ranita
</div>
<div class="col c3">
<img src="img/SOMOS.png" style="width:80%;cursor:pointer" onclick="cargar('somos.html')">
<br>Quienes Sómos
</div>
<div class="col c3">
<img src="img/MISION.png" style="width:80%;cursor:pointer" onclick="cargar('mision.html')">
<br>Misión
</div>
<div class="col c3">
<img src="img/VISION.png" style="width:80%;cursor:pointer" onclick="cargar('vision.html')">
<br>Visión
</div>
</div>
</div>
</div><!-- fin cuerpo -->
<div id="pie" class="row">
<div style="background-color:darkBlue;color:white; text-align:left; padding:20px">
</div>
<div class="col c6">
<div style="margin-left:20px">
<h4>CONTÁCTENOS</h4>
<img src="img/place.png"> 2da Calle 32-77 Zona 7, Ofi Bodegas San Mateo, Guatemala.<br><br>
<img src="img/mail.png"> [email protected]<br><br>
<img src="img/tel.png"> 1763<br><br>
</div>
</div>
<div class="col c6" style="text-align:center">
<br>Afiliados a:<br><br>
<img src="img/camara2.png?1.0" style="height:150px">
<img src="img/GRECOM.png?1.0" style="height:150px">
<br><br>
</div>
</div>
<div style="text-align:center">
Síguenos en:<br>
<a href="https://www.facebook.com/FarmBatres/"><img src="css/face.png" style="width:50px"></a>
<a href="https://www.instagram.com/farmbatres/?hl=es-la "><img src="css/instagram.png" style="width:50px"></a>
<a href="https://www.youtube.com/channel/UCkaR485qygKHdYhocmWH6vg?view_as=subscriber"><img src="css/youtube.png" style="width:50px"></a>
<br><br><br><br><br><br>
</div>
<div id="lg">
<div style="position:static">
<span onclick="$('#lg').css('display','none')" style="display:inline-blok;cursor:pointer;position:absolute;top:5px;left:5px">X</span>
<b>Acceso usuario registrado.</b><br><br>
<p>
<span>Teléfono o Correo Electrónico</span><br>
<img src="img/usuario.png" style="float:left;padding:5px;height:20px"> <input type="text" id="lgUser">
</p>
<p>
<span>Contraseña</span><br>
<img src="img/lock.png" style="float:left;padding:5px;height:20px"> <input type="password" id="lgPass">
</p>
<p style="text-align:center;">
<button class="btn btn-c btn-sm" onclick="goLogin()">Acceder.</button>
</p>
<hr>
<br>
<a style="cursor:pointer" onclick="frmNew();$(this.parentNode.parentNode).css('display','none')">Crear nueva cuenta.</a><br><br>
<!--a href="">Recuperar contraseña.</a-->
</div>
</div>
<div id="u"></div>
<script>$.get('home.html?1', function(data){
});
var ip = '104.28.154.59';
</script>
<script src="js/index.js?4.1.4"></script>
<!-- Lu 8may2020-->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-140672693-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-140672693-1');
</script>
<!-- Sugerencias -->
<!-- Hotjar Tracking Code for www.farmaciasbatres.com.gt -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:1114178,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- Chat solicitud Manuel
<script id='chat-24-widget-code' type="text/javascript">
!function (e) {
var t = {};
function n(c) { if (t[c]) return t[c].exports; var o = t[c] = {i: c, l: !1, exports: {}}; return e[c].call(o.exports, o, o.exports, n), o.l = !0, o.exports }
n.m = e, n.c = t, n.d = function (e, t, c) { n.o(e, t) || Object.defineProperty(e, t, {configurable: !1, enumerable: !0, get: c}) }, n.n = function (e) {
var t = e && e.__esModule ? function () { return e.default } : function () { return e };
return n.d(t, "a", t), t
}, n.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t) }, n.p = "/packs/", n(n.s = 0)
}([function (e, t) {
window.chat24WidgetCanRun = 1, window.chat24WidgetCanRun && function () {
window.chat24ID = "a442afe4e1623d6114dd6d3fcd970108", window.chat24io_lang = "es";
var e = "https://livechat.chat24.io", t = document.createElement("script");
t.type = "text/javascript", t.async = !0, fetch(e + "/packs/manifest.json?nocache=" + (new Date()).getTime()).then(function (e) {
return e.json()
}).then(function (n) {
t.src = e + n["widget.js"];
var c = document.getElementsByTagName("script")[0];
c ? c.parentNode.insertBefore(t, c) : document.documentElement.firstChild.appendChild(t);
var o = document.createElement("link");
o.href = e + n["widget.css"], o.rel = "stylesheet", o.id = "chat-24-io-stylesheet", o.type = "text/css", document.getElementById("chat-24-io-stylesheet") || document.getElementsByTagName("head")[0].appendChild(o)
})
}()
}]);
</script>
-->
<!-- compartido por Gerson 29062021 email sustituye Chat solicitud Manuel-->
<script id="webchat__widget" src="https://cdn.chatapi.net/webchat/widget/widget.js?cId=2b49ab92cd713cd495439fc22b4615f390f301b5cd597b64a2adc342ac886399"></script>
<style>
#u{
position:absolute;
font-size:12px;
top:125px;
right:15px;
}
#cyberSite{
padding:50px;
border:1px solid silver;
border-radius:60px 0px 60px 0px;
margin:30px;
background-color:#fafafa;
position:relative;
}
.n{
position:absolute!important;
top:50%;
width:40px;
cursor:pointer;
}
@media (max-width: 400px) {
#u{
top:80px
}
#cyberSite{
padding:5px;
border:1px solid silver;
border-radius:60px 0px 60px 0px;
margin:10px;
background-color:#fafafa;
}
.contFicha{
width:auto!important;
}
}
</style>
<script>
function getSustituto(codigo){
ws.call("getSustituto",{codigo:codigo}, function(data){
if (data.error != '') alert(data.error);
else{
if (data.cadena ==''){
alert("No pudimos encontrar sutitutos para este producto.");
}else{
ws.call("getProducto", {codigos:data.cadena}, function(wData){
if (wData.error!= '') alert(wData.error);
var html='<h3>Estos son los equivalentes que encontramos: </h3>';
if (wData.res.length == 0) html += 'Lo sentimos, los productos equivalentes para este artículo están agotados o descontinuados.';
for (var i=0; i<wData.res.length;i++){
html += mkItem(wData.res[i]);
}
$(".flotante>div").eq(0).html(html);
$(".flotante>h4").eq(0).html('');
$(".flotante").eq(0).css("top","0px");
});
}
}
});
}
/*
$(function(){
//pop();
$.get('home.html?0.1', function(data){
$("#pantalla").html(data);
});
});
*/
$(function(){
carRefresh();
$("#txtBuscar").autocomplete('https://sab.cbsa.com.gt/bCommerce/search.php');
var codigo = (document.location.href).split('?')[1] ;
if (codigo != '' && typeof codigo != 'undefined') {
codigo = codigo.substring(0,codigo.indexOf('&'));
if (codigo=="qOro"){
clOro();
}else if(codigo=="qSalud"){
programas();
}else{
if (codigo!="") {
if (isNaN(codigo)) buscar(codigo, 0);
else abrirCodigo(codigo);
}
// console.log("Abriendo... " + codigo);
}
}
var verHome=false;
if (typeof codigo == 'undefined') verHome = true;
else if (codigo == '') verHome=true;
//pop();
if (verHome) home();
verPromo('0');
});
function verPromo(ptoken){
ws.call("promo", {modulo:'promo',ptoken:ptoken}, function(data){
// console.log(data);
if(data.error == ''){
var html = '';
for (var i=0; i<data.res.length;i++){
var item = data.res[i];
if (item.criterio!= ''){
item['click'] = 'buscar(\''+ item.criterio +'\',0)';
}
if (item.codigos != ''){
item['click'] = 'buscarCods(\''+ item.codigos +'\',\'\')';
}
html +='<div class="col c4">'
+'<div class="item">'
+'<img src="https://sab.cbsa.com.gt/promo/promo/'+ item.imagen +'?'+ Date.now() +'"> '
+'<h3>'+ item.nombre +'</h3>'
+'<span></span>'
+'<div>'
+'</div>'
+'<button class="btn btn-c btn-sm" onclick="'+item['click'] +'">Comprar en línea</button>'
+'</div>'
+'</div>';
}
if (ptoken==0){
html += '<div id="mpromo" class="col c12"><br><br><button class="btn btn-c btn-sm" onclick="verPromo(\'3\')">MAS PROMOCIONES</button><br><br></div>';
$("#d_promo").html(html);
}else{
$("#mpromo").html(html);
}
}
});
}
function home(){
ws.call("promo", {modulo:'slide'}, function(data){
// console.log(data);
if(data.error=='') {
var html = '<div class="col c1"> </div>'
+'<div class="col c10">'
+'<div style="width:100%;text-align:center">'
+'<img onclick="window.location.href=\'https://farmaciasbatres.com\'" class="slide" src="/css/newEcommerce.jpg" style="width:90%;margin-left:5%!important'+oc+'">';
var oc='';
for (var i=0; i<data.res.length; i++){
var item = data.res[i];
var onclick='';
if (i>0) oc=';display:none';
if (item.criterio != '') {
onclick='onclick="buscar(\''+ item.criterio +'\', 0)"';
}
if (item.codigos != '') {
onclick='onclick="buscarCods(\''+ item.codigos +'\', \'\')"';
}
html +='<img '+ onclick+' class="slide" src="https://sab.cbsa.com.gt/promo/slide/'+ item.imagen +'?'+Date.now()+'" style="width:90%;margin-left:5%!important'+oc+'">';
}
html += '<br>';
for (var i=0; i<data.res.length;i++){
html += '<img src="img/punto.png" onclick="slideVer('+i+')" style="width:20px;cursor:pointer">';
}
html+='</div>'
+'</div>'
+'<div class="col c1"> </div>';
$("#pantalla").html(html);
clearTimeout(slideTimer);
myIndex=0;
carousel();
}
});
}
function pop(){
ws.call('getProducto', {codigos:"33888,S33888,33933,S33933,33905,33909,33938,S33938,33910,S33910,33904,S33904,33926,33925,33906,33897,33928,33894,33929,33944,33940"}, function(data){
if (data.error ==''){
var html = '<div class="row">';
for (var i=0; i<data.res.length;i++){
var item = data.res[i];
var img = item.Imagen;
html +='<div class="col c3 contFicha" >'
+'<div class="ficha" data-codigo="'+ item.Articulo_Id +'">'
+'<div onclick="previa(this)">'
+'<img class="fIm" src="https://sab.cbsa.com.gt/si.php?i='+ img +'" onerror="manejar(this)" onload="validar(this)">'
+'</div>'
+'<div class="fNom" onclick="previa(this)">'
+ item.Nombre
+'</div>'
+'</div>'
+'</div>';
}
html += '</div>';
$(".flotante>div").eq(0).html(html);
$(".flotante>h4").eq(0).html("Articulos de Temporada.");
$(".flotante").eq(0).css("top", "0px");
}
});
/*
var html='<div style="text-align:center"><img style="max-width:100%" src="img/pop.jpeg" onclick="buscar(\'MASCARILLA DESECHABLES NO ESTERILES KN-95 * 5 UNIDADES\',0);$(\'.flotante>button\').click()"></div>';
$(".flotante>div").eq(0).html(html);
$(".flotante>h4").eq(0).html("Articulo de Temporada.");
$(".flotante").eq(0).css("top", "0px");
*/
}
function login(){
if ( $("#lg").css("display") == 'none' ) {
$("#lg").css("display", "inline-block");
$("#lgUser").select();
}
else $("#lg").css("display", "none");
}
function alivio(){
if (ws.token == "web"){
window.open("https://farmaciasbatres.aliv.io");
}else{
ws.call("usuario", {accion:'getAlivioUrl'}, function(data){
// console.log(data);
if (data.error !='') alert(data.error);
else window.open(data.url);
});
}
}
function goLogin(){
var op={clave:lgPass.value}
if (lgUser.value.indexOf("@") > 1) op['correo'] = lgUser.value;
else op['telefono']= lgUser.value;
ws.call("login", op, function(data){
if ( data.error !='' ) alert(data.error);
else {
if (data.accion == 'new') {
alert('Hola '+ data.usuario +', al acceder a nuestro sitio aceptas los términos y condiciones de uso. <p><button onclick="window.open(\'terminos.html\')">ver términos y condiciones de uso.</button></p>');
}
$("#lg").css('display', 'none');
$("#lgPass").val('');
ws.token = data.token;
$("#u").html(data.usuario);
}
})
}
function frmNew(){
var html= '<div class="row">'
+'<div class="col c3"> </div>'
+'<div class="col c6">'
+ '<h3>Nueva Cuenta.</h3>'
+ '<p>Nombre:<br><input id="nwNombre" style="width:100%" type="text" placeholder="Nombre(s)"></p>'
+ '<p>Apellido:<br><input id="nwApellido" style="width:100%" type="text" placeholder="Apellido(s)"></p>'
+ '<p>Sexo:<br><select id="nwSexo" style="width:100%"><option value="1">Masculino</option><option value="0">Femenino</option></select></p>'
+ '<p>Fecha de Nacimiento:<br><input id="nwCumple" style="width:100%" type="date" placeholder="Fecha de Naciminto"></p>'
+ '<p>Número de Teléfono:<br><input id="nwTelefono" style="width:100%" type="text" placeholder="Número de Teléfono"></p>'
+ '<p>Correo Electrónico:<br><input id="nwCorreo" style="width:100%" type="text" placeholder="Correo Electrónico"></p>'
+ '<p>Contraseña:<br><input id="nwClave" style="width:100%" type="password" placeholder="Correo Electrónico"></p>'
+ '<p>Confirmar contraseña:<br><input id="nwClave2" style="width:100%" type="password" placeholder="Correo Electrónico"></p>'
+ '<p><button class="btn btn-sm btn-c" onclick="crearUsuario()">Crear Cuenta</button></p>'
+'</div>'
+'<div class="col c3"> </div>'
+'</div>';
$(".flotante>div").eq(0).html(html);
$(".flotante").eq(0).css("top", "0px");
}
function crearUsuario(){
if (nwClave.value != nwClave2.value){
alert("La clave proporcionada y la confirmación no coinciden, por favor revise los datos e intente de nuevo.");
return;
}
if( (nwClave.value).length < 9){
alert("Tu contraseña debe poseer al menos 9 letras.");
return;
}
ws.call("usuario", {
accion:"new",
nombre: nwNombre.value,
apellido:nwApellido.value,
correo:nwCorreo.value,
telefono:nwTelefono.value,
clave:nwClave.value,
cumple:nwCumple.value,
sexo:nwSexo.value,
confirmado:0,
estado:0
}, function(data){
if(data.error != '') alert(data.error);
else {
$(".flotante>button")[0].click();
alert("Tu usuario ha sido creado, recibirás un correo para confirmación y activación de tu cuenta, por favor revisa [ "+nwCorreo.value+" ] en unos minutos.");
$(".flotante").eq(0).find('input').each(function(){
this.value='';
});
}
}
);
}
</script>
<div class="flotante"><h4>Ventana</h4><button class="btn btn-c btn-sm smooth fclose" onclick="this.parentNode.style.top='-125vh'">X</button><div></div></div><div class="flotante"><h4>Ventana</h4><button class="btn btn-c btn-sm smooth fclose" onclick="this.parentNode.style.top='-125vh'">X</button><div></div></div><div class="flotante"><h4>Ventana</h4><button class="btn btn-c btn-sm smooth fclose" onclick="this.parentNode.style.top='-125vh'">X</button><div></div></div><div id="alerta"><h4>Notificación</h4><button class="btn btn-c btn-sm smooth fcloseA" onclick="this.parentNode.style.top='-125vh'">X</button><div></div></div><div id="preload" style="display: none;"></div><div id="dbee1"><div><iframe title="Webchat Widget" state="widgetClose" src="https://cdn.respond.io/webchat/widget/chat.html?" width="100%" height="100%" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" class="dfa50 bda45 d0b39 deef1" style="right: 25px !important; bottom: 25px !important; max-height: calc(100% - 25px) !important; max-width: unset !important;"></iframe><div class="b11ce"><span style="background-image: url("");"></span></div></div></div><iframe id="_hjSafeContext_80972957" title="_hjSafeContext" tabindex="-1" aria-hidden="true" src="about:blank" style="display: none !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important;"></iframe></body></html>