PageSourceSearch

https://cdn.megaknihy.cz/themes/mk2/assets/js/components/banners.js?ts=17670136591

js megaknihy.cz collected 2026-10-03 21:59:01 UTC 719 bytes, 47 lines download raw bytes

1(function(a,b){
2a.Banners=function(){var a=this;
3if(document.querySelector(this._selectors.banner)){
4
5var b=document.querySelectorAll(this._selectors.link);
6b&&
7b.forEach(function(b){
8b.addEventListener("click",a.redirect.bind(a));
9});
10
11
12}
13},
14
15b.extend(a.Banners.prototype,{
16_selectors:{
17banner:".js-banner",
18link:".js-link"},
19
20
21redirect:function redirect(a){
22var b=a.target;
23b.dataset.url&&(
24location.href=b.dataset.url);
25
26}});
27
28
29})(window,jQuery),
30
31$(function(){
32new Banners;
33}),
34
35$(function(){
36if(document.body.classList.contains("mobile")){
37
38
39
40var a=document.querySelector("#center_column > .banner-container");
41if(a){
42var b=a.getBoundingClientRect().left;
43
44a.style.width="100vw",
45a.style.marginLeft=-b+"px";
46}}
47});

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.