PageSourceSearch

https://www.ekospol.cz/js/custom-script.js

js ekospol.cz collected 2026-10-08 00:42:37 UTC 3,995 bytes, 129 lines download raw bytes

1$(document).ready(function () {
2    function bindNavbar() {
3        if ($(window).width() > 767) {
4            $('.dropdown-toggle').click(function () {
5                window.location = $(this).attr('href');
6            });
7        }
8    }
9
10    $(window).resize(function () {
11        bindNavbar();
12    });
13
14    bindNavbar();
15});
16
17
18$(function () {
19
20    // Create the dropdown base
21    $("<select />").addClass("mobileMenuDD").appendTo("#tabs");
22
23    // Create default option "Go to..."
24    //$("<option />", {
25    //"selected": "selected",
26    //"value"   : "",
27    //"text"    : "Menu..."
28    //}).appendTo("#menu select");
29
30    // Populate dropdown with menu items
31    $("#tabs li").each(function () {
32        var el = $(this);
33        if (el.attr("class") == "active") {
34            $("<option />", {
35                "value": el.find("a").attr("href"),
36                "selected": "selected",
37                "text": el.find("a").attr("title")//el.find("a").text()
38            }).appendTo("#tabs select");
39        } else {
40            $("<option />", {
41                "value": el.find("a").attr("href"),
42                "text": el.find("a").attr("title")//.text()
43            }).appendTo("#tabs select");
44        }
45    });
46
47    // To make dropdown actually work
48    // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
49    $("#tabs select").change(function () {
50        window.location = $(this).find("option:selected").val();
51    });
52
53});
54
55
56
57
58/*!
59 * Scroll Sneak
60 * http://mrcoles.com/scroll-sneak/
61 *
62 * Copyright 2010, Peter Coles
63 * Licensed under the MIT licenses.
64 * http://mrcoles.com/media/mit-license.txt
65 *
66 * Date: Mon Mar 8 10:00:00 2010 -0500
67 */
68var ScrollSneak = function(prefix, wait) {
69    // clean up arguments (allows prefix to be optional - a bit of overkill)
70    if (typeof(wait) == 'undefined' && prefix === true) prefix = null, wait = true;
71    prefix = (typeof(prefix) == 'string' ? prefix : window.location.host).split('_').join('');
72    var pre_name;
73
74    // scroll function, if window.name matches, then scroll to that position and clean up window.name
75    this.scroll = function() {
76        if (window.name.search('^'+prefix+'_(\\d+)_(\\d+)_') === 0) {
77            var name = window.name.split('_');
78            window.scrollTo(name[1], name[2]);
79            window.name = name.slice(3).join('_');
80        }
81    };
82    // if not wait, scroll immediately
83    if (!wait) this.scroll();
84
85    this.sneak = function() {
86        // prevent multiple clicks from getting stored on window.name
87        if (typeof(pre_name) == 'undefined') pre_name = window.name;
88
89        // get the scroll positions
90        var top = 0, left = 0;
91        if (typeof(window.pageYOffset) == 'number') { // netscape
92            top = window.pageYOffset, left = window.pageXOffset;
93        } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { // dom
94            top = document.body.scrollTop, left = document.body.scrollLeft;
95        } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { // ie6
96            top = document.documentElement.scrollTop, left = document.documentElement.scrollLeft;
97        }
98        // store the scroll
99        if (top || left) window.name = prefix + '_' + left + '_' + top + '_' + pre_name;
100        return true;
101    };
102};
103
104
105// Clickable table row
106
107// $(function(){
108//     $('.table tr[data-href]').each(function(){
109//         $(this).css('cursor','pointer').hover(
110//             function(){
111//                 $(this).addClass('active');
112//             },
113//             function(){
114//                 $(this).removeClass('active');
115//             }).click( function(){
116//             document.location = $(this).attr('data-href');
117//         }
118//                     );
119//     });
120// });
121
122
123/*
124
125(function() {
126    var sneaky = new ScrollSneak(location.hostname);
127    document.getElementById('sneakytest').onclick = sneaky.sneak;
128})();
129*/

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.