PageSourceSearch

https://hodnoceniher.cz/material-kit/assets/js/material-kit.js?v=2.0.6?v11

js hodnoceniher.cz collected 2026-09-25 06:07:54 UTC 7,586 bytes, 252 lines download raw bytes

1 //
2 // =========================================================
3 // * Material Kit - v2.0.6
4 // =========================================================
5 //
6 // * Product Page: https://www.creative-tim.com/product/material-kit
7 // * Copyright 2019 Creative Tim (http://www.creative-tim.com)
8 //   Licensed under MIT (https://github.com/creativetimofficial/material-kit/blob/master/LICENSE.md)
9 //
10 //
11 // =========================================================
12 //
13 // * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
15var big_image;
16
17$(document).ready(function() {
18  BrowserDetect.init();
19
20  // Init Material scripts for buttons ripples, inputs animations etc, more info on the next link https://github.com/FezVrasta/bootstrap-material-design#materialjs
21  $('body').bootstrapMaterialDesign();
22
23  window_width = $(window).width();
24
25  $navbar = $('.navbar[color-on-scroll]');
26  scroll_distance = $navbar.attr('color-on-scroll') || 500;
27
28  $navbar_collapse = $('.navbar').find('.navbar-collapse');
29
30  //  Activate the Tooltips
31  $('[data-toggle="tooltip"], [rel="tooltip"]').tooltip();
32
33  // Activate Popovers
34  $('[data-toggle="popover"]').popover();
35
36  if ($('.navbar-color-on-scroll').length != 0) {
37    $(window).on('scroll', materialKit.checkScrollForTransparentNavbar);
38  }
39
40  materialKit.checkScrollForTransparentNavbar();
41
42  if (window_width >= 768) {
43    big_image = $('.page-header[data-parallax="true"]');
44    if (big_image.length != 0) {
45      $(window).on('scroll', materialKit.checkScrollForParallax);
46    }
47
48  }
49
50
51});
52
53$(document).on('click', '.navbar-toggler', function() {
54  $toggle = $(this);
55
56  if (materialKit.misc.navbar_menu_visible == 1) {
57    $('html').removeClass('nav-open');
58    materialKit.misc.navbar_menu_visible = 0;
59    $('#bodyClick').remove();
60    setTimeout(function() {
61      $toggle.removeClass('toggled');
62    }, 550);
63
64    $('html').removeClass('nav-open-absolute');
65  } else {
66    setTimeout(function() {
67      $toggle.addClass('toggled');
68    }, 580);
69
70
71    div = '<div id="bodyClick"></div>';
72    $(div).appendTo("body").click(function() {
73      $('html').removeClass('nav-open');
74
75      if ($('nav').hasClass('navbar-absolute')) {
76        $('html').removeClass('nav-open-absolute');
77      }
78      materialKit.misc.navbar_menu_visible = 0;
79      $('#bodyClick').remove();
80      setTimeout(function() {
81        $toggle.removeClass('toggled');
82      }, 550);
83    });
84
85    if ($('nav').hasClass('navbar-absolute')) {
86      $('html').addClass('nav-open-absolute');
87    }
88
89    $('html').addClass('nav-open');
90    materialKit.misc.navbar_menu_visible = 1;
91  }
92});
93
94materialKit = {
95  misc: {
96    navbar_menu_visible: 0,
97    window_width: 0,
98    transparent: true,
99    fixedTop: false,
100    navbar_initialized: false,
101    isWindow: document.documentMode || /Edge/.test(navigator.userAgent)
102  },
103
104  initFormExtendedDatetimepickers: function() {
105    $('.datetimepicker').datetimepicker({
106      icons: {
107        time: "fa fa-clock-o",
108        date: "fa fa-calendar",
109        up: "fa fa-chevron-up",
110        down: "fa fa-chevron-down",
111        previous: 'fa fa-chevron-left',
112        next: 'fa fa-chevron-right',
113        today: 'fa fa-screenshot',
114        clear: 'fa fa-trash',
115        close: 'fa fa-remove'
116      }
117    });
118  },
119
120  initSliders: function() {
121    // Sliders for demo purpose
122    var slider = document.getElementById('sliderRegular');
123
124    noUiSlider.create(slider, {
125      start: 40,
126      connect: [true, false],
127      range: {
128        min: 0,
129        max: 100
130      }
131    });
132
133    var slider2 = document.getElementById('sliderDouble');
134
135    noUiSlider.create(slider2, {
136      start: [20, 60],
137      connect: true,
138      range: {
139        min: 0,
140        max: 100
141      }
142    });
143  },
144
145  checkScrollForParallax: function() {
146    oVal = ($(window).scrollTop() / 3);
147    big_image.css({
148      'transform': 'translate3d(0,' + oVal + 'px,0)',
149      '-webkit-transform': 'translate3d(0,' + oVal + 'px,0)',
150      '-ms-transform': 'translate3d(0,' + oVal + 'px,0)',
151      '-o-transform': 'translate3d(0,' + oVal + 'px,0)'
152    });
153  },
154
155  checkScrollForTransparentNavbar: debounce(function() {
156    if ($(document).scrollTop() > scroll_distance) {
157      if (materialKit.misc.transparent) {
158        materialKit.misc.transparent = false;
159        $('.navbar-color-on-scroll').removeClass('navbar-transparent');
160      }
161    } else {
162      if (!materialKit.misc.transparent) {
163        materialKit.misc.transparent = true;
164        $('.navbar-color-on-scroll').addClass('navbar-transparent');
165      }
166    }
167  }, 17)
168};
169
170// Returns a function, that, as long as it continues to be invoked, will not
171// be triggered. The function will be called after it stops being called for
172// N milliseconds. If `immediate` is passed, trigger the function on the
173// leading edge, instead of the trailing.
174
175function debounce(func, wait, immediate) {
176  var timeout;
177  return function() {
178    var context = this,
179      args = arguments;
180    clearTimeout(timeout);
181    timeout = setTimeout(function() {
182      timeout = null;
183      if (!immediate) func.apply(context, args);
184    }, wait);
185    if (immediate && !timeout) func.apply(context, args);
186  };
187};
188
189var BrowserDetect = {
190  init: function() {
191    this.browser = this.searchString(this.dataBrowser) || "Other";
192    this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown";
193  },
194  searchString: function(data) {
195    for (var i = 0; i < data.length; i++) {
196      var dataString = data[i].string;
197      this.versionSearchString = data[i].subString;
198
199      if (dataString.indexOf(data[i].subString) !== -1) {
200        return data[i].identity;
201      }
202    }
203  },
204  searchVersion: function(dataString) {
205    var index = dataString.indexOf(this.versionSearchString);
206    if (index === -1) {
207      return;
208    }
209
210    var rv = dataString.indexOf("rv:");
211    if (this.versionSearchString === "Trident" && rv !== -1) {
212      return parseFloat(dataString.substring(rv + 3));
213    } else {
214      return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
215    }
216  },
217
218  dataBrowser: [{
219      string: navigator.userAgent,
220      subString: "Chrome",
221      identity: "Chrome"
222    },
223    {
224      string: navigator.userAgent,
225      subString: "MSIE",
226      identity: "Explorer"
227    },
228    {
229      string: navigator.userAgent,
230      subString: "Trident",
231      identity: "Explorer"
232    },
233    {
234      string: navigator.userAgent,
235      subString: "Firefox",
236      identity: "Firefox"
237    },
238    {
239      string: navigator.userAgent,
240      subString: "Safari",
241      identity: "Safari"
242    },
243    {
244      string: navigator.userAgent,
245      subString: "Opera",
246      identity: "Opera"
247    }
248  ]
249
250};
251
252var better_browser = '<div class="container"><div class="better-browser row"><div class="col-md-2"></div><div class="col-md-8"><h3>We are sorry but it looks like your Browser doesn\'t support our website Features. In order to get the full experience please download a new version of your favourite browser.</h3></div><div class="col-md-2"></div><br><div class="col-md-4"><a href="https://www.mozilla.org/ro/firefox/new/" class="btn btn-warning">Mozilla</a><br></div><div class="col-md-4"><a href="https://www.google.com/chrome/browser/desktop/index.html" class="btn ">Chrome</a><br></div><div class="col-md-4"><a href="http://windows.microsoft.com/en-us/internet-explorer/ie-11-worldwide-languages" class="btn">Internet Explorer</a><br></div><br><br><h4>Thank you!</h4></div></div>';

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.