PageSourceSearch

https://www.ayuntamientodetias.es/wp-content/cache/min/1/wp-conten…/icongrid/icongrid.js?ver=1780902055

js ayuntamientodetias.es collected 2026-10-02 10:02:36 UTC 2,382 bytes, 9 lines download raw bytes

1(function($){"use strict";$.fn.avia_sc_icongrid=function(options){return this.each(function(){var icongrid_container=$(this),icongrid=icongrid_container.find('.avia-icongrid'),icongrid_cards=icongrid.find('.av-icon-cell-item'),icongrid_id='#'+icongrid.attr('id'),min_height=icongrid_container.data('min-height'),methods={};icongrid_cards.on('touchend',function(e){var current=$(this),container=current.closest('.avia-icongrid');if(current.hasClass('avia-hover')){container.find('.av-icon-cell-item').removeClass('avia-hover')}else{container.find('.av-icon-cell-item').removeClass('avia-hover');current.addClass('avia-hover')}
2var links=current.find('a');if(links.length>0){links.off('touchend.aviaIconGridLink').on('touchend.aviaIconGridLink',function(e){e.preventDefault();var link=$(this),container=link.closest('.av-icon-cell-item');if(!container.hasClass('avia-hover')){return}
3e.stopImmediatePropagation();link.css('opacity',0.5);window.location.href=link.attr('href')})}
4e.preventDefault();e.stopImmediatePropagation()});if(icongrid.hasClass('avia_flip_force_close')){$('body').on('touchend',function(e){var flipboxes=$('.avia-icongrid.avia_flip_force_close');flipboxes.each(function(){var flipbox=$(this);flipbox.find('.av-icon-cell-item').removeClass('avia-hover')})})}
5methods={buildIconGrid:function(){this.setMinHeight($(icongrid_id+' li article'))},setMinHeight:function(els){if(els.length<2){return}
6var elsHeights=new Array(),front=[],back=[];els.css('min-height','0').each(function(i){var current=$(this);if(icongrid.hasClass('avia-icongrid-flipbox')){front=current.find('.avia-icongrid-front .avia-icongrid-inner');back=current.find('.avia-icongrid-flipback .avia-icongrid-inner')}else{front=current.find('.avia-icongrid-front .avia-icongrid-inner');back=current.find('.avia-icongrid-content');elsHeights.push(current.outerHeight(!0))}
7if(front.length){elsHeights.push(front.outerHeight(!0))}
8if(back.length){elsHeights.push(back.outerHeight(!0))}});if('undefined'!=typeof(min_height)){var i=parseInt(min_height);if(!isNaN(i)){elsHeights.push(i)}}
9var largest=Math.max.apply(null,elsHeights);els.css('min-height',largest);if(icongrid.hasClass('avia-icongrid-tooltip')){var elWidth=els.first().outerWidth(!0);if(largest>elWidth){els.css('min-height',elWidth)}}}};methods.buildIconGrid();$(window).on('debouncedresize',function(){methods.buildIconGrid()})})}}(jQuery))

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.