PageSourceSearch

https://infoboadilla.com/resources/myJS/web/diaryDetail.js?v=95

js infoboadilla.com collected 2026-10-02 14:05:08 UTC 5,307 bytes, 123 lines download raw bytes

1
2$(document).ready(function(){
3
4    $('#galeria').lightSlider({
5        gallery: false,
6        item: 1,
7        loop: true,
8        auto: true,
9        slideMargin: 0,
10        thumbItem: 5,
11        pauseOnHover: true,
12        adaptiveHeight: true,
13        galleryMargin: 0
14    });
15
16    //cogemos el formulario de comentar en la noticia antes de enviarlo
17    $("#commentNews").submit(function(event) {
18        event.preventDefault();
19        grecaptcha.ready(function() {
20            grecaptcha.execute('6Ld4GUcaAAAAAClqh4-L4G9aP-vQEDNPsfJLpd3J', {action: 'submit'}).then(function(token) {
21
22                var comment_news_id = $('#comment_news_id').val();
23                var comment_title = $('#comment_title').val();
24                var comment_name = $('#comment_name').val();
25                var comment_email = $('#comment_email').val();
26                var comment_description = $('#comment_description').val();
27
28                if (comment_description === ""){
29                    notify_msj("Escriba un comentario", true);
30                    return;
31                }
32                if (comment_title === ""){
33                    notify_msj("Escriba un título", true);
34                    return;
35                }
36                $('#modal_comment_news').modal('close');
37                $.ajax({
38                    type: 'POST',
39                    url:'ajax/commentNews',
40                    datatype: 'json' ,
41                    data: {'news_id': comment_news_id, 'comment_title': comment_title, 'comment_description': comment_description,
42                        'comment_name': comment_name, 'comment_email': comment_email, 'g-recaptcha-response' : token},
43                    success:function(data){
44                        if (data != undefined && data != "") {
45                            data = JSON.parse(data);
46                            if (data.error_code == 0){
47                                $('#commentNews')[0].reset();
48                                notify_msj("<h5>¡Muchas gracias!</h5><br/><p>Tu comentario ha sido enviado correctamente.</p><p>En breve recibirás un email confirmando su publicación.</p>", true);
49                            } else {
50                                if (data.error_msg != ""){
51                                    notify_msj(data.error_msg, true);
52                                } else {
53                                    notify_msj("Se ha producido un error al enviar los datos", true);
54                                }
55                            }
56                        }
57                    },
58                    error:function(data){
59                    }
60                });
61            });
62        });
63    });
64
65    var calendar = new VanillaCalendar({
66        selector: "#myCalendar",
67        pastDates: true,
68        months:    ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
69        shortWeekday: ['Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab', 'Dom'],
70        onSelect: function (data, element) {
71            window.location.href='agenda-fechas/'+data.date+'/1';
72        }
73    });
74
75
76    $('#btn_date_1').css("background-color", "#01b4f7");
77    $('#btn_date_1_mv').css("background-color", "#01b4f7");
78});
79
80function showDates(id){
81    if (id == 1) {
82        $('#date_1').show();
83        $('#date_2').hide();
84        $('#date_3').hide();
85        $('#btn_date_1').css("background-color", "#01b4f7");
86        $('#btn_date_2').css("background-color", "transparent");
87        $('#btn_date_3').css("background-color", "transparent");
88        $('#btn_date_1_mv').css("background-color", "#01b4f7");
89        $('#btn_date_2_mv').css("background-color", "transparent");
90        $('#btn_date_3_mv').css("background-color", "transparent");
91    } else if (id == 2) {
92        $('#date_1').hide();
93        $('#date_2').show();
94        $('#date_3').hide();
95        $('#btn_date_1').css("background-color", "transparent");
96        $('#btn_date_2').css("background-color", "#01b4f7");
97        $('#btn_date_3').css("background-color", "transparent");
98        $('#btn_date_1_mv').css("background-color", "transparent");
99        $('#btn_date_2_mv').css("background-color", "#01b4f7");
100        $('#btn_date_3_mv').css("background-color", "transparent");
101    } else if (id == 3) {
102        $('#date_1').hide();
103        $('#date_2').hide();
104        $('#date_3').show();
105        $('#btn_date_1').css("background-color", "transparent");
106        $('#btn_date_2').css("background-color", "transparent");
107        $('#btn_date_3').css("background-color", "#01b4f7");
108        $('#btn_date_1_mv').css("background-color", "transparent");
109        $('#btn_date_2_mv').css("background-color", "transparent");
110        $('#btn_date_3_mv').css("background-color", "#01b4f7");
111    } else if (id == 4) {
112        $('#date_1').hide();
113        $('#date_2').hide();
114        $('#date_3').hide();
115        $('#btn_date_1').css("background-color", "transparent");
116        $('#btn_date_2').css("background-color", "transparent");
117        $('#btn_date_3').css("background-color", "transparent");
118        $('#btn_date_1_mv').css("background-color", "transparent");
119        $('#btn_date_2_mv').css("background-color", "transparent");
120        $('#btn_date_3_mv').css("background-color", "transparent");
121    }
122}
123

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.