PageSourceSearch

https://www.dolni-nemci.cz/system/js.js?v=1790981816

js dolni-nemci.cz collected 2026-10-02 22:57:16 UTC 4,339 bytes, 159 lines download raw bytes

1  // cookie
2  
3  function doOnce() {
4    if (document.cookie.replace(/(?:(?:^|.*;\s*)akce\s*\=\s*([^;]*).*$)|^.*$/, "$1") !== "true") {
5      document.cookie = "akce=true; max-age=600 ;path=/;";
6        $('#pop_akce').trigger('click');
7      }
8  }
9
10$(document).ready(function(){
11
12var kat;
13
14$('#pmi-'+kat).toggleClass('hidden');
15                                                                                                                                                                    
16// smooth scroll
17
18$('a[href^="#"]').on('click',function (e) {e.preventDefault();
19var target = this.hash,
20$target = $(target);
21$('html, body').stop().animate({
22'scrollTop': $target.offset().top-100
23}, 900, 'swing', function () {
24});});
25
26var contentHeight = $('#content-left').height();
27if(contentHeight < 1300) {
28      $('#fotobox').addClass('hidden');
29  }
30
31});
32
33// scroll menu
34
35  $(window).scroll(function() {
36
37      if ($(window).scrollTop() >= 400 ){
38          $('#menu-znak-small').fadeIn();
39      }
40
41      else {
42          $('#menu-znak-small').fadeOut();
43      }
44
45        if ($(window).scrollTop() >= 430 ){			
46          $('#main-menu').removeClass('absolute');
47          $('#menu-line').removeClass('absolute');
48          $('#menu-line').removeClass('round');
49          $('#menu-line').css('width','100%');
50          $('#main-menu').addClass('fixed');
51          $('#menu-line').addClass('fixed');  
52      }
53  
54      else {
55          $('#main-menu').addClass('absolute');
56          $('#menu-line').addClass('absolute');
57          $('#main-menu').removeClass('fixed');
58          $('#menu-line').removeClass('fixed');
59          $('#menu-line').addClass('round');
60          $('#menu-line').css('width','1280px');
61      }
62
63  
64  });
65
66// hlavní menu
67  
68    if (matchMedia('only screen and (min-width: 1000px)').matches) {
69
70      function hide_menu() {
71          $('.pop-menu-box').hide();
72          $('.main-menu-item-white').removeClass('red');
73          $('.main-menu-item-white-last').removeClass('red');
74      }
75      
76      function show_menu(kat) {
77          $('#pmi-'+kat).finish();
78          $('#mmi-'+kat).toggleClass('red');
79          $('#pmi-'+kat).slideDown(150,'swing');
80          } 
81          
82    }
83
84  else {
85
86      function show_menu_mobile() {
87
88          $('.nav-mobile').toggleClass('nav-mobile-hidden');
89
90      }
91
92  }
93
94  // SLIDE
95
96  $("#slideshow > div:gt(0)").hide();
97
98  setInterval(function() { 
99  $('#slideshow > div:first')
100      .fadeOut(1000)
101      .next()
102      .fadeIn(1000)
103      .end()
104      .appendTo('#slideshow');
105  },  3000);
106
107  $("#slideshow-mobile > div:gt(0)").hide();
108
109  setInterval(function() { 
110  $('#slideshow-mobile > div:first')
111      .fadeOut(1000)
112      .next()
113      .fadeIn(1000)
114      .end()
115      .appendTo('#slideshow-mobile');
116  },  3000);
117
118var firefox  = navigator.userAgent.indexOf('Firefox') > -1;
119if (firefox) {
120  $('body').addClass('mozilla');
121}
122
123document.addEventListener("DOMContentLoaded", function() {
124            let playButton = document.getElementById("playButton");
125            let audio = document.getElementById("audioPlayer");
126            
127            if (playButton && audio) {
128                playButton.addEventListener("click", function() {
129                    if (audio.paused) {
130                        audio.play();
131			playButton.src = "../upload/source/content/cimrman/cimrman-pauza.svg";
132			
133                    } else {
134                        audio.pause();
135                        //audio.currentTime = 0;
136			playButton.src = "../upload/source/content/cimrman/cimrman.svg";
137                    }
138                });
139            }
140        });
141
142document.addEventListener("DOMContentLoaded", function() {
143            let playButton = document.getElementById("playButton_2");
144            let audio = document.getElementById("audioPlayer_2");
145            
146            if (playButton && audio) {
147                playButton.addEventListener("click", function() {
148                    if (audio.paused) {
149                        audio.play();
150			playButton.src = "../upload/source/content/cimrman/cimrman-pauza_2.svg";
151			
152                    } else {
153                        audio.pause();
154                        //audio.currentTime = 0;
155			playButton.src = "../upload/source/content/cimrman/cimrman_2.svg";
156                    }
157                });
158            }
159        });

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.