Sie sind auf Seite 1von 4

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.

0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_Head1"><meta charset="utf-8" /><link rel="alternate"
type="application/rss+xml" title="Tea Ediciones - todas las noticias"
href="/feeds.xml" /><link rel="shortcut icon"
href="//web.teaediciones.com/favicon.ico" /><link
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700"
rel="stylesheet" /><link rel="stylesheet" href="/css/Tienda.css?v=20170519"
type="text/css" /><link rel="stylesheet" href="/css/reset.css" type="text/css"
media="all" /><link rel="stylesheet" href="/css/grid.css" type="text/css"
media="all" /><link rel="stylesheet" href="/css/screen.css" type="text/css"
media="all" /><link href="/css/Myriad.css" rel="stylesheet" type="text/css" /><link
rel="stylesheet" href="/css/style.css?v=20170519" type="text/css" media="all"
/><link href="/css/Foundation/reveal.css" rel="stylesheet" type="text/css" />
<!-- styles for highlight.js -->
<link rel="stylesheet" href="/css/idea.css" type="text/css" media="all" />
<!-- styles for prettyPhoto -->
<link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css"
media="all" />
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/js/script.js"></script>

<script type="text/javascript" src="/js/highlight.js"></script>


<script type="text/javascript" src="/js/html-xml.js"></script>
<script type="text/javascript" src="/js/css.js"></script>
<script type="text/javascript" src="/js/javascript.js"></script>
<script src="/js/Foundation/jquery.reveal.js"
type="text/javascript"></script>
<script src="/js/jquery.colorbox-min.js" type="text/javascript"></script>
<link href="/css/colorbox.css" rel="stylesheet" type="text/css" /><link
href="js/Cookiebar/jquery.cookiebar.css" rel="stylesheet" type="text/css" />
<script src="../js/Cookiebar/jquery.cookiebar.js"
type="text/javascript"></script>
<script src="https://use.fontawesome.com/1bdfa78bc8.js"></script>

<script type="text/javascript" src="/js/app/carrito/carritoCompra.js?


v=20170519"></script>
<script type="text/javascript">
var objCarrito;

function showModalGris() {
$(".modal-gris").show();
$(".modal-cargando").show();
}

$(document).ready(function () {
$.cookieBar();
objCarrito = new CarritoCompra();

$(".close-yellow").click(function () {
$("#message-yellow").fadeOut("slow");
});
$(".close-red").click(function () {
$(this).closest("#message-red").closest("span").fadeOut("slow");
//$("#message-red").fadeOut("slow");
});
$(".close-blue").click(function () {
$("#message-blue").fadeOut("slow");
});
$(".close-green").click(function () {
$("#message-green").fadeOut("slow");
});

$("#btnBuscarGoogle").click(function () {
$(".modal-gris").show();
$("#divBusquedaGoogle").show(200);
});

$("#btnBuscarCerrar").click(function () {
$("#divBusquedaGoogle").hide(200);
$(".modal-gris").hide();
});

checkAviso();

function checkAviso() {
/*
$.getJSON('avisoCierre.json', function (obj) {
if (obj.advertencia) {
var verCartel = localStorage["verCartelCierre"];
if (typeof verCartel == 'undefined' || verCartel != new
Date().getDate().toString()) {
$(".modal-gris").show();
$(".popup-cierre").show(100);
}
else
console.log('ya cerrado');

$(".popup-cierre a").click(function () {
$(".popup-cierre").hide(100);
$(".modal-gris").hide();
localStorage.setItem("verCartelCierre", new Date().getDate());
})
}
});
*/
var info = null;
var showAviso = true;
if (localStorage['MantTiendaTEA'] != null) {
info = JSON.parse(localStorage['MantTiendaTEA']);
showAviso = info.noAvisarMas;
var fecha = new Date((info.fechaAviso || "").replace(/-/g,
"/").replace(/[TZ]/g, " "))
var diffTime = Math.abs(new Date().getTime() - new
Date(fecha).getTime());
var diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));

if (diffDays < 5)
showAviso = false;
};

$.get('https://www.teaediciones.net/portal/TEApi/api/General/MantenimientoPortal/7'
, function (objMant) {
switch (objMant.idEstado) {
case 1: // Cuando es un aviso.
if (showAviso) {
$('.slider-wrapper').hide();
$
('#txtAvisoMantenimiento').html(objMant.objInfo.txtInformacion);
$('.popup-aviso').show();

$('#chkAvisoMantenimiento').click(function () {
$('.popup-aviso').hide();
info = {
noAvisarMas: true,
fechaAviso: new Date()
};

localStorage['MantTiendaTEA'] =
JSON.stringify(info);
$('.slider-wrapper').show();
});

$('#btnCerrarAviso').click(function () {
$('.popup-aviso').hide();
$('.slider-wrapper').show();
});
}
break;
case 2: // Te redirige a la web informando del cierre por
mantenimiento.
location.href = objMant.objInfo.urlMantenimiento;
break;
case 3: // te redirige a la web que informa del cierre.
location.href = objMant.objInfo.urlCerrado;
break;
}
});
}

$(".nav-menu a").click(function () {
var id = $(this).attr('id');
var idSub = '';

if ($("#" + id + "+ul").length > 0) {


$("#" + id + "+ul").toggleClass('activo');

$(".nav-menu a").each(function () {
idSub = $(this).attr('id');
if (idSub != id)
$("#" + idSub + "+ul").removeClass('activo');
});
}
else {
$(".modal-gris").show();
$(".modal-cargando").show();
}
});

$(".nav-menu a+ul a").click(function () {


$(".modal-gris").show();
$(".modal-cargando").show();
});

$("#lnkCarritoCompra").click(function () {
$(".modal-carrito").toggleClass("activo");
objCarrito.PintarCarritoCompra();
});

objCarrito.ActualizaNumeroProductos();
});