PageSourceSearch

https://mmashorties.cz/themes/default/default.js?r=2

js mmashorties.cz collected 2026-10-02 21:19:49 UTC 6,627 bytes, 152 lines download raw bytes

1/*document.addEventListener("DOMContentLoaded", function(event) { });*/
2/*$(document).ready(function () {
3    $('.custom-select li').click(function () {
4        $(this).parents('.custom-select').find('input[type="hidden"]').val($(this).text());
5        $('.custom-select > span').text($(this).text());
6    });
7});*/
8
9
10//menu responsive
11$(document).ready(function () {
12    $(".header #navicon").click(function () {
13        $("body").toggleClass("fixed");
14        $(".header").toggleClass("show");
15    });
16});
17
18//submenu show
19$(document).ready(function () {
20    $(".header nav > ul > li").mouseover(function () {
21        $(this).addClass("show");
22    });
23});
24$(document).ready(function () {
25    $(".header nav > ul > li").mouseleave(function () {
26        $(this).addClass("hide");
27        $(this).delay(250).queue(function (next) {
28            $(this).removeClass("show"); $(this).removeClass("hide");
29            next();
30        });
31    });
32});
33
34//aside fixing
35$(document).ready(function () {
36    if ($('.cols > aside').outerHeight() > $('.cols > div').outerHeight()) {
37        $(".fixing-area").addClass("no-fixing");
38    }
39    else { ; }
40});
41
42
43$(document).ready(function () {
44    $(window).scroll(function () {
45        fixingArea = $(".fixing-area");
46        if (fixingArea.length) {
47            if ($('.cols > aside').outerHeight() <= $('.cols > div').outerHeight()) {
48                if ($(window).height() > $('.fixing-element').outerHeight()) {
49                    if ($(document).scrollTop() < (fixingArea.offset().top + fixingArea.outerHeight() - $('.fixing-element').height())) {
50                        if ($(document).scrollTop() > (fixingArea.offset().top)) {
51                            $('.fixing-element').addClass("fixed"); $('.fixing-element').removeClass("fixed-end");
52                        } else {
53                            $('.fixing-element').removeClass("fixed");
54                        }
55                    } else
56                        $('.fixing-element').addClass("fixed-end");
57                } else {
58                    if ($(document).scrollTop() < (fixingArea.offset().top + fixingArea.outerHeight() - $('.fixing-element').height())) {
59                        if ($(document).scrollTop() > (fixingArea.offset().top + $('.fixing-element').outerHeight() - $(window).height())) {
60                            $('.fixing-element').addClass("fixed-middle"); $('.fixing-element').removeClass("fixed-end")
61                        } else {
62                            $('.fixing-element').removeClass("fixed-middle");
63                        }
64                    } else
65                        $('.fixing-element').addClass("fixed-end");
66                }
67            }
68        }
69    });
70});
71
72$(document).ready(function () {
73    $(window).scroll(function () {
74        fixingArea = $(".fixing-area2");
75        if (fixingArea.length) {
76            if ($('.cols2 > aside').outerHeight() <= $('.cols2 > div').outerHeight()) {
77                if ($(window).height() > $('.fixing-element2').outerHeight()) {
78                    if ($(document).scrollTop() < (fixingArea.offset().top + fixingArea.outerHeight() - $('.fixing-element2').height())) {
79                        if ($(document).scrollTop() > (fixingArea.offset().top)) {
80                            $('.fixing-element2').addClass("fixed"); $('.fixing-element2').removeClass("fixed-end");
81                        } else {
82                            $('.fixing-element2').removeClass("fixed");
83                        }
84                    } else
85                        $('.fixing-element2').addClass("fixed-end");
86                } else {
87                    if ($(document).scrollTop() < (fixingArea.offset().top + fixingArea.outerHeight() - $('.fixing-element2').height())) {
88                        if ($(document).scrollTop() > (fixingArea.offset().top + $('.fixing-element2').outerHeight() - $(window).height())) {
89                            $('.fixing-element2').addClass("fixed-middle"); $('.fixing-element2').removeClass("fixed-end")
90                        } else {
91                            $('.fixing-element2').removeClass("fixed-middle");
92                        }
93                    } else
94                        $('.fixing-element2').addClass("fixed-end");
95                }
96            }
97        }
98    });
99});
100
101//animation play
102$(window).bind("resize scroll", function (e) {
103    jQuery(".anim").each(function () {
104        if ((jQuery(this).offset().top + jQuery(this).outerHeight()) >
105jQuery(window).scrollTop() && jQuery(this).offset().top <
106(jQuery(window).scrollTop() + jQuery(window).height()))
107            jQuery(this).addClass("play");
108        else jQuery(this).removeClass("play");
109    });
110}).scroll();
111
112
113
114jQuery(document).ready(function () {
115    jQuery("#bt_dalsiClankyHP").click(function () {
116        jQuery(this).attr('data-next', (parseInt(jQuery(this).attr('data-next')) + 1));
117        //console.log('/?ajN=' + jQuery(this).attr('data-next') + (jQuery(this).attr('data-next-cat') !== undefined ? '&ajNK=' + jQuery(this).attr('data-next-cat') : '') + (jQuery(this).attr('data-next-skip') !== undefined && jQuery(this).attr('data-next') == '1' ? '&ajNKV=true' : ''));
118        var hledano = "";
119        try{
120            hledano = new URLSearchParams(window.location.search).get('s') || '';
121        }
122        catch{}
123
124        jQuery.ajax({
125            url: '/?'+ (hledano.length > 0 ? "s="+hledano +"&": "") +'ajN=' + jQuery(this).attr('data-next') + (jQuery(this).attr('data-next-cat') !== undefined ? '&ajNK=' + jQuery(this).attr('data-next-cat') : '') + (jQuery(this).attr('data-next-skip') !== undefined && jQuery(this).attr('data-next') == '1' ? '&ajNKV=true' : ''),
126            success: function (data) {
127                jQuery(data).insertBefore('#bt_dalsiClankyHP');
128                //jQuery("#bt_dalsiClankyHP").parent().parent().find('.news').append(data);
129                jQuery(window).scroll();
130            },
131            error: function (request, error) {
132                console.log("Request: " + request + ", " + error);
133            }
134        });
135    });
136});
137
138
139function clsMod(__typ){
140    $("body").removeClass("fixed" );
141    $(".wndw").addClass("hide" );
142    $(".wndw").delay(500).queue(function(next){
143         $(this).removeClass('show'); $(this).removeClass('hide');
144         next();
145    });
146    jQuery.ajax({
147            url: '/?'+__typ+'=ano',
148            success: function (data) {
149                //alert(data);
150            }
151        });
152}

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.