Block content ‘); jQuery(«.preview-premium»).append(»); jQuery(«.notas-body»).append(‘
Inicia sesión para seguir leyendo
Solo con tener una cuenta ya puedes leer este artículo.
RegístrateInicia sesión
‘); jQuery(«.registrate-aqui-btn-new»).on(«click»,function() { mostrarCrearCuenta(); }); jQuery(«.inicia-ses-btn-new»).on(«click»,function() { mostrarIniciarSesion(); }); } } function setUserData(id, name, name2){ if(document.cookie.split(«gtx8id»)[1]===undefined){ let tx58 = «Y9a2YWDBvAp3yTs5»; localStorage.setItem(«par», id); localStorage.setItem(«paregmailuser», btoa(name2)); document.cookie = «gtx8id=»+btoa(tx58)+»;path=/»; /* para mis noticias, contenido favorito */ $(«.contenido-favorito-title h2»).prepend(«Hola «+name+», «); $(«.contenido-favorito-title span»).prepend(name[0]); //getMisNoticias(id); /* para mis noticias, contenido favorito */ } return; } function mostrarLoader(){ //jQuery(‘.contenidomodal-2018’).append(‘
‘); } function mostrarCrearCuenta(){ let w =screen.width; desbloquearPantalla(); bloquearPantalla(); mostrarLoader(); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar’); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar-modal’); jQuery(‘.contenidomodal-2018’).addClass(‘modal-crear’); let isPremium; if(document.getElementsByClassName(«nota-premium»)[0] !== undefined){ isPremium = true; } else{ isPremium = false; } jQuery(‘.contenidomodal-2018’).append(»); } function mostrarCrearCuentaFb(){ let w =screen.width; desbloquearPantalla(); bloquearPantalla(); mostrarLoader(); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar’); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar-modal’); jQuery(‘.contenidomodal-2018’).addClass(‘modal-crear’); let isPremium; if(document.getElementsByClassName(«nota-premium»)[0] !== undefined){ isPremium = true; } else{ isPremium = false; } jQuery(‘.contenidomodal-2018’).append(»); } function mostrarIniciarSesion(){ let w =screen.width; desbloquearPantalla(); bloquearPantalla(); mostrarLoader(); let isPremium; if(document.getElementsByClassName(«nota-premium»)[0] !== undefined){ isPremium = true; } else{ isPremium = false; } jQuery(‘.contenidomodal-2018’).addClass(‘mostrar’); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar-modal’); jQuery(‘.contenidomodal-2018’).addClass(‘modal-login’); jQuery(‘.contenidomodal-2018’).append(»); } function cerrarModalContenidoFavorito(){ } function ocultarCrearCuenta(){ desbloquearPantalla(); jQuery(‘.contenidomodal-2018’).removeClass(‘mostrar’); jQuery(‘.contenidomodal-2018’).removeClass(‘mostrar-modal’); jQuery(‘.contenidomodal-2018’).removeClass(‘modal-login’); jQuery(‘.contenidomodal-2018’).removeClass(‘modal-crear’); jQuery(‘.contenidomodal-2018’).html(»); jQuery(‘.crear450’).removeClass(‘crear450’); } function mostrarPerfil(){ desbloquearPantalla(); bloquearPantalla(); jQuery(‘.contenidomodal-2018’).addClass(‘mostrar mostrar-modal modal-perfil’); jQuery(«.contenidomodal-2018»).html(‘
‘); } function bloquearPantalla(){ jQuery(‘.cajavacia-2018’).addClass(‘bloquearpantalla’); jQuery(‘html’).addClass(«nomover»); jQuery(«.articulo-premium .contenido-premium»).addClass(«ocultar»); } function desbloquearPantalla(){ jQuery(‘.cajavacia-2018’).removeClass(‘bloquearpantalla’); jQuery(‘html’).removeClass(«nomover»); jQuery(«.articulo-premium .contenido-premium»).removeClass(«ocultar»); jQuery(‘.contenidomodal-2018’).removeClass(‘mostrar’); jQuery(‘.contenidomodal-2018’).removeClass(‘mostrar-modal’); jQuery(‘.contenidomodal-2018’).removeClass(‘modal-login’); jQuery(‘.contenidomodal-2018’).removeClass(‘modal-crear’); jQuery(‘.contenidomodal-2018’).removeClass(‘modal-perfil’); jQuery(‘.mostrar-completar-datos’).remove(); jQuery(‘.contenidomodal-2018’).html(»); } function logeado(){ jQuery(«body»).addClass(«logeado-2018»); jQuery(«.reacciones-2018»).unbind(«click»); jQuery(«.reacciones-bloquear»).removeClass(«reacciones-bloquear»); jQuery(«.registro-new»).unbind(«click»); jQuery(«.registro-new img»).css(«opacity», «initial»); jQuery(«.registro-new img»).attr(«src», «/img/login/user_male_online_2_verde_4.png?psñsññsñsx»); jQuery(«.registro-new»).click(function(){ if(jQuery(«.menu-usuario-logeado»).hasClass(«mostrar-«)){ jQuery(«.menu-usuario-logeado»).removeClass(«mostrar-«); jQuery(this).removeClass(«mostrar-«); return; } jQuery(«.menu-usuario-logeado»).addClass(«mostrar-«); jQuery(this).addClass(«mostrar-«); }); jQuery(«li.registro»).css(«display»,»none»); } jQuery(document).ready(function() { if(jQuery(«body»).hasClass(«logeado-2018»)===false){ jQuery(«.registro-new»).click(function(){ mostrarIniciarSesion(); }) } if(jQuery(«body»).hasClass(«logeado-2018»)){ } jQuery(«.cajavacia»).click(function() { desbloquearPantalla(); }); jQuery(«.servicio-noticias-2018 a»).click(function(){ mostrarCrearCuenta(); }) jQuery(«.menu-usuario-logeado .miperfil»).click(function() { mostrarPerfil(); }); jQuery(«.menu-usuario-logeado»).click(function() { jQuery(«.registro-new»).removeClass(«mostrar-«); jQuery(this).removeClass(«mostrar-«); }); }); Source