PageSourceSearch

https://grupormultimedio.com/wp-content/themes/republica-34/includes/js/theme-scripts.js?ver=1706415481

js grupormultimedio.com collected 2026-10-02 10:58:57 UTC 3,827 bytes, 98 lines download raw bytes

1/* 19/1/2023 Se deshabilito la carga de datos de Covid */
2jQuery(document).ready(function ($) {
3    $('.newsticker').find('li:first-child').addClass('active');
4    setInterval(function () {
5        var active = $('.newsticker').find('li.active'),
6            next = active.next();
7        if (!next.length) {
8            next = $('.newsticker').find('li:first');
9        }
10        active.removeClass('active');
11        next.addClass('active').fadeIn();
12
13    }, 8000);
14
15    var covid_data_api_url = 'https://api.covid19api.com/total/country/uruguay';
16    /*$.get(covid_data_api_url, function (covid_data) {
17        var lastRecord = covid_data.pop();
18        var confirmed = '<li>Casos confirmados:<br /><span>' + lastRecord.Confirmed + '</span></li>';
19        var active = '<li>Casos activos:<br /><span>' + lastRecord.Active + '</span></li>';
20        var recovered = '<li>Casos recuperados:<br /><span>' + lastRecord.Recovered + '</span></li>';
21        var deaths = '<li>Fallecidos:<br /><span>' + lastRecord.Deaths + '</span></li>';
22
23        $('#datos-coronavirus .slides').append(confirmed);
24        $('#datos-coronavirus .slides').append(active);
25        $('#datos-coronavirus .slides').append(recovered);
26        $('#datos-coronavirus .slides').append(deaths);
27    });*/
28    $(window).load(function () {
29        $('.slider-covid').flexslider({
30            controlNav: false,
31            directionNav: false
32        });
33        $('.flexslider.programas-radio').flexslider({
34            animation: "slide",
35            animationLoop: true,
36            directionNav: false,
37            controlNav: false,
38            move: 1,
39            itemWidth: 200,
40            itemMargin: 51
41        });
42    });
43    (function () {
44        // store the slider in a local variable
45        var $window = $(window),
46            flexslider = { vars: {} };
47
48        // tiny helper function to add breakpoints
49        function getGridSize() {
50            return (window.innerWidth < 600) ? 1 :
51                (window.innerWidth < 900) ? 3 : 4;
52        }
53
54        $window.load(function () {
55            $('.flexslider.programas-radio').flexslider({
56                animation: "slide",
57                animationLoop: true,
58                directionNav: false,
59                controlNav: false,
60                move: 1,
61                itemWidth: 200,
62                itemMargin: 51,
63                minItems: getGridSize(), // use function to pull in initial value
64                maxItems: getGridSize(), // use function to pull in initial value
65            });
66        });
67
68        // check grid size on resize event
69        $window.resize(function () {
70            var gridSize = getGridSize();
71
72            flexslider.vars.minItems = gridSize;
73            flexslider.vars.maxItems = gridSize;
74        });
75    }());
76
77    $.ajax({
78        type: 'POST',
79        url: dlr_object.ajaxurl,
80        data: {
81            action: 'dlr_weather_action',
82        },
83        success: function (result) {
84            var weather_data = result.data;
85            if (undefined !== weather_data) {
86                //$('#clima .hum').html(weather_data.main.humidity);
87                //$('#clima .temp').html(Math.round(weather_data.main.temp - 273.15));
88                var icon_url = 'https://openweathermap.org/img/wn/' + weather_data.weather[0].icon + '@2x.png';
89                $('#dlr_weather .icon').html('<img src="' + icon_url + '" />');
90                $('#dlr_weather .temp').html(Math.round(weather_data.main.temp - 273.15) + '&deg;C');
91                $('#dlr_weather .hum').html(weather_data.main.humidity + '%');
92    
93                //$('#clima .img').html('<img src="' + icon_url + '" width="18px" height="18px" />');
94                $('#header_weather').prop('title', weather_data.weather[0].description);
95            }
96        }
97    });
98});

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.