PageSourceSearch

https://minagri.gob.cl/wp-content/plugins/ova-events/assets/js/frontend/event.js?ver=6.2.8

js minagri.gob.cl collected 2026-10-02 07:37:08 UTC 2,768 bytes, 98 lines download raw bytes

1(function($){
2   "use strict";
3   $(document).ready(function(){
4
5      /***** Map *****/
6      function initialize() {
7         var lat = parseFloat( $("#location").data('lat') );
8         var lng = parseFloat( $("#location").data('lng') );
9         var address = $("#location").data('address');
10         var zoom = parseInt( $("#location").data('zoom') );
11
12         var infoWindow = new google.maps.InfoWindow();
13
14         var loc = {lat: lat, lng: lng};
15
16         var map = new google.maps.Map(document.getElementById('location'), {
17            zoom: zoom,
18            center: loc,
19            scrollwheel: false
20         });
21
22         var marker = new google.maps.Marker({
23            position: loc,
24            map: map
25         });    
26
27         google.maps.event.addListener(marker, 'click', (function(marker) {
28            return function() {
29               infoWindow.setContent(address);
30               infoWindow.open(map, marker);
31            }
32         })(marker));
33
34      }
35
36      
37      if( typeof google !== 'undefined' && $(".single-event #location").length > 0 ){ 
38         google.maps.event.addDomListener(window, "load", initialize);
39      }
40      
41
42
43      /***** Gallery PrettyPhoto *****/
44      if( $(".gallery-items a[data-rel^='prettyPhoto']").length > 0 ){
45         $(".gallery-items a[data-rel^='prettyPhoto']").prettyPhoto();
46      }
47
48
49      /***** Date Time Picker *****/
50      $(".ovaev_start_date_search, .ovaev_end_date_search").each(function(){
51         if($().datetimepicker) {
52            var date = $(this).data('date');
53            var lang = $(this).data('lang');
54            $(this).datetimepicker({
55               format: date,
56               timepicker:false
57            });
58            $.datetimepicker.setLocale(lang);
59         }
60      });
61
62      $(".slide-event-feature").each(function(){
63        $(this).owlCarousel({
64            loop:true,
65            margin:80,
66            nav:false,
67            dots:false,
68            autoplay:true,
69            autoplayTimeout:4000,
70            autoplayHoverPause:true,
71            responsive:{
72                0:{
73                    items:1
74                },
75                600:{
76                    items:1
77                },
78                1000:{
79                    items:1
80                }
81            }
82        });
83      })
84
85
86      $('.search_archive_event #ovaev_type').on('change', function(){
87         $(this).closest('.search_archive_event').find('.select2-selection__rendered').css('color', '#333');
88      });
89
90
91      $('.single_event .event_content .tab-Location ul.nav li.nav-item:first-child a').addClass('active');
92      $('.single_event .event_content .tab-Location .tab-content .tab-pane:first-child').addClass('active').removeClass('fade');
93
94
95
96   });
97
98})(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.