1jQuery(document).ready( function($) { 2 3 $('a[href*="#"]:not([href="#"]):not([data-slide]):not([data-slide-to]):not([data-toggle]):not(.comment-reply-link)').click(function() { 4 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 5 var target = $(this.hash); 6 target = target.length ? target : $('[name="' + this.hash.slice(1) +'"]'); 7 if (target.length) { 8 //event.preventDefault(); 9 $('html,body').animate({ 10 scrollTop: target.offset().top 11 }, 1000); 12 return false; 13 } 14 } 15 }); 16 17 $('[data-bs-toggle="tooltip"]').each(function() { 18 new bootstrap.Tooltip( $(this), { 19 boundary: document.body // or document.querySelector('#boundary') 20 } ); 21 }); 22 23 $(window).scroll( function() { 24 var scroll = $(window).scrollTop(); 25 26 if ( scroll >= $('#cabecera').outerHeight() ) { 27 //clearHeader, not clearheader - caps H 28 $("body").addClass("onscroll"); 29 } else { 30 $("body").removeClass("onscroll"); 31 } 32 }); //missing ); 33 34 $(document).on('click', '[data-toggle="lightbox"]', function(event) { 35 event.preventDefault(); 36 $(this).ekkoLightbox({ 37 'alwaysShowClose': true, 38 'showArrows': true, 39 'leftArrow': '<i class="icon icon-chevron-left"></i>', 40 'rightArrow': '<i class="icon icon-chevron-right"></i>', 41 }); 42 }); 43 44 $('[data-toggle="affix"]').each( function() { 45 var affix_width = $(this).outerWidth(); 46 $(this).css({'width': affix_width}); 47 48 $(this).affix({ 49 offset:{ 50 top: $(this).offset().top /* apply .affix at bottom of header */ 51 } 52 }); 53 }); 54 55 $('.view-moreless').on('click', function(e) { 56 e.preventDefault(); 57 58 if ( $(this).hasClass('view-more') ) { 59 $(this).hide(); 60 $(this).next('.content-moreless').addClass('opened'); 61 62 63 } else if ( $(this).hasClass('view-less') ) { 64 $(this).closest('.entry-content').find('.view-more').show(); 65 $(this).closest('.content-moreless').removeClass('opened'); 66 67 } 68 69 return false; 70 }); 71 72 $('.count-on-scroll').each( function() { 73 var this_obj = $(this); 74 $(this_obj).text( $(this_obj).data('in') ); 75 76 var waypoints = $(this_obj).waypoint({ 77 handler: function(direction) { 78 $(this_obj).thisThemeStartCounter( $(this_obj).data('end') ); 79 }, 80 offset: 'bottom-in-view', 81 }); 82 }); 83 84 $('[data-onscount]').each( function() { 85 var this_obj = $(this); 86 $(this_obj).text( 0 ); 87 88 var waypoints = $(this).waypoint({ 89 handler: function(direction) { 90 $(this).thisThemeStartCounter( $(this_obj).data('onscount') ); 91 }, 92 offset: 'bottom-in-view', 93 }); 94 }); 95 96 $('.modal-video').each( function() { 97 var this_modal = $(this); 98 var this_iframe = $(this_modal).find('.modal-body iframe'); 99 100 var url = $(this_iframe).attr('src'); /* Get iframe src attribute value i.e. YouTube video url and store it in a variable */ 101 $(this_iframe).attr('src', ''); /* Remove iframe src attribute on page load to prevent autoplay in background */ 102 103 /* Assign the initially stored url back to the iframe src attribute when modal is displayed */ 104 $(this_modal).on( 'shown.bs.modal', function() { 105 $(this_iframe).attr('src', url); 106 }); 107 108 /* Assign empty url value to the iframe src attribute when modal hide, which stop the video playing */ 109 $(this_modal).on( 'hide.bs.modal', function() { 110 $(this_iframe).attr('src', ''); 111 }); 112 } ); 113 114} ); 115 116jQuery(window).resize(function() { 117 jQuery('.owl-carousel-top').trigger('destroy.owl.carousel').removeClass('owl-carousel owl-loaded'); 118 jQuery('.owl-carousel-top').find('.owl-stage-outer').children().unwrap(); 119 //mainOwlCarousel(); 120}); 121 122jQuery(window).load(function() { 123 124 jQuery(document).ready( function($) { 125 126 $('body').addClass('web-loaded'); 127 128 $(".owl-carousel").each( function() { 129 130 var this_owl = $(this); 131 132 $(this).parent().css({'width': $(this).parent().width()}); 133 134 this_owl = $(this).owlCarousel({ 135 autoplay:true, 136 autoplayTimeout:1000, 137 autoplayHoverPause:true, 138 139 items: ( typeof $(this).data('items') !== 'undefined' ) ? $(this).data('items') : 3, 140 loop: true, 141 center: false, 142 rewind: false, 143 144 mouseDrag: true, 145 touchDrag: true, 146 pullDrag: true, 147 freeDrag: false, 148 149 margin: 0, 150 stagePadding: 0, 151 152 merge: false, 153 mergeFit: true, 154 autoWidth: false, 155 156 startPosition: 0, 157 rtl: false, 158 159 smartSpeed: 250, 160 fluidSpeed: false, 161 dragEndSpeed: false, 162 responsive: { 163 0: { 164 items: ( typeof $(this).data('items-xs') !== 'undefined' ) ? $(this).data('items-xs') : 1, 165 nav: true, 166 loop: false 167 }, 168 576: { 169 items: ( typeof $(this).data('items-sm') !== 'undefined' ) ? $(this).data('items-sm') : 2, 170 nav: true, 171 loop: false 172 }, 173 768: { 174 items: ( typeof $(this).data('items-md') !== 'undefined' ) ? $(this).data('items-md') : 3, 175 nav: true, 176 loop: false 177 }, 178 992: { 179 items: ( typeof $(this).data('items-lg') !== 'undefined' ) ? $(this).data('items-lg') : 4, 180 nav: true, 181 loop: false 182 }, 183 1200: { 184 items: ( typeof $(this).data('items-xl') !== 'undefined' ) ? $(this).data('items-xl')
184: 5, 185 nav: true, 186 loop: false 187 } 188 }, 189 responsiveRefreshRate: 200, 190 responsiveBaseElement: window, 191 192 fallbackEasing: 'swing', 193 194 info: false, 195 196 nestedItemSelector: false, 197 itemElement: 'div', 198 stageElement: 'div', 199 200 refreshClass: 'owl-refresh', 201 loadedClass: 'owl-loaded', 202 loadingClass: 'owl-loading', 203 rtlClass: 'owl-rtl', 204 responsiveClass: 'owl-responsive', 205 dragClass: 'owl-drag', 206 itemClass: 'owl-item', 207 stageClass: 'owl-stage', 208 stageOuterClass: 'owl-stage-outer', 209 grabClass: 'owl-grab', 210 autoHeight: false, 211 lazyLoad: false, 212 213 navText : ['<i class="icon icon-chevron-left"></i>','<i class="icon icon-chevron-right"></i>'], 214 }); 215 216 //$(".next").click(function() { this_owl.trigger('owl.next'); }); 217 //$(".prev").click(function() { this_owl.trigger('owl.prev'); }); 218 }); 219 220 jQuery('.owl-carousel-top').trigger('destroy.owl.carousel').removeClass('owl-carousel owl-loaded'); 221 jQuery('.owl-carousel-top').find('.owl-stage-outer').children().unwrap(); 222 223 }); 224 225}); 226 227 228 229 230 231(function( $ ){ 232 233 $.fn.thisThemeStartCounter = function( end_value ) { 234 var this_obj = $(this)[0].element; 235 var exec_tween = true; 236 237 Number.prototype.numberFormat = function(decimals, dec_point, thousands_sep) { 238 dec_point = typeof dec_point !== 'undefined' ? dec_point : ','; 239 thousands_sep = typeof thousands_sep !== 'undefined' ? thousands_sep : '.'; 240 241 var parts = this.toFixed(decimals).split('.'); 242 parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, thousands_sep); 243 244 return parts.join(dec_point); 245 }; 246 247 var counter = { valor: 0, }; 248 249 TweenMax.to( 250 counter, 251 3, 252 { 253 valor: parseInt(end_value), 254 onUpdate: function () { 255 if ( exec_tween ) 256 $(this_obj).text( counter.valor.numberFormat(0,',','.') ); 257 }, 258 ease: Circ.easeOut, 259 repeat: 0, 260 } 261 ); 262 }; 263 264})( jQuery ); 265 266 267// <!-- *********** buscador google ************* --> 268(function() { var cx = 'partner-pub-2777412180607813:ttskh4f1f5p'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); 269 270//<!-- ****** facebook buttons ********* --> 271(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = '//connect.facebook.net/es_ES/all.js#xfbml=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
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.