PageSourceSearch

https://www.oborniki.pl/wp-content/themes/oborniki_2015/js/script.js?ver=0.22

js oborniki.pl collected 2026-09-24 09:54:11 UTC 2,110 bytes, 106 lines download raw bytes

1/*!
2 * script v0.1 (http://2msoft.pl)
3 */
4
5+function ($) {
6	var dynMin = 568;
7	var dynMax = 1200;
8	var gap = 16;
9	var newsMixed = false;
10
11	function getDocumentWidth()
12	{
13		return $(document).width();
14	}
15
16	function isInRange()
17	{
18		var dWidth = getDocumentWidth();
19		if(dWidth <= dynMax && dWidth >= dynMin)
20			return true;
21		return false;
22	}
23
24	function isNewsMixed()
25	{
26		if($('.news-elem-big').length && $('.news-elem-small').length)
27			newsMixed = true;
28	}
29
30	function setNews()
31	{
32		if(newsMixed && isInRange())
33		{
34			var smallHeight = $('.news-elem-small').height();
35			var bigHeight = 2*smallHeight + gap;
36			$('.news-elem-big').css('height', bigHeight);
37		}
38		else
39			clearElems();
40
41	}
42
43	function setExtra()
44	{
45		if(isInRange())
46		{
47			var smallHeight = $('.extra-elem-small').height();
48			var bigHeight = 2*smallHeight + gap;
49			$('.extra-elem-big').css('height', bigHeight);
50		}
51		else
52			clearElems();
53	}
54
55	function clearElems()
56	{
57		$('.news-elem-big, .extra-elem-big').css('height', 'auto');
58	}
59
60	$(document).ready(function(){
61		isNewsMixed();
62		setNews();
63		setExtra();
64
65		$('a[target="_blank"]').on('click', function(e){
66			var targetUrl = $(this).attr('href');
67			if(!confirm('Czy chcesz przejść do strony ' + targetUrl + '? Strona zostanie otwarta w nowej karcie Twojej przeglądarki.')) {
68				e.preventDefault();
69			}
70		});
71
72		$('.main-content').not('.front').find('a, button').each(function(i, e){
73			$(e).attr('tabindex', 20);
74		});
75
76		$(window).resize(function(){
77			setNews();
78			setExtra();
79		});
80
81		$('.menu-toggle').on('click', function(){
82			var menuId = $(this).data('id');
83			if(menuId == 1)
84				var hideId = 2;
85			else
86				var hideId = 1;
87			$('.menu-wrap').removeClass('menu-' + hideId + '-open');
88			$('.menu-wrap').toggleClass('menu-' + menuId + '-open');
89		});
90
91		$(document).keyup(function(e) {
92	     if (e.keyCode == 27) { // escape key maps to keycode `27`
93	        // <DO YOUR WORK HERE>
94					$('[data-toggle="dropdown"]').parent().removeClass('open');
95	    }
96	});
97
98	});
99
100		
101	$("img").addClass("img-responsive")
102	$('.carousel').carousel({
103		interval: 8000
104	})
105	
106}(jQuery);

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.