1jQuery(function( $ ){ 2 3 4 5 $(document).ready(function() { 6 7 //LINK INTERIOR 8 $( ".mod-link_interno .learn-more" ).each(function() { 9 linkw = $(this).find('.button-text').width(); 10 $(this).width(linkw+88); 11 console.log(linkw); 12 }); 13 14 //BUSCAMOS TODOS LOS BOTONES PILDORA Y AÃADIMOS UN ATTRIBUTO LLAMADO data-text CON EL MISMO TEXTO DEL BOTÃN 15 $( ".mod-boton_pildora a" ).each(function() { 16 datatext = $(this).text(); 17 $(this).attr('data-text',datatext); 18 }); 19 20 //MEDIA SLIDER 21 lightbox.option({ 22 'resizeDuration': 200, 23 'wrapAround': true, 24 'alwaysShowNavOnTouchDevices': true, 25 'fitImagesInViewport': true 26 }) 27 28 /*ANIMAMOS CONTADOR DEL 0 AL NÃMERO FINAL.*/ 29 30 /*$( ".figure" ).each(function() { 31 figure = $( this ).text(); 32 if (figure.indexOf("%") >= 0){ 33 figure = figure.replaceAll("%", " "); 34 $(this).text(figure); 35 $(this).after('<div class="symbol">%</div>'); 36 } 37 if (figure.indexOf("â¬") >= 0){ 38 figure = figure.replaceAll("â¬", " "); 39 $(this).text(figure); 40 $(this).before('<div class="symbol">â¬</div>'); 41 } 42 }); 43 44 $('.figure').counterUp({ 45 delay: 10, 46 time: 1000 47 });*/ 48 49 //SLIDER PARA PROYECTOS---------------------------------------- 50 const projectsslider = new Swiper('.projects-slider', { 51 slidesPerView: 3, 52 spaceBetween: 15, 53 direction: 'horizontal', 54 loop: false, 55 56 pagination: { 57 el: '.swiper-pagination', 58 type: 'fraction', 59 }, 60 61 breakpoints: { 62 0:{ 63 slidesPerView: 1, 64 }, 65 768: { 66 slidesPerView: 2, 67 }, 68 1024: { 69 slidesPerView: 3, 70 }, 71 }, 72 73 navigation: { 74 nextEl: '.swiper-button-next-proj', 75 prevEl: '.swiper-button-prev-proj', 76 }, 77 }); 78 79 //SLIDER PARA OPINIONES 1 -------------------------------------- 80 const slider_opiniones_1 = new Swiper('.slider_opiniones_1', { 81 slidesPerView: 1, 82 direction: 'horizontal', 83 loop: true, 84 85 navigation: { 86 nextEl: '.swiper-button-next', 87 prevEl: '.swiper-button-prev', 88 }, 89 }); 90 91 //SLIDER PARA IMÃGENES Y/O VIDEOS ------------------------------ 92 const slider_media = new Swiper('.slider_media', { 93 slidesPerView: 4, 94 direction: 'horizontal', 95 spaceBetween: 2, 96 loop: false, 97 98 breakpoints: { 99 0:{ 100 slidesPerView: 1, 101 }, 102 768: { 103 slidesPerView: 2, 104 }, 105 1024: { 106 slidesPerView: 4, 107 }, 108 }, 109 110 pagination: { 111 el: '.swiper-pagination', 112 type: 'fraction', 113 }, 114 115 navigation: { 116 nextEl: '.swiper-button-next', 117 prevEl: '.swiper-button-prev', 118 }, 119 }); 120 121 //SLIDER PARA IMÃGENES Y/O VIDEOS ------------------------------ 122 const slider_proyecto_destacado = new Swiper('.proyecto_destacado', { 123 slidesPerView: 1, 124 direction: 'horizontal', 125 loop: false, 126 127 pagination: { 128 el: '.swiper-pagination', 129 clickable: true, 130 }, 131 132 navigation: { 133 nextEl: '.swiper-button-next', 134 prevEl: '.swiper-button-prev', 135 }, 136 }); 137 138 /*Si se agrega la clase "tip-hor_scroll" a un contenedor se agrega una manita que indica que se pude hacer scroll horizontal*/ 139 $('.tip-hor_scroll').prepend('<div class="tip-scroll"><span></span></div><div class="tip-hand animate__animated animate__slow animate__shakeX animate__infinite infinite"><i class="las la-hand-pointer"></i></div>'); 140 /*Ocultamos la manita cuando se hace scroll horizontal*/ 141 const $el = $('.tip-hor_scroll'); 142 let lastX = $el.scrollLeft(); 143 $el.on('scroll', function() { 144 $('.tip-hand').hide(); 145 146 const currX = $el.scrollLeft(); 147 148 // determine current scroll direction 149 const x = (currX > lastX) ? 'right' : ((currX === lastX) ? 'none' : 'left'); 150 151 // do something here... 152 //console.log(x); 153 154 // update last scroll position to current position 155 lastX = currX; 156 }); 157 /*-----------------------*/ 158 159 $(window).resize(function() { 160 161 162 //MÃDULO CON UNA DE SUS DOS LADOS INVASIVO 163 $blankSpace = (($(window).width() - $('.container').width()) / 2 ); 164 $blankSize = "calc(100% - "+ $blankSpace +"px )"; 165 166 //RESPONSIVE VARIATIONS ---------------------------------------- 167 if($(window).width() >= 922) { 168 //TABS EN ESCRITORIO 169 $('.nav-pills').removeClass('flex-column'); 170 171 //MÃDULO SLIDER MEDIA---------------------------------------------
172 $( ".mod-slider_media .tr-wrapper" ).css( "maxWidth", ( $blankSize )); 173 174 //MÃDULO QUICKLINKS PREMIUM-------------------------------------- 175 $( ".mod-quicklinks_premium .tr-wrapper" ).css( "maxWidth", ( $blankSize )); 176 $(".mod-quicklinks_premium .tr-wapper-child").css('margin-left',$blankSpace); 177 178 //MENU PRINCIPAL CON LADO DERECHO INVASIVO 179 $( ".sub-menu" ).css( "maxWidth", ( $blankSize )); 180 181 } else { 182 183 //BOTONES DENTRO DEL SLIDER DE PROYECTOS EN DESKTOP SMALL Y MOBILE 184 $('.mod-slide_proyecto .swiper-button-prev-proj').appendTo('.slider-wapper'); 185 $('.mod-slide_proyecto .swiper-button-next-proj').appendTo('.slider-wapper'); 186 $('.mod-slide_proyecto .swiper-pagination').appendTo('.slider-wapper'); 187 $('.tr-wrapper .see-all').appendTo('.slider-wapper'); 188 189 //TABS EN DESKTOP SMALL Y MOBILE 190 $('.nav-pills').addClass('flex-column'); 191 192 //QUITAMOS CIERTAS CLASES DE LAS CABECERAS QUE NO NOS INTERESA QUE ESTÃN EN MÃVIL 193 $('.mod-cabecera_principal .row').removeClass('d-flex flex-nowrap align-items-center'); 194 195 196 197 198 199 } 200 201 if($(window).width() >= 768) { 202 203 } else { 204 //LÃNEA DE TIEMPO EN UNA COLUMNA EN MÃVIL 205 $('.time-point .data.left').removeClass('left'); 206 $('.time-point .data').addClass('right'); 207 } 208 }).resize(); 209 210 if($(window).width() <= 768) { 211 //LÃNEA DE TIEMPO EN UNA COLUMNA EN MÃVIL 212 $('.time-point .data.left').removeClass('left'); 213 $('.time-point .data').addClass('right'); 214 215 //MÃDULO TABS EN MÃVIL 216 $('.nav-pills .nav-item .nav-link').append('<i class="las la-angle-down"></i>'); 217 $('#tr-tabs-content .tab-pane').removeClass('show active'); 218 $('#tr-tabs-content .tab-pane').addClass('animate__animated animate__fadeInDown'); 219 $('#pills-tab .nav-item .nav-link').removeClass('active'); 220 $( "#pills-tab .nav-link" ).on( "click", function() { 221 $this = $(this); 222 setTimeout(function(){ 223 console.log($this.text()); 224 $('#tr-tabs-content').appendTo($this.parent()); 225 }, 100); 226 }); 227 } 228 229 }); 230 231}); 232
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.