PageSourceSearch

https://www.knihyprekazdeho.sk/js/script14.js

js knihyprekazdeho.sk collected 2026-10-03 23:19:41 UTC 9,293 bytes, 188 lines download raw bytes

1var mq = window.matchMedia("all and (max-width: 768px)"),
2    mq2 = window.matchMedia("all and (max-width: 991px)"),
3    mq3 = window.matchMedia("all and (max-width: 1200px)"),
4    mq4 = window.matchMedia("all and (max-width: 384px)"),
5    mq5 = window.matchMedia("all and (max-width: 623px)");
6if (mq.addListener(function (t) {
7    if (t.matches) {
8        $("#stick").height();
9        $("#subscribe .form-group").addClass("pull-left")
10    } else {
11        $("#hamburger-bg").fadeOut();
12        $("#stick").height();
13        $("#subscribe .form-group").removeClass("pull-left"), $("#stick").removeClass("static")
14    }
15}), mq2.addListener(function (t) {
16    if (t.matches) {
17        $("#stick").height();
18        $(".buytoo .book:nth-child(1)").css({
19            display: "table-cell"
20        }), $(".buytoo .book:nth-child(2)").css({
21            display: "table-cell"
22        }), $(".buytoo .book:nth-child(3)").css({
23            display: "table-cell"
24        }), $(".buytoo .book:nth-child(4)").hide(), $(".buytoo .book:nth-child(5)").hide()
25    } else {
26        $("#stick").height();
27        $(".buytoo .book:nth-child(1)").css({
28            display: "table-cell"
29        }), $(".buytoo .book:nth-child(2)").css({
30            display: "table-cell"
31        }), $(".buytoo .book:nth-child(3)").css({
32            display: "table-cell"
33        }), $(".buytoo .book:nth-child(4)").css({
34            display: "table-cell"
35        }), $(".buytoo .book:nth-child(5)").css({
36            display: "table-cell"
37        })
38    }
39}), mq3.addListener(function (t) {
40    if (t.matches) $("#stick").height();
41    else $("#stick").height()
42}), mq4.addListener(function (t) {
43    if (t.matches) $("#stick").height();
44    else $("#stick").height()
45}), mq5.addListener(function (t) {
46    if (t.matches) {
47        $("#stick").height();
48        $(".buytoo .book:nth-child(1)").css({
49            display: "table-cell"
50        }), $(".buytoo .book:nth-child(2)").css({
51            display: "table-cell"
52        }), $(".buytoo .book:nth-child(3)").hide(), $(".buytoo .book:nth-child(4)").hide(), $(".buytoo .book:nth-child(5)").hide()
53    } else $(".buytoo .glyphicon-menu-left").hide(), $(".buytoo .book:nth-child(1)").css({
54        display: "table-cell"
55    }), $(".buytoo .book:nth-child(2)").css({
56        display: "table-cell"
57    }), $(".buytoo .book:nth-child(3)").css({
58        display: "table-cell"
59    }), $(".buytoo .book:nth-child(4)").hide(), $(".buytoo .book:nth-child(5)").hide()
60}), mq.matches) {
61    var fixHeight = $("#stick").height();
62    $("#subscribe .form-group").addClass("pull-left")
63} else fixHeight = $("#stick").height();
64$(document).on("mouseenter", "#categories .selcategory", function () {
65    $(this).find(".mega-menu").slideDown(100)
66}), $(document).on("mouseleave", "#categories .selcategory", function () {
67    $(this).find(".mega-menu").hide()
68}), $(document).on("mouseenter", "#categories .category", function () {
69    $(this).find(".mega-menu").slideDown(100);
70    var t = $(this).find("img"),
71        e = t.attr("src").split(".");
72    t.attr("srcset", e[0] + "-hover@2x." + e[1] + " 2x"), e = e[0] + "-hover." + e[1], t.attr("src", e);
73
74    if ($(this).attr("id") == 'c1') {
75        $(this).css({ backgroundColor: "#fff", color: "#e21f26" });
76    } else {
77        if ($(this).attr("id") == 'c10') {
78            $(this).css({ backgroundColor: "#009230", color: "#000" })
79        } else {
80            $(this).css({ backgroundColor: "#009ee0", color: "#fff" })
81        }
82    }
83}), $(document).on("mouseleave", "#categories .category", function () {
84    $(this).find(".mega-menu").hide();
85    var t = $(this).find("img"),
86        e = t.attr("src"),
87        i = t.attr("srcset").replace("-hover@2x", ""),
88        o = e.replace("-hover", "");
89    t.attr("src", o), t.attr("srcset", i);
90
91    if ($(this).attr("id") == 'c1') {
92        $(this).css({ backgroundColor: "#e21f26", color: "#fff" })
93    } else {
94        $(this).css({ backgroundColor: "#fff", color: "#009ee0" })
95    }
96});
97var itemToggle = !1;
98$("#hamburger-menu .item").click(function () {
99    $(this).parent().find(".sub-menu").slideToggle(500);
100    var t = $(this).parent().find(".pull-right img");
101    0 == itemToggle ? (itemToggle = !0, t.attr("src", "/img/ham-menu-sub.png")) : (itemToggle = !1, t.attr("src", "/img/ham-menu-hover.png"))
102}), $("#hamburger-menu .item").parent().mouseenter(function () {
103    if ($(this).attr("id") != 'vkp') {
104        var t = $(this).find(".item > img"),
105        e = t.attr("src").split(".");
106        t.attr("srcset", e[0] + "-hover@2x." + e[1] + " 2x"), e = e[0] + "-hover." + e[1], t.attr("src", e), $(this).find(".pull-right img").attr("src", "/img/ham-menu-hover.png")
107    }
108}), $("#hamburger-menu .item").parent().mouseleave(function () {
109    $(this).find(".sub-menu").slideUp();
110    if ($(this).attr("id") != 'vkp') {
111        var t = $(this).find(".item > img"),
112        e = t.attr("src"),
113        i = t.attr("srcset"),
114        o = e.replace("-hover", ""),
115        s = i.replace("-hover@2x", "");
116        t.attr("src", o), t.attr("srcset", s), $(this).find(".pull-right img").attr("src", "/img/ham-menu.png")
117    }
118}), $("#display-block").click(function () {
119    $(".discount").removeClass("discount").addClass("discount-block"), $(this).css({
120        backgroundColor: "#009ee0",
121        color: "#ffffff"
122    }), $("#display-table").css({
123        backgroundColor: "#ebebeb",
124        color: "#555555"
125    })
126}), $("#display-table").click(function () {
127    $(".discount-block").addClass("discount").removeClass("discount-block"), $(this).css({
128        backgroundColor: "#009ee0",
129        color: "#ffffff"
130    }), $("#display-block").css({
131        backgroundColor: "#ebebeb",
132        color: "#555555"
133    })
134});
135var staticToggle = !1,
136    staticLoginToggle = !1;
137
138function slide(t, e) {
139    var i, o;
140    ($(".buytoo .glyphicon-menu-left").fadeIn(), 1 == t) ? (6 == (o = parseInt(e) + parseInt(t)) ? o = 1 : 0 == o && (o = 5), 6 == (i = parseInt(o) + parseInt(t)) ? i = 1 : 0 == i && (i = 5)) : (6 == (i = parseInt(e) + parseInt(t)) ? i = 1 : 0 == i && (i = 5), 6 == (o = parseInt(i) + parseInt(t)) ? o = 1 : 0 == o && (o = 5));
141    $(".buytoo .container .book").hide(), $(".buytoo .container .book:nth-child(" + o + ")").fadeIn().css({
142        display: "table-cell"
143    }), $(".buytoo .container .book:nth-child(" + i + ")").fadeIn().css({
144        display: "table-cell"
145    });
146    var s = i,
147        a = o;
148    $(".glyphicon-menu-left").attr("data-count", a), $(".glyphicon-menu-right").attr("data-count", s)
149}
150$("#hamburger").click(function () {
151    $("#hamburger-menu").slideToggle(500);
152    var t = $(this).find("img");
153    0 == staticToggle ? (staticToggle = !0, t.attr("src", "/img/hamburger-menu-hover.png"), $("#stick-fix").hide(), staticLoginToggle = !1, $("#login img").attr("src", "/img/profile-menu.png")) : (staticToggle = !1, t.attr("src", "/img/[email protected]"), $("#stick-fix").show())
154}), $("#hamburger-bg").click(function () {
155    $("#hamburger-menu").slideUp(500), $("#login img").attr("src", "/img/profile-menu.png"), $("#hamburger img").attr("src", "/img/[email protected]"), staticToggle = !1, staticLoginToggle = !1
156}), $(".listener").click(function () {
157    1 == staticToggle || 1 == staticLoginToggle ? ($("#stick").removeClass("static"), $("#stick").addClass("static"), $("html, body").animate({
158        scrollTop: 0
159    }, 500), $("#hamburger-bg").fadeIn(1)) : ($("#stick").removeClass("static"), $("#hamburger-bg").fadeOut(500))
160}), $("#mobile-book-info li").click(function () {
161    $("#mobile-book-info li").removeClass("active"), $(this).addClass("active");
162    var t = $(this).attr("data-switch");
163    "info" == t ? ($(".informacie").show(), $(".parametre").hide(), $(".preddost").hide()) : "param" == t ? ($(".informacie").hide(), $(".parametre").show(), $(".preddost").hide()) : "pred" == t && ($(".informacie").hide(), $(".parametre").hide(), $(".preddost").show())
164}), $(".fb-api .pull-right").click(function () {
165    $(".fb-api").slideUp()
166}), $("#FakAdr").click(function () {
167    $("#FakAdrForm").toggle()
168}), $("#viac-info-link").click(function () {
169    return $("html, body").animate({
170        scrollTop: $($.attr(this, "href")).offset().top - fixHeight
171    }, 1e3), !1
172}), $("#pridat-recenziu").click(function () {
173    return $("html, body").animate({
174        scrollTop: $($.attr(this, "href")).offset().top - fixHeight
175    }, 1e3), !1
176}), $("#pridat-recenziu-2").click(function () {
177    return $("html, body").animate({
178        scrollTop: $($.attr(this, "href")).offset().top - fixHeight
179    }, 1e3), !1
180}), $(".buytoo span.glyphicon").click(function () { }), $(".buytoo .glyphicon").click(function () {
181    slide($(this).attr("data-direction"), $(this).attr("data-count"))
182}), $(function () {
183    $('[data-toggle="tooltip"]').tooltip({
184        title: "<li style='font-size:1.2em;border-right:0;'>E-MAIL :<br /><b class='yellow'>[email protected]</b></li><li style='font-size:1.2em;'>TELEF&#211;N :<br /><b class='yellow'>+421 915 800 804</b><br />( od 8:00 do 17:00)</li>",
185        html: !0,
186        placement: "bottom"
187    })
188});

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.