PageSourceSearch

https://fundacioncorazonverde.org/wp-content/themes/cverdetheme/js/custom.js?ver=1.0.0

js fundacioncorazonverde.org collected 2026-10-04 13:24:47 UTC 3,276 bytes, 99 lines download raw bytes

1(function($){
2    $( document ).ready(function () {
3        // bind filter button click
4        $('#btn-postulacion').click(function(){
5            $( ".FormPremio" ).toggle( 'slow' ) ;
6        });
7        
8
9        // options aliados filter
10        var $grid = $('.aliados').isotope({        
11            itemSelector: '.aliado',
12            percentPosition: true,
13            layoutMode: 'fitRows',
14            filter: '.nacional',
15            // masonry: {
16            //     // use element for option
17            //     columnWidth: '.grid-sizer'
18            // }
19        });
20        
21        // layout Isotope after each image loads
22        $grid.imagesLoaded().progress( function() {
23            $grid.isotope('layout');
24        });
25
26        // bind filter button click
27        $('#filters').on( 'click', 'li', function() {
28            $(this).toggleClass("active").siblings().removeClass("active");
29            var filterValue = $( this ).attr('data-filter');
30            $grid.isotope({ filter: filterValue });
31        });
32
33        
34         // options
35         var $grid2 = $('.restaurantes').isotope({        
36            itemSelector: '.restaurante',
37            percentPosition: true,
38            layoutMode: 'fitRows',
39            filter: '.alimentarte',
40        });
41        
42        // layout Isotope after each image loads
43        $grid2.imagesLoaded().progress( function() {
44            $grid2.isotope('layout');
45        });
46
47        // bind filter button click
48        $('#restauraliados').on( 'click', 'li', function() {
49            $(this).toggleClass("active").siblings().removeClass("active");
50            var filterValue = $( this ).attr('data-filter');
51            $grid2.isotope({ filter: filterValue });
52        });
53
54    });
55
56
57 
58    jQuery(".producto-id-wc").click(function(event) {
59        event.preventDefault();
60        var autor = jQuery(this).parents(".product--info").find(".autor").text();
61        var obra = jQuery(this).parents(".product--info").find(".product_title").text();
62        
63        setTimeout(function(){
64            jQuery("#form-field-artista").val("Autor: "+ autor);
65            jQuery("#form-field-obra").val("Obra: "+ obra);
66        },300);
67    });
68
69
70    // Toma las ciudades montadas en el listado y genera un select para realizar el filtrado
71    $('.filtercity ul').hide();
72    $('.filtercity ul').after('<select class="ciudad_restauranTour"></select>');
73
74    $('.filtercity ul').find('li').each(function( index ) {
75        var $li_text = $(this).text();
76        if ($li_text == "Santa Marta" ) {
77            var $data_f ="santamarta";
78        } else {
79            var $data_f= $li_text.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
80        }
81        $('.ciudad_restauranTour').append($('<option>', { text: $li_text, value: '.'+$data_f }));
82    });
83    
84    
85    // Filtro de restaurantes participantes en Restaurant tour
86    var $rest_grid = $('.restaurantes-filter  .elementor-section-wrap').isotope({
87        itemSelector: '.restaurantes-filter .restaurante',
88        layoutMode: 'fitRows',
89        filter: '.bogota',
90    });
91
92    $('.ciudad_restauranTour').on( 'change', function() {
93        var filterValue = this.value;
94        $rest_grid.isotope({ filter:filterValue });
95    });
96    
97})(jQuery);
98
99

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.