PageSourceSearch

https://cdn-sp.radionacional.com.ar/wp-content/themes/wiles/js/global.js?ver=7.1.2

js radionacional.com.ar collected 2026-09-24 18:17:24 UTC 2,577 bytes, 97 lines download raw bytes

1jQuery(document).ready(function($) {
2
3
4    // Toggle mobile menu
5    $(".nav-toggle").on("click", function() {
6        $(this).toggleClass("active");
7        $(".mobile-menu").slideToggle();
8        if ($(".search-toggle").hasClass("active")) {
9            $(".search-toggle").removeClass("active");
10            $(".search-container").slideToggle();
11        }
12        return false;
13    });
14
15
16    // Toggle search container
17    $(".search-toggle").on("click", function() {
18        $(this).toggleClass("active");
19        $(".search-container").slideToggle();
20        if ($(".nav-toggle").hasClass("active")) {
21            $(".nav-toggle").removeClass("active");
22            $(".mobile-menu").slideToggle();
23        }
24        return false;
25    });
26
27
28    // Hide mobile menu/search container at resize
29    $(window).resize(function() {
30
31        if ($(window).width() >= 850) {
32            $(".nav-toggle").removeClass("active");
33            $('.mobile-menu').hide();
34        }
35
36        if ($(window).width() <= 850) {
37            $(".search-toggle").removeClass("active");
38            $('.search-container').hide();
39        }
40
41    });
42
43
44    // Dropdown menus on touch devices
45    $('.primary-menu li:has(ul)').doubleTapToGo();
46    $('.secondary-menu li:has(ul)').doubleTapToGo();
47
48
49    // Load Flexslider
50    $(".flexslider").flexslider({
51        animation: "slide",
52        controlNav: false,
53        prevText: "",
54        nextText: "",
55        smoothHeight: true
56    });
57
58
59    // smooth scroll to the top	
60    jQuery(document).ready(function($) {
61        $('.to-the-top').click(function() {
62            $("html, body").animate({
63                scrollTop: 0
64            }, 500);
65            return false;
66        });
67    });
68
69
70    // resize videos after container
71    var vidSelector = ".post iframe, .post object, .post video";
72    var resizeVideo = function(sSel) {
73        $(sSel).each(function() {
74            var $video = $(this),
75                $container = $video.parent(),
76                iTargetWidth = $container.width();
77
78            if (!$video.attr("data-origwidth")) {
79                $video.attr("data-origwidth", $video.attr("width"));
80                $video.attr("data-origheight", $video.attr("height"));
81            }
82
83            var ratio = iTargetWidth / $video.attr("data-origwidth");
84
85            $video.css("width", iTargetWidth + "px");
86            $video.css("height", ($video.attr("data-origheight") * ratio) + "px");
87        });
88    };
89
90    resizeVideo(vidSelector);
91
92    $(window).resize(function() {
93        resizeVideo(vidSelector);
94    });
95
96
97});

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.