1$(document).ready(function ($) { 2 // flexslider 3 $('.top-banner .flexslider').hide(); 4 5 $('.top-banner .flexslider').flexslider({ 6 animation: "fade", 7 slideshowSpeed: 5000, 8 animationDuration: 3000, 9 easing: "swing", 10 directionNav: false, 11 controlNav: true, 12 pausePlay: false, 13 start: function (slider) { 14 $('.banner-fallback').hide(); 15 $('.flexslider').show(); 16 updateExternalCaption(slider); 17 }, 18 after: function (slider) { 19 updateExternalCaption(slider); 20 } 21 }); 22 23 function updateExternalCaption(slider) { 24 var $captions = $('.caption-bann-home .flex-caption'); 25 26 if (!$captions.length) return; 27 28 var $activeSlide = slider.slides.eq(slider.currentSlide); 29 var activeKey = $activeSlide.data('key'); 30 31 $captions.hide(); 32 $captions.filter('[data-key="' + activeKey + '"]').show(); 33 } 34 35}); 36 37$(document).ready(function ($) { 38 $(".calendar").datepicker({ 39 dateFormat: 'dd/mm/yy', 40 firstDay: 0, 41 monthNames: ['Enero', 'Febrer', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septembre', 'Octubre', 'Noviembre', 'Diciembre'], 42 dayNamesMin: ['Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds', 'Dg'], 43 44 }); 45 46 $('.map-list a.t-link').click(function () { 47 $('.map-list a.t-link').removeClass('selected'); 48 $(this).addClass('selected') 49 }); 50 51}); 52 53// $('.video').lightcase(); 54 55document.addEventListener('DOMContentLoaded', () => { 56 document.querySelectorAll('.video-thumbnail').forEach((thumb) => { 57 thumb.addEventListener('click', (e) => { 58 e.preventDefault(); 59 60 const raw = thumb.getAttribute('data-video'); 61 if (!raw) return; 62 63 const u = new URL(raw, window.location.href); 64 65 u.searchParams.set('rel', '0'); 66 u.searchParams.set('playsinline', '1'); 67 u.searchParams.set('origin', window.location.origin); 68 u.searchParams.set('widget_referrer', window.location.href); 69 70 const iframe = document.createElement('iframe'); 71 iframe.src = u.toString(); 72 iframe.width = '100%'; 73 iframe.height = '400'; 74 iframe.frameBorder = '0'; 75 iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share'; 76 iframe.allowFullscreen = true; 77 iframe.referrerPolicy = 'strict-origin-when-cross-origin'; 78 79 thumb.innerHTML = ''; 80 thumb.appendChild(iframe); 81 }); 82 }); 83}); 84 85 86 87$(window).on('load', resize_images_singles_blocks); 88 89$(window).on('load resize', resize_images_singles_blocks); 90 91function resize_images_singles_blocks() { 92 var maxHeight = Math.max.apply(null, $(".obj-es-notis.projectes.cards-sec .notices-div ul.item li:not(.is-link)").map(function () { 93 return $(this).outerHeight(true); 94 }).get()); 95 console.log("maxHeight", maxHeight); 96 $(".obj-es-notis.projectes.cards-sec .notices-div ul.item li.is-link").css("height", maxHeight + "px"); 97} 98 99// document.addEventListener('DOMContentLoaded', function () { 100// const thumbnails = document.querySelectorAll('.video-thumbnail'); 101 102// thumbnails.forEach(thumb => { 103// thumb.addEventListener('click', function () { 104// const videoUrl = this.getAttribute('data-video'); 105 106// if (videoUrl) { 107// const iframe = document.createElement('iframe'); 108// // iframe.setAttribute('src', videoUrl + '?autoplay=1&rel=0'); 109// iframe.setAttribute('src', videoUrl + '?rel=0'); 110// iframe.setAttribute('width', '100%'); 111// iframe.setAttribute('height', '400'); 112// iframe.setAttribute('frameborder', '0'); 113// // iframe.setAttribute('allow', 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share'); 114// iframe.setAttribute('allow', 'encrypted-media; picture-in-picture; web-share'); 115// iframe.setAttribute('allowfullscreen', ''); 116// iframe.setAttribute('loading', 'lazy'); 117 118// this.innerHTML = ''; 119// this.appendChild(iframe); 120// } 121// }); 122// }); 123// });
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.