Descargar El cartógrafo de Lisboa - Erik Orsenna (EPUB, PDF y MOBI)
Libro: El cartógrafo de Lisboa
Autor: Erik Orsenna
Editorial: Tusquets Editores S.A.
Género: Novela literaria
ISBN: 9788483833612
Páginas: 36
Valoración:
Libro: El cartógrafo de Lisboa
Autor: Erik Orsenna
Editorial: Tusquets Editores S.A.
Género: Novela literaria
ISBN: 9788483833612
Páginas: 36
Valoración:
ss=»sinopsi-intro»>Sinopsis de El cartógrafo de Lisboa:
El 13 de agosto de 1476, Cristóbal Colón naufraga en aguas de Portugal. El futuro almirante acaba de cumplir veinticinco años. Milagrosamente, alcanza la costa sano y salvo, y se refugia en Lisboa, en casa de su hermano menor, Bartolomé, que ejerce el oficio de cartógrafo. Durante años, los dos hermanos trabajan juntos para preparar el viaje con el que Cristóbal sueña desde la adolescencia: llegar a Cipango (Japón) y al imperio del Gran Kan. Pero en lugar de seguir la ruta habitual, la de la seda, hacia el este, pretenden surcar el océano Atlántico rumbo al oeste. Y al hilo de este relato que narra, desde un punto de vista inédito, cómo fue posible la fabulosa aventura del descubrimiento de América, desfilan, entre muchos otros, un maestro cartógrafo, un rinoceronte, un fabricante de viudas, una prostituta, el siempre fascinante Marco Polo, fray Bartolomé de Las Casas y unos temibles perros devoradores de indios.
$(document).ready(function(){
//############################################################################ //INI BOTÓN DE REGISTRO DE FACEBOOK //############################################################################ $(".botonRegistraInfoFacebook").click(function(){ var es_header = $(this).parents(".header").length; // per saber on tornar :D guarda_ultima_url(); //obtenemos la URL del link de facebook elHref = $(this).parent().attr("href"); $.post("//www.planetadelibros.com/includes/ajax_functions.php", { accio: "activa_registro_facebook", url: elHref, urlOrigen: "https://www.planetadelibros.com/", es_header: es_header },function(data) { if( elHref != "" ) window.location.href = elHref; //nos dirigimos a esa URL }); return false; }); //############################################################################ //FIN BOTÓN DE REGISTRO DE FACEBOOK //############################################################################
$('#btn_instant_registrer_164').click(function() { $.ajax({ type: 'GET', url: '//www.planetadelibros.com/includes/ajax_registres.php?id=164&tipo=BOTO_INSTANT', success: function(msg){ if(msg == 'ok') { $('.express-title').html('Gracias por registrarte.'); } else { $('#rotador-313-164').append("");
$('#popupinstant').fancybox({ maxWidth : 620, fitToView : false, width : '95%', height : 'auto', autoSize : false, closeClick : false, helpers: { overlay: { locked: false } } }).trigger('click'); } } }); });
//##### INI - INICIALIZACION DEL ROTADOR [.slider-segells] ##### $(".slider-segells").owlCarousel({ items:6, lazyLoad:true, margin:15, slideBy: 6, responsive: {"0":{"items":2,"slideBy":2},"500":{"items":3,"slideBy":3},"850":{"items":5,"slideBy":5},"980":{"items":6,"slideBy":6}} }); //##### FIN - INICIALIZACION DEL ROTADOR [.slider-segells] #####
//----------------------------------------------------------------------------- // AJAX LOGIN //----------------------------------------------------------------------------- $('#FormLogin').on('submit', function(e) { e.preventDefault(); $.ajax({ type: 'POST', url: '//www.planetadelibros.com/includes/ajax_user_login.php', data: $('#FormLogin').serialize(), success: function (data) { if( data == '') { //tot ok refresquem // login ok (PAG. 16) if ( TAGGING_ACTIU ) { dataLayer.setEvent('login','click','mail',1,0); _satellite.track('setEvent'); } window.location.reload(); } else { //error $('#login-missatge-error').html( data ); $('#login-email').addClass( 'field-error' ); $('#login-password').addClass( 'field-error' ); } } }); }); //----------------------------------------------------------------------------- // /end AJAX LOGIN //-----------------------------------------------------------------------------
$(document).ready(function() { recalcularCapsaSinopsi("#capsa-sinopsi"); });
$(document).on("click", "#capsa-sinopsi .veure-mes", function(){ //Click Leer mas Sinopsi (PAG. 31) if ( TAGGING_ACTIU ) { dataLayer.setEvent("book:sinopsis-read-more","click","El cartógrafo de Lisboa",1,0); _satellite.track("setEvent"); }
$("#capsa-sinopsi").removeClass("te-mes"); $(this).hide(); });
if ( TAGGING_ACTIU ) { $(document).on("click", "a.autor-veure-mes", function(){ //Click Leer mas Autor (PAG. 32) dataLayer.setEvent("book:follow-autor-read-more","click",$(this).data("tagging"),1,0); _satellite.track("setEvent"); }); } //##### INI - INICIALIZACION DEL ROTADOR [.carousel-libros-autores] ##### $(".carousel-libros-autores").owlCarousel({ items:5, lazyLoad:true, margin:15, slideBy: 5, responsive: {"0":{"items":2,"loop":false,"nav":false,"stagePadding":50},"500":{"items":3,"slideBy":3},"850":{"items":4,"slideBy":4},"980":{"items":5,"slideBy":5}} }); //##### FIN - INICIALIZACION DEL ROTADOR [.carousel-libros-autores] #####
if ( TAGGING_ACTIU ) { //Click fletxa slide (PAG. 33 i PAG. 35) $(document).on('click', '.carousel-libros-autores .owl-item .portada a', function(){ dataLayer.setEvent('book:other-books-author','click','Erik Orsenna:'+ $(this).data("tagging"),1,0); _satellite.track('setEvent'); }); } //##### INI - INICIALIZACION DEL ROTADOR [.carousel-libros-tematica] ##### $(".carousel-libros-tematica").owlCarousel({ items:5, lazyLoad:true, margin:15, slideBy: 5, responsive: {"0":{"items":2,"loop":false,"nav":false,"stagePadding":50},"500":{"items":3,"slideBy":3},"850":{"items":4,"slideBy":4},"980":{"items":5,"slideBy":5}} }); //##### FIN - INICIALIZACION DEL ROTADOR [.carousel-libros-tematica] #####
if ( TAGGING_ACTIU ) { //Click fletxa slide (PAG. 33 i PAG. 35) $(document).on('click', '.carousel-libros-tematica .owl-item .portada a', function(){ dataLayer.setEvent('book:other-books-theme','click','Novela literaria:'+ $(this).data("tagging"),1,0); _satellite.track('setEvent'); }); } if ( TAGGING_ACTIU ) { //Click banner ohlibro (PAG. 87) $( document ).on('click', 'a.banner-ohlibro', function() { dataLayer.setEvent('conexion_ohlibro','click',$(this).data('tagging'),1,0); _satellite.track('setEvent'); }); } if ( TAGGING_ACTIU ) { //Click pestanyes opinions (PAG. 41) $( document ).on('click', '#tabs-opinions li > a', function() { var valueCercar = 'libro-el-cartografo-de-lisboa/virtual/'+$(this).data('tagging'); dataLayer.setVirtualPage(valueCercar); _satellite.track('setVirtualPage'); }); } dataLayer.setProduct('9788483833612', 'El cartógrafo de Lisboa', 'Novela literaria', 'Tusquets Editores S.A.', 'Libros', $('.compralo .preu').data('tagging'), '', $('input[name=soporte_select_tablet]:checked').data('tagging'), 'P'); _satellite.track('setProduct'); $('.LoginOpinio').fancybox({ maxWidth : 460, maxHeight : 450, fitToView : false, width : '100%', height : '70%', autoSize : false, closeClick : false, helpers: { overlay: { locked: false } } }) $('#comentario').maxlength({ maxCharacters:250, statusText:'carácteres restantes.' }); // Check if URL is asking for a "soporte" $(window).on("hashchange", function() { checkHashSoporte(); });
checkHashSoporte();
$('.botons-laterals .filtrar a').on('click',function(){ $('#book-filters').trigger('click'); });
$('.notepierdas').fancybox({ maxWidth : 1400, maxHeight : 330, fitToView : false, width : '100%', height : '70%', autoSize : false, closeClick : false, helpers: { overlay: { locked: false } } }) //SetPromo i clickPromo (PAG. 73 i PAG. 74) if ( TAGGING_ACTIU ) {
dataLayer.setPromo('SE - Netflix','SE - Netflix','7878_1_NETFLIX_GRUPO-PLANETA_WEB_NEWSLETTER_1140x272.gif','footer', '1', 'generic'); _satellite.track('setPromo');
var FuncioClickBanner347 = function( e ) { dataLayer.setPromoClick($(this).attr("title")); _satellite.track("setPromoClick"); } $(".rotador-347 .banner-tematic .owl-item a").click(FuncioClickBanner347); $(".rotador-347 .banner-tematic > div > a").click(FuncioClickBanner347); } $('.vinculo-popup').fancybox({ maxWidth : 610, maxHeight : 500, fitToView : false, width : '70%', height : '70%', autoSize : false, closeClick : false, margin: 0, minWidth: 280 });
// Click botó sortir (PAG. 10) $('.user-login-nav .btn-logout').click(function() { dataLayer.setUser('', ''); _satellite.track('setUser'); });
// Click banner capçalera (PAG. 11) $('.banner-top .banner a').click(function() { dataLayer.setEvent('header:banner','click',$(this).find('img').attr('title'),1,0); _satellite.track('setEvent'); });
// Click logo capçalera (PAG. 12) $('.site-brand a').click(function() { dataLayer.setEvent('header:logo','click','PlanetadeLibros',1,0); _satellite.track('setEvent'); });
//Click menú principal (PAG. 13) var FuncioMenuPrincipal = function( e ) { var tag_value = $(this).data("tagging"); if ( tag_value != undefined && tag_value != "" ) { dataLayer.setEvent('menu','click',tag_value,1,0); _satellite.track('setEvent'); } } $('.altres-apartats > ul > li:not(.mes-opcions, .menu-mobil) > a').click(FuncioMenuPrincipal); $('.altres-apartats-submenu > ul > li > a').click(FuncioMenuPrincipal); $('.menu-mobile > .envolcall > .seccio a').click(FuncioMenuPrincipal);
//Click llibre destacat menu tematic (PAG. 14) $('.menu-tematic > .llibres-destacats > .llibre a').click(function() { dataLayer.setEvent('menu:submenu','click',$(this).data("tematica")+':'+$(this).data("title"),1,0); _satellite.track('setEvent'); });
//Login/registre facebook o twitter (PAG. 15) var LoginXarxesSocials = function() { dataLayer.setEvent('login','click',$(this).data("tagging"),1,0); _satellite.track('setEvent'); } $('.boto-acces-facebook').click(LoginXarxesSocials); $('.boto-acces-twitter').click(LoginXarxesSocials); $('#LoginButton').click(LoginXarxesSocials);
//Recomendador (PAG. 17) var ClickRecomendador = function() { dataLayer.setEvent('header:recommender','click','',1,0); _satellite.track('setEvent'); } $('.recomendador').click(ClickRecomendador); $('#mostra-recomendador').click(ClickRecomendador);
//Buscador - click resultado fino (PAG. 21) $('#resultat-llibres > .llibres-graella > li > .portada > a').click(function() { dataLayer.setEvent('search','result-click',$('.paraula_cercada').text()+':'+$(this).data("tagging")+':'+$(this).parents('li').find('.titol a').text(),1,0); _satellite.track('setEvent'); });
//Click boto fons tematic (PAG. 22) $('.tagging-llibre > a').click(function() { dataLayer.setEvent('book:theme-background','click',$(this).data("tagging"),1,0); _satellite.track('setEvent'); });
//Click compartir xxss (PAG. 23) $('#compartir-xxss > a').click(function() { dataLayer.setSocial('social:'+$(this).data("xxss"),'share',$(this).data("posicio") +':'+ $(this).data("tagging")); _satellite.track('setSocial'); });
$(document).on('click','#LlegirPrimerCapitol',function() { //Click boto leer primer capitulo (PAG. 24) dataLayer.setEvent('book:read-first-chapter','click',$(this).data("tagging"),1,0); _satellite.track('setEvent');
if(CONFIG_SITE == "es" || CONFIG_SITE == "ca") { //Pixel facebook click boto leer primer capitulo (PAG. 83) dataLayer.setPixel('facebook','capitulo'); _satellite.track('setPixel'); } });
//Click boto contingut exclusiu (PAG. 25) $(document).on('click','#LoginContingutExclusiu',function() { dataLayer.setEvent('book:exclusive-content','click',$(this).data("tagging"),1,0); _satellite.track('setEvent'); });
//Click seguir autor (PAG. 28) $('.fitxa-autor .foto .mencanta.fer-like, .fitxa-llibre .sobre-autor .autor-imatge .mencanta.fer-like').click(function() { if ( $(this).data("tagging") != undefined ) { dataLayer.setEvent('book:follow-autor','click',$(this).data("tagging"),1,0); _satellite.track('setEvent'); } });
//Click desplegar sala de prensa (PAG. 42) $('.prensa > .titol_bloc').click(function() { dataLayer.setVirtualPage('libros/' + $(this).data("title") + '/virtual/press-room'); _satellite.track('setVirtualPage'); });
//Click descarregar contingut sala de prensa (PAG. 43) $('.prensa > .contingut-extra .btn-download').click(function() { dataLayer.setEvent('book:press-room','download',$(this).attr("title"),1,0); _satellite.track('setEvent'); });
//Click boto lateral No te pierdas (PAG. 61) $('.botons-laterals .no-te-pierdas > a').click(function() { var uri = ""; if ( URI_PAGINA != undefined ) uri = URI_PAGINA; dataLayer.setEvent("do-not-miss","click",uri,1,0); _satellite.track('setEvent'); });
//Click boto comprar (PAG. 44, PAG. 77 i PAG. 84) $(document).on('click','.soportes .boto_comprar .compralo',function() { dataLayer.setEvent('book:buy-book','buy-detail',$(this).data("suport")+':'+$(this).data("titol"),1,0); _satellite.track('setEvent');
dataLayer.setProduct ($(this).data("ean13"),$(this).data("titol"),$(this).data("tematica"),$(this).data("segell"),$(this).data("presentacion"),$(this).data("preu"),'',$(this).data("suport"),'P'); _satellite.track('setProduct');
setTimeout(function(){ _satellite.track('addProduct'); }, 500);
if(CONFIG_SITE == "es") { dataLayer.setPixel('facebook', 'purchase_pdl'); _satellite.track('setPixel'); }
if(CONFIG_SITE == "ca") { dataLayer.setPixel('facebook', 'purchase_grup62'); _satellite.track('setPixel'); } });
// Click Registrar formregistro (PAG. 69) $('.registre-form .btn-submit').click(function() { dataLayer.setEvent('register:try','large','email',1,0); _satellite.track('setEvent'); }); $('.registre-xxss .boto-acces-facebook').click(function() { dataLayer.setEvent('register:try','large','facebook',1,0); _satellite.track('setEvent'); }); $('.registre-xxss .boto-acces-twitter').click(function() { dataLayer.setEvent('register:try','large','twitter',1,0); _satellite.track('setEvent'); });
//Click boto lateral No te pierdas (PAG. 81) $('.botons-laterals .tornar-a-dalt > a').click(function() { var uri = ""; if ( URI_PAGINA != undefined ) uri = URI_PAGINA; dataLayer.setEvent("scroll_top","click",uri,1,0); _satellite.track('setEvent'); }); $('.botons-laterals .filtrar > a').click(function() { var uri = ""; if ( URI_PAGINA != undefined ) uri = URI_PAGINA; dataLayer.setEvent("filter","click",uri,1,0); _satellite.track('setEvent'); });
// Click link footer ohlibro (PAG. XX) $('.footer-box .tipus .oh-libros').click(function() { dataLayer.setEvent('www.ohlibro.com','Exit Links:oh',URI_PAGINA ,1,0); _satellite.track('setEvent'); });
//Brandday icona flotant (PAG. 88) $('.brand-day-icon img').click(function() { if ( URI_PAGINA != undefined ) uri = URI_PAGINA; dataLayer.setEvent('brandday','banner',uri,1,0); _satellite.track('setEvent'); });
//Brandday click banner (PAG. 89) $('#brandday .modalbox a').click(function() { if ( URI_PAGINA != undefined ) uri = URI_PAGINA; dataLayer.setEvent('brandday','click',uri,1,0); _satellite.track('setEvent'); });
/* //Llistat llibres i click (pag. 78-79) var itemsTagManager = 1; var itemsProdRotador = 0; var ulActual = null; var titol_product_list = ''; var titol_product_list_ant = ''; var llibres_visibles_pag = []; if(TITULO_PAGINA == '') TITULO_PAGINA = 'home';
$('.tagmanager').each( function( ) { //limitem enviar 30 elements var mostrar = false; var ulDaquestElement = $(this).parents(".rotador").attr('id');
if($(this).parents(".owl-item").length) { //es carrusel if($(this).parents(".active").length) mostrar = true; } else { //es grid if($(this).is(":visible")) mostrar = true; }
if(mostrar == true) { if ( ulDaquestElement != ulActual) { ulActual = ulDaquestElement; if($('#'+ulActual).find('h2.titol').length) titol_product_list = $('#'+ulActual).find('h2.titol').text(); else if($('#'+ulActual).find('h4.tematica').length) titol_product_list = $('#'+ulActual).find('h4.tematica').text();
itemsTagManager = 1; itemsProdRotador = 0; }
llibres_visibles_pag.push($(this).data("isbn") + '||' + itemsTagManager + '||' + titol_product_list);
$(this).data('cardinal', itemsTagManager);
$(this).click(function( ) { dataLayer.setProductClick($(this).data('cardinal')); _satellite.track('setProductClick'); }); itemsProdRotador++; } else { if($(this).parents(".owl-item").length) { //es carrusel llibres_amagats_carrusel = $(this).parents(".rotador").data('amagats'); if ( llibres_amagats_carrusel == undefined ) llibres_amagats_carrusel = [];
if($(this).parents(".owl-item:not(.cloned)").length) { if(llibres_amagats_carrusel.length === 0) { // array buit creem el click if($(this).parents(".owl-item:not(.cloned)").length) { $(this).parents(".rotador").find(".owl-controls > .owl-nav > div").click(function(){ var _this = this; setTimeout(function(){ var llibres_carrusel = $(_this).parents('.owl-carousel').find('.active'); var num_llibres_enviat = $(_this).parents(".rotador").data('num_llibres_enviats');
for (var i = 0; i < llibres_carrusel.length; i++) { num_llibres_enviat++; var j = i+1; console.log(TITULO_PAGINA+":"+$(_this).parents(".rotador").data('titol'),$(llibres_carrusel[i]).find('a').data('isbn'),num_llibres_enviat,j); if(i == 0) dataLayer.setProductInList(TITULO_PAGINA+":"+$(_this).parents(".rotador").data('titol'),$(llibres_carrusel[i]).find('a').data('isbn'),num_llibres_enviat,j,1); else dataLayer.setProductInList(TITULO_PAGINA+":"+$(_this).parents(".rotador").data('titol'),$(llibres_carrusel[i]).find('a').data('isbn'),num_llibres_enviat,j); $(llibres_carrusel[i]).find('a').data('cardinal', num_llibres_enviat); $($(llibres_carrusel[i]).find('a')).click(function( ) { //alert($(this).data('isbn')); //dataLayer.setProductClick($(this).data('cardinal')); //_satellite.track('setProductClick'); }); } _satellite.track('setProductList'); $(_this).parents(".rotador").data('num_llibres_enviats', num_llibres_enviat); }, 1000); }); } } llibres_amagats_carrusel.push($(this).data("isbn") + ':' + itemsTagManager); $(this).parents(".rotador").data('amagats', llibres_amagats_carrusel); $(this).parents(".rotador").data('titol', titol_product_list); if(titol_product_list_ant != titol_product_list) $(this).parents(".rotador").data('num_llibres_enviats', itemsProdRotador); titol_product_list_ant = titol_product_list; } } else { //es grid llibres_amagats = $(this).parents(".rotador").data('amagats'); if ( llibres_amagats == undefined ) llibres_amagats = []; if(llibres_amagats.length === 0) { // array buit creem el click if($(this).parents(".rotador").find(".veure-mes").length) { $(this).parents(".rotador").find(".veure-mes").click(function(){ var llibres_ocults = $(this).parents(".rotador").data('amagats'); for (var i = 0; i < llibres_ocults.length; i++) { var j = i+1; var llibre = llibres_ocults[i].split(':'); //console.log(TITULO_PAGINA+":"+$(this).parents(".rotador").data('titol'),llibre[0],llibre[1],j); if(i == 0) dataLayer.setProductInList(TITULO_PAGINA+":"+$(this).parents(".rotador").data('titol'),llibre[0],llibre[1],j,1); else dataLayer.setProductInList(TITULO_PAGINA+":"+$(this).parents(".rotador").data('titol'),llibre[0],llibre[1],j); }; _satellite.track('setProductList'); }); } } llibres_amagats.push($(this).data("isbn") + ':' + itemsTagManager); $(this).parents(".rotador").data('amagats', llibres_amagats); $(this).parents(".rotador").data('titol', titol_product_list); } } itemsTagManager++; }); if(llibres_visibles_pag.length > 0) { var titol_ant = ''; var j = 0; for (var i = 0; i < llibres_visibles_pag.length; i++) { var llibre = llibres_visibles_pag[i].split('||'); //var count_total = i+1; if(titol_ant != '' && llibre[2] != titol_ant && i != llibres_visibles_pag.length-1) { console.log('setProductList'); _satellite.track('setProductList'); sleep(400); j = 0; } j = j+1; console.log(j, llibre[2], titol_ant); //dataLayer.setProductInList(TITULO_PAGINA+":"+llibre[2],llibre[0],llibre[1], count_total); if(j == 1) dataLayer.setProductInList(TITULO_PAGINA+":"+llibre[2],llibre[0],llibre[1], j, 1); else dataLayer.setProductInList(TITULO_PAGINA+":"+llibre[2],llibre[0],llibre[1], j); titol_ant = llibre[2]; }; _satellite.track('setProductList'); } */ }); function sleep(delay) { var start = new Date().getTime(); while (new Date().getTime() < start + delay); } function comentar_llibre(id, id_llibre, id_usuari){ // Posa feedback visual de loading $("#boto-enviar-comentari").html(""); $.ajax({ type: "POST", url: "https://www.planetadelibros.com/includes/ajax_comentario_libro.php", data: $("#FormComentar").serialize(), success: function(datos){ // Atura feedback visual $("#boto-enviar-comentari").html("Publicar"); obj = JSON.parse(datos); if(obj.resposta == "OK") { if ( TAGGING_ACTIU ) { //Click Votar llibre (PAG. 40) dataLayer.setEvent("book:comment","add",obj.votacio,1,0); _satellite.track("setEvent"); } $("#div-comentar-llibre").html("
"); } else { $("#com_error").show(); } } }); } $(document).ready(function() { $(document).on("change", ".suport_llibre", function() { window.location.hash = "#soporte/" + $(this).val(); });
$(document).on("change", ".capitols_llibre", function() { $(".boto-capitols").click(); });
$(".compralo").fancybox({ maxWidth : 800, maxHeight : 700, fitToView : false, width : "95%", height : "auto", autoSize : false, closeClick : false, helpers: { overlay: { locked: false } } });
if ( location.hash != "" && location.hash.split("/")[0] == "#comprar" ) { $(".compralo").trigger("click"); } }); function info_nou_llibre(id_llibre){ $(".suport_llibre").prop("checked",false); var altura_suports = $(".suports").height() - 7; $(".loading").show(); $(".loading").height( altura_suports ); $.ajax({ type: "GET", url: "https://www.planetadelibros.com/libro-informacion/"+id_llibre, data: { noWidget: 1 }, success: function(msg){ $( ".titol-i-autors .titol" ).html($(msg).find(".titol-i-autors.desktop .titol").html()); $( "#capsa-sinopsi" ).html($(msg).find("#capsa-sinopsi").html()); recalcularCapsaSinopsi("#capsa-sinopsi");
$( ".frase-mkt" ).html($(msg).find(".frase-mkt").html()); $( "#text-fitxa-tecnica" ).html($(msg).find("#text-fitxa-tecnica").html());
if ( $(msg).find(".div-contingut-extra").length < 1 ) { $( ".div-contingut-extra" ).html(""); } else { $( ".div-contingut-extra" ).html($(msg).find(".div-contingut-extra").html()); } $( ".segell" ).html($(msg).find(".segell").html()); $( ".tematiques-i-coleccions .segell-nom" ).html($(msg).find(".tematiques-i-coleccions .segell-nom").html()); $( ".tematiques-i-coleccions .tematiques" ).html($(msg).find(".tematiques-i-coleccions .tematiques").html()); if ( $( "#pq-llegir" ).length ) $( "#pq-llegir" ).html($(msg).find("#pq-llegir").html()); $( ".botons-contenido" ).html($(msg).find(".botons-contenido").html()); $( ".zona-capitols.active" ).removeClass( "active" ); $( "#imatge-portada" ).html($(msg).find("#imatge-portada").html()); $( ".boto_comprar" ).html($(msg).find(".boto_comprar").html()); $( ".coleccions" ).html($(msg).find(".coleccions").html()); $( "#num_pagines" ).html($(msg).find("#num_pagines").html()); $( "#id_soporte" ).val($(msg).find("#id_soporte").val()); $(".suport_llibre[value=" + $(msg).find("#id_soporte").val() + "]").prop("checked",true); $(".llibre_format.dropdown").removeClass("active"); $( ".descargar-app" ).html($(msg).find(".descargar-app").html()); $( ".pais_publicacion" ).html($(msg).find(".pais_publicacion").html()); $( ".narrador" ).html($(msg).find(".narrador").html()); $( ".traductor" ).html($(msg).find(".traductor").html()); $( ".duracion" ).html($(msg).find(".duracion").html()); if($("input:radio[name=soporte_select_desktop]:checked").parents().hasClass("dropdown")) $("input:radio[name=soporte_select_desktop]:checked").parents(".dropdown").addClass("active"); if($("input:radio[name=soporte_select_mobile]:checked").parents().hasClass("dropdown")) $("input:radio[name=soporte_select_mobile]:checked").parents(".dropdown").addClass("active"); $( "#etiquetes_desktop" ).html($(msg).find("#etiquetes_desktop").html()); $( "#etiquetes_mobile" ).html($(msg).find("#etiquetes_mobile").html()); if($(msg).find("#es_capitulo").val() == "true") { $("input[name=soporte_select_desktop][value=capitulo]").attr("checked", "checked"); $("input[name=soporte_select_mobile][value=capitulo]").attr("checked", "checked"); $(".boto-capitols").click(); } $(".loading").hide(); if ( TAGGING_ACTIU ) { //ecommerce fitxa llibre (PAG. 76) dataLayer.setProduct($(msg).find(".ean13").html(), $(msg).find(".titol h1").html(), $(msg).find(".tematicaprincipal").html(), $(msg).find(".nomsegell").html(), $(msg).find(".tipusarticle").html(), $(".compralo .preu").data("tagging"), "", $("input[name=soporte_select_tablet]:checked").data("tagging"), "P"); _satellite.track("setProduct"); } } }); } function checkHashSoporte () { if ( location.hash != "" && location.hash.split("/")[0] == "#soporte" && location.hash.split("/")[1] != "" ) { var soporte_id = location.hash.split("/")[1]; // Check if ID correspond to a "soporte" var trobat = false; $(".llibre_format").each(function(){ if ( $(this).data("soporte-id") == soporte_id ) trobat = true; }); $(".capitols .capitol").each(function(){ if ( $(this).data("soporte-id") == soporte_id ) trobat = true; }); if ( trobat ) { info_nou_llibre( soporte_id ); } } }