PageSourceSearch

https://katowice.eu/Style%20Library/js/redirect.js

js katowice.eu collected 2026-10-01 10:28:01 UTC 5,507 bytes, 99 lines download raw bytes

1/* Fixes z-index issues - Version 1.2
2Update v1.2 - fixed an issue when this is being called on an element that is not in the DOM tree.
3
4This plugin fixes z-index issues typically occur in IE. It traverses up the DOM to make sure that all the ancestors of the target element have a high z-index value.
5
6This fixes a common z-index issue that an element with high z-index is showing underneath its ancestor's sibling that has the same explicit or implicit (e.g. IE's implied zero z-index when position: relative is applied) z-index as the corresponding ancestor.
7For IE 6's z-index issues with input boxes, see the jQuery bgiframe plugin.
8
9param obj:
10    recursive: boolean (default: true) - set to false to reduce the number of loops and if it still works, go for false
11    exclude: string - a list of class names to be excluded in the fix
12    msieOnly: boolean (default: false) - set to true to only apply the fix to IE browsers
13    zIndex: string (default: '9999') - a big number that should just be high enough to make the element-to-be-fixed stay on top of other elements
14*/
15(function($) {
16    $.fn.fixZIndex = function(params) {
17        params = params || {};
18        if (params.msieOnly && !$.browser.msie) return this;
19        var num_of_jobj = this.length;
20        for (var i = num_of_jobj; i--;) {
21            var curr_element = this[i];
22            var config_recursive = params.recursive || true;
23            var config_exclude = params.exclude || null;
24            while (curr_element != document.body) {
25                if (!$(curr_element).hasClass(config_exclude) && ($(curr_element).css('position') == 'relative' || $(curr_element).css('position') == 'absolute')) {
26                    if ($.data(curr_element, 'zIndex') == undefined) {
27                        $.data(curr_element, 'zIndex', curr_element.style.zIndex || '-1');
28                    }
29                    curr_element.style.zIndex = params.zIndex || '9999';
30                }
31                curr_element = curr_element.parentNode;
32                if (!config_recursive) break;
33            }
34        }
35        return this;
36    };
37
38    // optional function to restore z-index if needed
39    $.fn.restoreZIndex = function(params) {
40        params = params || {};
41        if (params.msieOnly && !$.browser.msie) return this;
42        var num_of_jobj = this.length;
43        for (var i = num_of_jobj; i--;) {
44            var curr_element = this[i];
45            var config_exclude = params.exclude || null;
46            while (curr_element && curr_element != document.body) {
47                var currZIndex = $.data(curr_element, 'zIndex');
48                if (currZIndex > -1 && !$(curr_element).hasClass(config_exclude)) {
49                    curr_element.style.zIndex = currZIndex;
50                    $.removeData(curr_element, 'zIndex');
51                }
52                else if (currZIndex == -1) {
53                    curr_element.style.zIndex = '';
54                }
55                curr_element = curr_element.parentNode;
56            }
57        }
58        return this;
59    };
60})(jQuery);
61
62var test = window.location.href.toString().split(window.location.host)[1];
63if ((escape(test).toLowerCase().indexOf("/radamiasta") != -1) || (test.toLowerCase().indexOf("rada-miasta") != -1) || (test.toLowerCase().indexOf("/fr/") != -1)) {
64	  $.cookie('currentpart', 'rada', { path: '/' });
65} else if ((test.toLowerCase().indexOf("/biznes") != -1)) {
66	  $.cookie('currentpart', 'biznes', { path: '/' });
67} else if ( (test.toLowerCase().indexOf("/chat") != -1) || (test.toLowerCase().indexOf("/konsultacje") != -1) ) {
68	  $.cookie('currentpart', 'chat', { path: '/' });
69} else if ( (test.toLowerCase().indexOf("/urzad-miasta") != -1) || (test.toLowerCase().indexOf("/de/") != -1) || (test.indexOf("/rejestry-publiczne/SzczegolyPlacowki") != -1) || (test.indexOf("/rejestry-publiczne/SzczegolyStowarzyszenia") != -1) || (test.indexOf("/rejestry-publiczne/SzukajStowarzyszenia") != -1) || (test.indexOf("/rejestry-publiczne/SzczegolyKlubu") != -1) || (test.indexOf("/rejestry-publiczne/SzukajKlubow") != -1) || (test.indexOf("/rejestry-publiczne/SzukajPlacowek") != -1))  {
70	$.cookie('currentpart', 'urzad', { path: '/' });
71}
72else {
73	  $.cookie('currentpart', 'miasto', { path: '/' });
74}
75
76var imcuurenthere = $.cookie('currentpart');
77if (imcuurenthere == "miasto") {
78	$('head').append('<link rel="stylesheet" href="/Style Library/css/magneta.css" type="text/css" />');
79} else if (imcuurenthere == "rada") {
80	$('head').append('<link rel="stylesheet" href="/Style Library/css/yellow.css" type="text/css" />');
81} else if (imcuurenthere == "chat") {
82	$('head').append('<link rel="stylesheet" href="/Style Library/css/chat.css" type="text/css" />');
83} else if (imcuurenthere == "urzad") {
84	$('head').append('<link rel="stylesheet" href="/Style Library/css/cyan.css" type="text/css" />');
85} else if (imcuurenthere == "biznes") {
86	$('head').append('<link rel="stylesheet" href="/Style Library/css/brown.css" type="text/css" />');
87} 
88else if (imcuurenthere===undefined) {
89	$('head').append('<link rel="stylesheet" href="/Style Library/css/magneta.css" type="text/css" />');
90}
91
92var access = $.cookie('access');
93if (access == "on") {
94	 $("head").append($("<link rel='stylesheet' href='/Style Library/css/acces.css' type='text/css' media='screen' />"));
95	 var titleHeight = $(".nivo-title").height();
96	 $(".nivo-caption").css("top", titleHeight);
97}
98
99

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.