PageSourceSearch

https://www.sannicolasvalencia.com/wp-content/plugins/elementor-addon/assets/js/agenda-script-1.js?ver=7.1.2

js sannicolasvalencia.com collected 2026-10-02 04:58:29 UTC 2,877 bytes, 79 lines download raw bytes

1jQuery(document).ready(function(){
2    //console.log( "ready!" );
3    setTimeout( function(){ 
4        AW_selectAllCelebraciones();
5    }, 1500);
6});
7
8jQuery('#agenda-widget-dates-select').change(function(){        
9    var date = jQuery(this).val();
10    var tag = jQuery('#agenda-widget-tags-select').val();
11    //console.log("Requesting date: " + date + " tag: " + tag);
12    AW_setLoading();
13    setTimeout( function(){ 
14        AW_request(date, tag);
15    }, 1000);    
16});
17
18jQuery('#agenda-widget-tags-select').change(function(){
19    var date = jQuery('#agenda-widget-dates-select').val();
20    var tag = jQuery(this).val();
21    //console.log("Requesting tag: " + tag);
22    AW_setLoading();
23    setTimeout( function(){ 
24        AW_request(date, tag);
25    }, 1000);    
26});
27
28function AW_request(date, tag) {    
29    jQuery.ajax({
30        type:'POST',
31        url:'/wp-admin/admin-ajax.php',
32        data: {
33            action: 'agenda_dates_selector_request',
34            date: date + ' 00:00:00',
35            tag: tag
36        },
37        success: function(response) {
38            //console.log(response);
39            jQuery("#agenda-widget-posts").empty().append(response);
40        },
41        error: function (request, status, error) {
42            jQuery("#agenda-widget-posts").empty().append('<div class="agenda-widget-post"><div class="agenda-widget-post-content"><p class="agenda-widget-no-content">No se han encontrado próximas celebraciones<p></div></div>');
43        }
44    });
45}
46
47function AW_selectToday() {
48    var now = new Date();
49    var day = ("0" + now.getDate()).slice(-2);
50    var month = ("0" + (now.getMonth() + 1)).slice(-2);
51    var today = now.getFullYear()+"-"+(month)+"-"+(day);
52    jQuery('#agenda-widget-dates-select').val(today).trigger("change");
53}
54
55function AW_selectAllCelebraciones() {
56    var tag_id = 0;    
57    jQuery('#agenda-widget-tags-select').val(tag_id).trigger("change");
58}
59
60function AW_setLoading() {
61    jQuery("#agenda-widget-posts").empty().append('<div class="lds-ring"><div></div><div></div><div></div><div></div></div>');    
62}
63
64function AW_hoverNormalLink(element, type) {  
65    if(type=='normal') {
66        jQuery(element).find('.agenda-widget-link-img').first().attr('src', '/wp-content/uploads/2024/02/arrow-down-blue.png');
67    }  else if(type=='video') {
68        jQuery(element).find('.agenda-widget-link-img').first().attr('src', '/wp-content/uploads/2024/02/video-blue.png');
69    }
70    
71}
72  
73function AW_unhoverNormalLink(element, type) {
74    if(type=='normal') {
75        jQuery(element).find('.agenda-widget-link-img').first().attr('src', '/wp-content/uploads/2024/02/arrow-down.png');
76    }  else if(type=='video') {
77        jQuery(element).find('.agenda-widget-link-img').first().attr('src', '/wp-content/uploads/2024/02/video.png');
78    }
79}

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.