El caballero misterioso (Cuentos de Dunk y Egg: El caballero de los Siete Reinos 3)

George R.R. Martin

Fragmento

Page 3 of 159
background image
background image
ADAPTACIÓNBEN AVERYILUSTRACIONESMIKE S. MILLERCOLORJ.NANJAN Y SIVAKAMI MOHANROTULACIÓNESTUDIO FÉNIX
Page 4 of 159
background image
background image
Título original: The Mystery KnightEdición en formato digital: septiembre de 2018© 2017, George R. R. Martin© 2018, Penguin Random House Grupo Editorial, S. A. U. Travessera de Gràcia, 47-49. 08021 Barcelona© 2018, Raúl Sastre Letona, por la traducciónPenguin Random House Grupo Editorial apoya la protección del copyright.El copyright estimula la creatividad, defiende la diversidad en el ámbito de las ideasy el conocimiento, promueve la libre expresión y favorece una cultura viva.Gracias por comprar una edición autorizada de este libro y por respetar las leyes del copyright al no reproducir ni distribuir ninguna parte de esta obra por ningún medio sin permiso. Al hacerlo está respaldando a los autores y permitiendo que PRHGE continúe publicando libros para todos los lectores. Diríjase a CEDRO (Centro Español de Derechos Reprográficos,http://www.cedro.org) si necesita reproduciralgún fragmento de esta obra.ISBN: 978-84-663-4753-2Composición digital: Newcomlab S.L.L.www.megustaleer.com
Page 5 of 159
background image
background image
Page 6 of 159
background image
background image
Page 7 of 159</titl </div> <div id="div_newsletter" class=""> <h3 id="h3_news">Suscríbete para continuar leyendo y recibir nuestras novedades editoriales</h3> <h3 id="h3_OK">¡Ya estás apuntado/a! Gracias.<span id="close_news">X</span></h3> <div class="row" id="row_input"> <div class="col-xs-12 col-md-12"> <button type="button" class="btn btn-primary margin-center hidden-sm-up subscription-categories-btn modalSubscriptionForm btnsn" data-toggle="modal" data-target="#modalSubscriptionForm"> ME APUNTO </button> <button type="button" class="btn btn-primary hidden-xs-down subscription-categories-btn margin-center modalSubscriptionForm btnsn" data-toggle="modal" data-target="#modalSubscriptionForm"> ME APUNTO </button> </div> </div> </div> </div> <div class="modal fade" id="modalSubscriptionConfirm" tabindex="-1" role="dialog" aria-labelledby="modalSubscriptionConfirm" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <span class="modal-title">Gracias</span> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> ¡Apuntada tu nueva preferencia! Muchas Gracias </div> <div class="modal-footer"> <button type="button" class="btn btn-primary margin-center subscription-categories-btn btnsnc" data-dismiss="modal">Cerrar</button> </div> </div> </div> </div> <div class="modal fade" id="modalSubscriptionForm" tabindex="-1" role="dialog" aria-labelledby="modalSubscriptionForm" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="//www.penguinlibros.com/es/module/lblusersubscription/miscelania?action=setTematicaModal&ajax=1" method="post" id="submitNewsletterModal-form" class="pl-3 pr-3"> <div class="modal-header"> <span class="modal-title">Rellena tus datos</span> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="col-xs-12 alert alert-success alert-warning hidden-xs-up" id="iqitreviews-productreview-form-alert"></div> <div class="form-fields" id="iqitreviews-productreview-fields"> <input type="hidden" name="autor" value="108118"> <input type="hidden" name="editorial" value="12047"> <input type="hidden" name="tematicas" value="11"> <input type="hidden" name="origen" value="subscripcionFragmento"> <input type="hidden" name="suscribeNewsletter" value="1"> <div class="form-group row"> <label class="col-md-3 form-control-label">Nombre</label> <div class="col-md-9"> <input type="text" class="form-control" name="name" id="name" value="" placeholder="Tu nombre"/> </div> </div> <div class="form-group row"> <label class="col-md-3 form-control-label">Apellidos</label> <div class="col-md-9"> <input type="text" class="form-control" name="surname" id="surname" value="" placeholder="Tu apellido"/> </div> </div> <div class="form-group row"> <label class="col-md-3 form-control-label">Email</label> <div class="col-md-9"> <input type="email" class="form-control" name="email" id="email" value="" placeholder="Tu email"/> </div> </div> <div class="form-group row"> <label class="col-md-3 form-control-label">Catálogo de interés</label> <div class="col-md-9"> <select name="shop" id="shop"> <option selected value="1">Penguinlibros España</option> <option value="4">Penguinlibros Argentina</option> <option value="16">Penguinlibros Chile</option> <option value="14">Penguinlibros Colombia</option> <option value="15">Penguinlibros México</option> <option value="17">Penguinlibros Perú</option> <option value="19">Penguinlibros Miami</option> <option value="18">Penguinlibros Uruguay</option> </select> </div> </div> <div class="mt-2 text-muted"> <div id="gdpr_consent_153" class="gdpr_module gdpr_module_153"> <div class="custom-checkbox" style="display: flex;"> <input id="psgdpr_consent_checkbox_153" name="psgdpr_consent_checkbox" type="checkbox" value="1"> <span class="psgdpr_consent_checkbox_span mr-2"><i class="fa fa-check rtl-no-flip checkbox-checked psgdpr_consent_icon" aria-hidden="true"></i></span> <label for="psgdpr_consent_checkbox_153" class="psgdpr_consent_message" style="display: inline"> He leído y acepto las <span style="color: #2c9ffd;"><a href="https://www.penguinlibros.com/es/content/9-condiciones-de-uso" target="_blank" rel="noreferrer noopener"><span style="color: #2c9ffd;">Condiciones del Servicio</span></a> y la <a href="https://www.penguinlibros.com/es/content/10-proteccion-de-datos" target="_blank" rel="noreferrer noopener"><span style="color: #2c9ffd;">política de protección de datos</span></a></span>, incluyendo la política de cookies para darme de alta en Penguinlibros.<br /><br /> <p><strong>Información básica sobre Protección de Datos</strong></p> <p><strong>Responsable:</strong> Penguin Random House Grupo Editorial,S.A.U. <strong>Contacto:</strong><a href="mailto:lopd@penguinrandomhouse.com">lopd@penguinrandomhouse.com</a></p> <p><strong>Finalidad:</strong> la gestión del servicio solicitado a través de Penguinlibros e informarte sobre nuestros productos, servicios, novedades, sorteos, concursos y eventos. Puede ver más <span style="color: #2c9ffd;"><a href="https://www.penguinlibros.com/es/content/10-proteccion-de-datos"><span style="color: #2c9ffd;">detalles aqui</span></a></span><strong>.</strong></p> <p><strong>Legitimación</strong>: Ejecución del contrato y consentimiento del interesado.</p> <p><strong>Destinatario:</strong> cedemos tus datos a las empresas de nuestro grupo para poder mostrar el catalogo disponible. Puede ver más <span style="color: #2c9ffd;"><a href="https://www.penguinlibros.com/es/content/10-proteccion-de-datos"><span style="color: #2c9ffd;">detalles aquí</span></a></span>.</p> <p><strong>Derechos:</strong> Acceder, rectificar y suprimir los datos, así como otros derechos, como se explica en nuestra política que puede consultar en el <span style="color: #2c9ffd;"><a href="https://www.penguinlibros.com/es/content/10-proteccion-de-datos"><span style="color: #2c9ffd;">siguiente enlace</span></a></span></p> </label> </div> </div> <script type="text/javascript"> var psgdpr_front_controller = "https://www.penguinlibros.com/es/module/psgdpr/FrontAjaxGdpr"; psgdpr_front_controller = psgdpr_front_controller.replace(/\amp;/g,''); var psgdpr_id_customer = "0"; var psgdpr_customer_token = "da39a3ee5e6b4b0d3255bfef95601890afd80709"; var psgdpr_id_guest = "0"; var psgdpr_guest_token = "08749bd8f01322f1ec16ab3aec599e079f377246"; document.addEventListener('DOMContentLoaded', function() { let psgdpr_id_module = "153"; let parentForm = $('.gdpr_module_' + psgdpr_id_module).closest('form'); let toggleFormActive = function() { let checkbox = $('#psgdpr_consent_checkbox_' + psgdpr_id_module); let element = $('.gdpr_module_' + psgdpr_id_module); let iLoopLimit = 0; // Look for parent elements until we find a submit button, or reach a limit while(0 === element.nextAll('[type="submit"]').length && // Is there any submit type ? element.get(0) !== parentForm.get(0) && // the limit is the form element.length && iLoopLimit != 1000) { // element must exit element = element.parent(); iLoopLimit++; } if (checkbox.prop('checked') === true) { if (element.find('[type="submit"]').length > 0) { element.find('[type="submit"]').removeAttr('disabled'); } else { element.nextAll('[type="submit"]').removeAttr('disabled'); } } else { if (element.find('[type="submit"]').length > 0) { element.find('[type="submit"]').attr('disabled', 'disabled'); } else { element.nextAll('[type="submit"]').attr('disabled', 'disabled'); } } } // Triggered on page loading toggleFormActive(); $('body').on('change', function(){ // Triggered after the dom might change after being loaded toggleFormActive(); // Listener ion the checkbox click $(document).on("click" , "#psgdpr_consent_checkbox_"+psgdpr_id_module, function() { toggleFormActive(); }); $(document).on('submit', parentForm, function(event) { $.ajax({ data: 'POST', //dataType: 'JSON', url: psgdpr_front_controller, data: { ajax: true, action: 'AddLog', id_customer: psgdpr_id_customer, customer_token: psgdpr_customer_token, id_guest: psgdpr_id_guest, guest_token: psgdpr_guest_token, id_module: psgdpr_id_module, }, success: function (data) { // parentForm.submit(); }, error: function (err) { console.log(err); } }); }); }); }); </script> </div> </div> </div> <div class="modal-footer"> <input class="btn btn-primary margin-center hidden-sm-up subscription-categories-btn btnsns" data-id_product=25173 type="submit" value=" OK"> <input class="btn btn-primary hidden-xs-down subscription-categories-btn margin-center modal-newsletter btnsns" data-id_product=25173 type="submit" value=" Apuntate"> </div> </form> </div> </div> </div> </div> </section> <footer id="footer"> <div class="preview-footer"> <div class="container content row col-12 col-md-10 col-sm-8 overflow-hidden m-auto content row "> <div class="col-12"> <p class="product_name" style="font-size: 27px;font-family: 'montserrat';margin:0 auto;text-align:center;">El caballero misterioso (Cuentos de Dunk y Egg: El caballero de los Siete Reinos 3)</p> </div> <div id="textoRelated" class="col-lg-12 col-md-12 col-sm-10 col-xs-12"> <h2>¡Disfruta del libro entero!</h2> <p style="font-weight: bold;padding:0px;margin:0px;">Elige tu formato favorito y empieza tu próxima lectura</p> </div> <div class="col-lg-12 col-md-12 col-xs-12"> <div class="info-libro row" style="padding:0px;"> <div class="precios-libro row"> <div class="col-xl-3 col-lg-4 libroRelated selected" style="display:inline-block;"> <a href="//www.penguinlibros.com/es/libros-de-fantasia/25173-el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3 "> <img src="https://www.penguinlibros.com/es/258333/el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3.jpg" alt="El caballero misterioso (Cuentos de Dunk y Egg: El caballero de los Siete Reinos 3)" class="img-fluid photo"> <span class="formato">eBook diseño fijo</span> <div class="row"> <span class="col precio">5,47 € <span>5,76 €</span> </span> </div> </a> </div> <div class="col-xl-3 col-lg-4 libroRelated selected" style="display:inline-block;"> <a href="//www.penguinlibros.com/es/libros-de-fantasia/25174-el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3 "> <img src="https://www.penguinlibros.com/es/258342/el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3.jpg" alt="El caballero misterioso (Cuentos de Dunk y Egg: El caballero de los Siete Reinos 3)" class="img-fluid photo"> <span class="formato">eBook Kindle</span> <div class="row"> <span class="col precio">6,72 € </span> </div> </a> </div> <div class="col-xl-3 col-lg-4 libroRelated" style="display:inline-block;"> <a href="//www.penguinlibros.com/es/libros-de-fantasia/34187-el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3-9788466344845 "> <img src="https://www.penguinlibros.com/es/1242612/el-caballero-misterioso-cuentos-de-dunk-y-egg-el-caballero-de-los-siete-reinos-3.jpg" alt="El caballero misterioso (Cuentos de Dunk y Egg: El caballero de los Siete Reinos 3)" class="img-fluid photo"> <span class="formato">Bolsillo</span> <div class="row"> <span class="col precio">11,83 € <span>12,45 €</span> </span> </div> </a> </div> </div> </div> </div> <div class="clearfix"></div> </div> </div> </footer> </main> <script type="text/javascript" src="https://www.penguinlibros.com/es/themes/core.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/themes/megustaleer/assets/js/theme.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/ybc_manufacturer/js/ybcmnf.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/ybc_manufacturer/js/owl.carousel.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/selligentconnector//views/js/frontoffice.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/external_link//views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/labelcustomertabs//views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/lblusersubscription//views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/bestkit_gifts/views/js/bestkit_gifts.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/bestkit_gifts/views/js/sweet-alert.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/lgcookieslaw/views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/js/jquery/plugins/bxslider/jquery.bxslider.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/js/jquery/plugins/jquery.cooki-plugin.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/js/jquery/plugins/fancybox/jquery.fancybox.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/seur/views/js/seurGMap.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/seur/views/js/frontMap.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/themes/warehouse/modules/ps_shoppingcart/ps_shoppingcart.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitelementor/views/lib/instagram-lite-master/instagramLite.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitelementor/views/lib/jquery-numerator/jquery-numerator.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitelementor/views/js/frontend.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitmegamenu/views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitreviews/views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/themes/megustaleer/modules/iqitwishlist/views/js/front.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/iqitthemeeditor/views/js/custom_s_1.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/ph_simpleblog/views/js/ph_simpleblog-17.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/penguinlibros/views/js/views.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/labelcustomertabs/views/js/views.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/themes/megustaleer/assets/js/custom.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/jquery.themepunch.tools.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/jquery.themepunch.revolution.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.actions.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.carousel.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.kenburn.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.layeranimation.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.migration.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.navigation.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.parallax.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.slideanims.min.js" ></script> <script type="text/javascript" src="https://www.penguinlibros.com/es/modules/revsliderprestashop/public/assets/js/extensions/revolution.extension.video.min.js" ></script> <div id="iqitwishlist-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <span class="modal-title">Para añadir el libro a favoritos, debes estar registrado</span> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <section class="login-form"> <p> Guarda productos en favoritos para comprarlos más adelante</p> <div class="blocklogin-content-mobile"> <ul class="nav-tabs" id="tabs-login" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="login-tab" href="https://www.penguinlibros.com/es/datos-personales" >Inicia sesión</a> </li> <li class="nav-item"> <a class="nav-link" id="registro-tab" href="https://www.penguinlibros.com/es/iniciar-sesion?create_account=1" >Regístrate</a> </li> </ul> </div> <form id="login-form" action="index.php?controller=authentication&back=my-account" method="post"> <section> <input type="hidden" name="back" value=""> <div class="form-group row align-items-center "> <label class="col-md-2 col-form-label required"> Dirección de correo electrónico </label> <div class="col-md-8"> <input class="form-control" name="email" type="email" value="" required > </div> <div class="col-md-2 form-control-comment"> </div> </div> <div class="form-group row align-items-center "> <label class="col-md-2 col-form-label required"> Contraseña </label> <div class="col-md-8"> <div class="input-group js-parent-focus"> <input class="form-control js-child-focus js-visible-password" name="password" title="Longitud de al menos 5 caracteres" autocomplete="new-password" type="password" value="" pattern=".{5,}" required > <span class="input-group-append"> <button class="btn btn-outline-secondary" type="button" data-action="show-password" > <i class="fa fa-eye-slash" aria-hidden="true"></i> </button> </span> </div> </div> <div class="col-md-2 form-control-comment"> </div> </div> <div class="form-group row align-items-center "> <label class="col-md-2 col-form-label"> </label> <div class="col-md-8"> <span class="custom-checkbox"> <input name="remember" id="ff_remember" type="checkbox" value="1" > <span><i class="fa fa-check rtl-no-flip checkbox-checked" aria-hidden="true"></i></span> <label for="ff_remember">Recuérdame</label > </span> </div> <div class="col-md-2 form-control-comment"> </div> </div> <div class="forgot-password"> <a href="https://www.penguinlibros.com/es/recuperar-contraseña" rel="nofollow"> ¿Has olvidado tu contraseña? </a> </div> </section> <footer class="form-footer text-center clearfix"> <input type="hidden" name="submitLogin" value="1"> <button id="submit-login" class="loginPresta btn btn-primary form-control-submit" data-link-action="sign-in" type="submit"> Iniciar sesión </button> </footer> </form> <div class="espacio"> <span>o</span> </div> </section> <hr/> <div class="iqitsociallogin iqitsociallogin-authentication iqitsociallogin-colors-theme text-center"> <a onclick="iqitSocialPopup('//www.penguinlibros.com/es/module/iqitsociallogin/authenticate?provider=facebook&page=authentication')" class="btn btn-secondary btn-iqitsociallogin btn-facebook mt-1 mb-1"> <i class="fa fa-facebook-square" aria-hidden="true"></i> Inicia sesión con Facebook </a> <a onclick="iqitSocialPopup('//www.penguinlibros.com/es/module/iqitsociallogin/authenticate?provider=google&page=authentication')" class="btn btn-secondary btn-iqitsociallogin btn-google mt-1 mb-1"> <i class="fa fa-google-plus-square" aria-hidden="true"></i> Inicia sesión con Google </a> </div> <hr> <script type="text/javascript"> function iqitSocialPopup(url) { var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var left = ((width / 2) - (960 / 2)) + dualScreenLeft; var top = ((height / 2) - (600 / 2)) + dualScreenTop; var newWindow = window.open(url, '_blank', 'scrollbars=yes,top=' + top + ',left=' + left + ',width=960,height=600'); if (window.focus) { newWindow.focus(); } } </script> <div class="no-account"> <a href="https://www.penguinlibros.com/es/iniciar-sesion?create_account=1" data-link-action="display-register-form"> ¿No tienes cuenta? Regístarte aquí </a> </div> </div> </div> </div> </div> <div id="iqitwishlist-notification" class="ns-box ns-effect-thumbslider ns-text-only"> <div class="ns-box-inner"> <div class="ns-content"> <span class="ns-title"><i class="fa fa-check" aria-hidden="true"></i> <strong>Añadido a tus libros guardados</strong></span> </div> </div> </div><script data-cfasync="false" type="text/javascript"> 'use strict'; // Instantiate the tracking class var rcTagManagerLib = new RcTagManagerLib(); // Init page values var controllerName = 'Fragmento'; var compliantModules = {"default":"order","supercheckout":"supercheckout","onepagecheckoutps":"order","sveacheckout":"sveapaypage","thecheckout":"order","steasycheckout":"default"}; var compliantModuleName = 'default'; var skipCartStep = ''; var isOrder = ''; var isCheckout = ''; var isClientId = 0; var gtmProducts; var gtmOrderComplete; //////////////////////////// // set tracking features rcTagManagerLib.trackingFeatures = gtmTrackingFeatures; // set checkout values rcTagManagerLib.controllerName = controllerName; rcTagManagerLib.isCheckout = isCheckout; rcTagManagerLib.compliantModuleName = compliantModuleName; rcTagManagerLib.skipCartStep = skipCartStep; // list names rcTagManagerLib.lists = {"default":"Fragmento","filter":"filtered_results"}; // Google remarketing - page type rcTagManagerLib.ecommPageType = 'other'; // get products list to cache rcTagManagerLib.productsListCache = []; // Listing products /////////////////////////////////////////////// if (!disableInternalTracking) { // Initialize all user events when DOM ready document.addEventListener('DOMContentLoaded', initGtmEvents, false); window.addEventListener('pageshow', fireEventsOnPageShow, false); } function initGtmEvents() { // Events binded on all pages // Events binded to document.body to avoid firefox fire events on right/central click document.body.addEventListener('click', rcTagManagerLib.eventClickPromotionItem, false); if (rcTagManagerLib.trackingFeatures.goals.socialAction) { // bind event on like/follow action rcTagManagerLib.eventSocialFollow(); } //////////////////////// // ALL PAGES EXCEPT CHECKOUT OR ORDER if (!isCheckout && !isOrder) { // bind prestashop events with tracking events prestashop.on( 'updateCart', function (event) { rcTagManagerLib.eventAddCartProduct(event); } ); prestashop.on( 'clickQuickView', function (event) { rcTagManagerLib.eventProductView(event) } ); prestashop.on( 'updatedProduct', function (event) { rcTagManagerLib.eventProductView(event) } ); // init first scroll action for those products all ready visible on screen rcTagManagerLib.eventScrollList(); // bind event to scroll window.addEventListener('scroll', rcTagManagerLib.eventScrollList.bind(rcTagManagerLib), false); // init Event Listeners document.body.addEventListener('click', rcTagManagerLib.eventClickProductList, false); document.body.addEventListener('click', rcTagManagerLib.eventGetAddCartQuantity, false); document.body.addEventListener('click', rcTagManagerLib.eventCartQuantityDelete, false); document.body.addEventListener('click', rcTagManagerLib.eventLogin, false); document.body.addEventListener('click', rcTagManagerLib.eventLogout, false); document.body.addEventListener('click', rcTagManagerLib.eventCreateAccount, false); document.body.addEventListener('click', rcTagManagerLib.eventNewsletter, false); document.body.addEventListener('click', rcTagManagerLib.eventUpdateAccount, false); if (rcTagManagerLib.trackingFeatures.goals.socialAction) { // bind event to allow track social action on document.body.addEventListener('click', rcTagManagerLib.eventSocialShareProductView, false); } //////////////////////// // SEARCH PAGE if (controllerName === 'search') { rcTagManagerLib.eventSearchResult(); } //////////////////////// // PRODUCT PAGE if (controllerName === 'product') { // send product detail view rcTagManagerLib.eventProductView(); } } //////////////////////// // CHECKOUT PROCESS if (isCheckout) { // SUMMARY CART if (controllerName === 'cart') { // events on summary Cart document.body.addEventListener('click', rcTagManagerLib.eventCartQuantityDelete, false); document.body.addEventListener('click', rcTagManagerLib.eventCartQuantityUp, false); document.body.addEventListener('click', rcTagManagerLib.eventCartQuantityDown, false); } //////////////////////// // CHECKOUT if (compliantModuleName === 'default' && controllerName === 'order') { // Events on Checkout Process document.body.addEventListener('click', rcTagManagerLib.eventPrestashopCheckout, false); } else if ( compliantModuleName === 'supercheckout' && controllerName === compliantModules[compliantModuleName] ) { // Compatible with super-checkout by Knowband document.body.addEventListener('click', rcTagManagerLib.eventOpcSuperCheckout, false); document.body.addEventListener('click', rcTagManagerLib.eventCartOpcSuperCheckout, false); } else if ( compliantModuleName === 'onepagecheckoutps' && controllerName === compliantModules[compliantModuleName] ) { // compatible with OPC by PrestaTeamShop document.body.addEventListener('click', rcTagManagerLib.eventOpcPrestaTeam, false); document.body.addEventListener('click', rcTagManagerLib.eventCartOpcPrestaTeam, false); } else if ( compliantModuleName === 'thecheckout' && controllerName === compliantModules[compliantModuleName] ) { // Compatible with thecheckout by Zelarg document.body.addEventListener('click', rcTagManagerLib.eventOpcTheCheckout, false); document.body.addEventListener('click', rcTagManagerLib.eventCartOpcTheCheckout, false); } else if ( compliantModuleName === 'steasycheckout' && controllerName === compliantModules[compliantModuleName] ) { // Events for steasycheckout document.body.addEventListener('click', rcTagManagerLib.eventOpcStEasyCheckout, false); document.body.addEventListener('click', rcTagManagerLib.eventCartOpcStEasyCheckout, false); } } } function fireEventsOnPageShow(event){ // fixes safari back cache button if (event.persisted) { window.location.reload() } // Sign up feature if (rcTagManagerLib.trackingFeatures.goals.signUp && rcTagManagerLib.trackingFeatures.common.isNewSignUp) { rcTagManagerLib.onSignUp(); } if (rcTagManagerLib.trackingFeatures.gua.trackingId && isClientId) { rcTagManagerLib.setClientId(); } // Checkout and order complete if (isCheckout && gtmProducts) { rcTagManagerLib.onCheckoutProducts(gtmProducts); } else if (isOrder && gtmOrderComplete) { rcTagManagerLib.onOrderComplete(gtmOrderComplete); } } </script> <button id="back-to-top"> <i class="fa fa-angle-up" aria-hidden="true"></i> </button> </body> </html>