1'use strict'; 2 3jQuery(document).ready(function() { 4 5 // Prevent top menu links 6 // From going nowhere 7 jQuery('a').on('click', function(event) { 8 var $this = jQuery(this); 9 var href = $this.attr('href'); 10 11 if (href == '#') { 12 event.preventDefault(); 13 } 14 }); 15 16 // Enable magnific gallery support 17 jQuery('.gallery').each(function() { // the containers for all your galleries 18 jQuery(this).magnificPopup({ 19 delegate: 'a', // the selector for gallery item 20 type: 'image', 21 gallery: { enabled: true } 22 }); 23 }); 24 25 // Enable table scroll 26 jQuery('table').each(function() { 27 var $this = jQuery(this); 28 $this.wrap('<div style="overflow-x: scroll" />'); 29 }); 30 31 // Cookies 32 if (!localStorage.getItem('cookies')) { 33 jQuery('body').append( 34 '<div style="background-color: rgba(0, 0, 0, 0.95); display: flex; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px;" onClick="localStorage.setItem(\'cookies\', \'true\'); this.remove()">' + 35 '<div style="flex: 1">Tu Privacidad es importante para nosotros. Por ello, te informamos que utilizamos cookies propias y de terceros para realizar análisis de uso y medición de nuestra página web con el fin de personalizar contenidos, publicidad, asà como proporcionar funcionalidades en las redes sociales o analizar nuestro tráfico. Para continuar acepta la configuración de nuestras cookies. Puede obtener más información, o bien conocer cómo cambiar la configuración, en nuestra <a href="http://www.elmuseocanario.com/politica-de-cookies/">PolÃtica de cookies</a></div>' + 36 '<button style="margin: 20px">Aceptar las Cookies</button>' + 37 '</div>' 38 ); 39 } 40});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.