PageSourceSearch

https://maniacyfigurek.pl/wp-content/themes/justwrite/assets/js/myscripts.js?ver=1.0.3

js maniacyfigurek.pl collected 2026-10-10 01:53:15 UTC 8,539 bytes, 323 lines download raw bytes

1// No Conflict
2jQuery.noConflict();
3
4// JustWrite Scripts
5(function( $ ) {
6	
7	// Menu Drop-Down
8	$('.superfish').superfish({ 
9		delay:				300,
10		speed:				'fast', 
11		animation:			{opacity:'show',height:'show'},
12		dropShadows:		false,
13		cssArrows:			false,
14		autoArrows:			true 
15	});
16	
17	
18	// Responsive Videos
19	$('.single-content, .sidebar').fitVids();
20	
21	
22	$(document).on('click', '.mobile-menu-button', function(event) {
23		$('.mobile-menu-button').toggleClass('activated').find('i').toggleClass('fa-bars fa-times');
24		$('.menu-main').toggleClass('menu-visible');
25		$('li.mobile-drop-down').removeClass('mobile-drop-down');
26		$('.mobile-menu').find('i').removeAttr('class').addClass('fa fa-angle-right');
27		close_mini_sidebar();
28		close_search_box();
29		
30		event.preventDefault();
31	});
32	
33	$(document).on('click', '.sf-sub-indicator', function(event) {
34		$(this).parent().parent().toggleClass('mobile-drop-down')
35		.children().find('.mobile-drop-down')
36		.removeClass('mobile-drop-down')
37		.find('i').toggleClass('fa-angle-down fa-angle-right');
38		
39		$(this).find('i').toggleClass('fa-angle-right fa-angle-down')
40
41		event.preventDefault();
42	});
43	
44	function close_mobile_menu() {
45		$('.mobile-menu-button').removeClass('activated').find('i').removeClass().addClass('fa fa-bars');
46		$('.menu-main').removeClass('menu-visible');
47		$('li.mobile-drop-down').removeClass('mobile-drop-down');
48		$('.mobile-menu').find('i').removeAttr('class').addClass('fa fa-angle-right');
49	}
50	// -------------
51
52	
53	// Logo Position
54	function logo_position() {
55	
56		var logo_h = $('.logo').height();
57		var logo_w = $('.logo').width();
58		var logo_height = logo_h / 2 - 10;
59		
60		$('.logo').css({
61			'margin-top': -logo_height,
62			'margin-left': 'auto',
63		});
64		
65		if( $(window).width() < 1140 ) {
66			$('.logo').css({
67				'margin-left': -logo_w / 2,
68				'margin-top': -logo_height,
69			});
70		}
71		
72		return;
73		
74	}
75	logo_position();
76	// -------------
77	
78	
79	// Description Position
80	$('.description').css('line-height', $('.logo').height() + 'px');
81	// -------------
82	
83	
84	// Slider
85	var jcarousel = $('.slider');
86	
87	jcarousel
88	.on('jcarousel:reload jcarousel:create', function () {
89			var width = jcarousel.innerWidth();
90			
91			if (width >= 1150) {
92				width = width / 1;
93			} else if (width >= 650) {
94				width = width / 2;
95			}
96			
97			jcarousel.jcarousel('items').css('width', width + 'px');
98		})
99			
100	.jcarousel({
101		wrap: 'circular',
102	})
103	
104	jcarousel.on('jcarousel:visiblein', 'li', function(event, carousel) {
105		$(this).css('opacity', 1);
106	});
107
108	jcarousel.on('jcarousel:visibleout', 'li', function(event, carousel) {
109		$(this).css('opacity', 0.5);
110	});
111
112	$('.prev-slide')
113		.jcarouselControl({
114			target: '-=1'
115	});
116
117	$('.next-slide')
118		.jcarouselControl({
119			target: '+=1'
120	});
121
122	$('.slider-pagination')
123		.on('jcarouselpagination:active', 'a', function() {
124			$(this).addClass('active');
125		})
126		.on('jcarouselpagination:inactive', 'a', function() {
127			$(this).removeClass('active');
128		})
129		.on('click', function(e) {
130			e.preventDefault();
131		})
132		.jcarouselPagination({
133			perPage: 1,
134			item: function(page) {
135				return '<a href="#' + page + '"><span></span></a>';
136			}
137	});
138	// -------------
139	
140	
141	// Search Button
142	$(document).on('click', '.search-button, .try-a-search', function(event) {
143		$('.search-button').toggleClass('activated').find('i').toggleClass('fa-search fa-times');
144		$('.search-wrap').toggleClass('search-visible');
145		$('#header-search .search-field').val('').focus();
146		close_mini_sidebar();
147		close_mobile_menu();
148		event.preventDefault();
149	});
150	
151	function close_search_box() {
152		$('.search-button').removeClass('activated');
153		$('.search-button').find('i').removeClass().addClass('fa fa-search');
154		$('.search-wrap').removeClass('search-visible');
155		$('#header-search .search-field').blur();
156	}
157	// -------------
158	
159	
160	// Back To Top
161	$(".back-to-top").click(function () {
162		$("html, body").animate({scrollTop: 0}, 50);
163	});
164	// -------------
165	
166	
167	// Tabs Widget
168	$('#ac-tabs-widget').idTabs(function(id){
169		$(id).fadeIn(400); 
170	});
171	// -------------
172	
173	
174	// Browse
175	$(document).on('click', '#browse-more', function(event) {
176		var cwp = $('#content-wrap').position();
177		var cwp_total = cwp.top - parseInt($('.mini-sidebar').css('padding-top')) + parseInt($('.container').css('border-top-width')) + 1;
178		$(this).toggleClass('activated');
179		$('.mini-sidebar').toggleClass('browse-window-opened');
180		$('.mini-sidebar').css({ 
181			'display': 'block',
182			'position':	'absolute'
183		});
184		if ($('.mini-sidebar').hasClass('browse-window-opened')) {
185			$("html, body").animate({scrollTop: cwp_total}, 300);
186		} else {
187			$('.mini-sidebar').removeAttr('style');	
188		}
189		close_search_box();
190		close_mobile_menu();
191		event.preventDefault();
192	});
193	
194	function close_mini_sidebar() {
195		$('.mini-sidebar').removeClass('browse-window-opened');
196		$('#browse-more').removeClass('activated');
197		$('.mini-sidebar').removeAttr('style');
198	}
199	
200	$(document).on('click', '.close-browse-by', function(event) {
201		close_mini_sidebar();
202		close_mobile_menu();
203		event.preventDefault();
204	});
205	// -------------
206	
207	
208	// Posts - Template 1 - Share Article
209	$(document).on('click', '.post-share-temp1', function(event) {
210		var share_id = $(this).attr('id');
211		var share_wrap_width = $('.post-template-1 .details').width() - 50;
212		$(this).css('display', 'none');
213		$('#' + share_id + '-rm').css('margin-right', 48);
214		$('#' + share_id + '-wrap').addClass('opened').css('height', 50).animate({
215			'width': '92%'
216			}, 500, function() { 
217				$('#' + share_id + '-wrap .contents').css('display','block').animate({ 
218					'opacity': 1,		
219				}, 300);
220		});
221		event.preventDefault();
222	});
223	
224	$(document).on('click', '.close-this-temp1', function(event) {
225		var share_href = $(this).attr('href');
226		var share_href_wrap = $(this).attr('href') + '-wrap';
227		$(share_href_wrap + ' .contents').animate({ 
228			'opacity': 0		
229			}, 300, function(){ 
230				$(this).css('display','none')
231				$(share_href_wrap).animate({
232					'width': 48,
233					'height': 'auto'	
234				}, 300, function(){ 
235					$(share_href_wrap).removeClass('opened')
236					$(share_href + '-rm').css('margin-right', 0);
237					$(share_href).css('display', 'block'); 
238				});
239			});
240		event.preventDefault();
241	});
242	// -------------
243	
244	
245	// Remove Tag Style (widget)
246	$('.tagcloud a').removeAttr('style');
247	// -------------
248	
249	
250	// Sticky Menu
251	function sticky_menu() {
252		var nav = $('.menu-wrap');
253		
254		nav_scrolled = false;
255		spo_scrooled = false;
256			
257		if( !nav.hasClass('sticky-disabled') ) {
258			if( $(window).width() > 1140 ) {
259				$(window).scroll(function () {
260					if (220 <= $(window).scrollTop() && !nav_scrolled && $(window).width() > 1140) {
261						if( $('body').hasClass('admin-bar') ) {
262							nav.removeAttr('style').addClass('visible').css('top', 28);
263						} else {
264							nav.removeAttr('style').addClass('visible')
265						}
266						nav_scrolled = true;
267					}
268					if (220 >= $(window).scrollTop() && nav_scrolled) {
269						if( $('body').hasClass('admin-bar') ) {
270							nav.removeClass('visible').css('top', 0);
271						} else {
272							nav.removeClass('visible');
273						}
274						nav_scrolled = false;      
275					}
276					if (320 <= $(window).scrollTop() && !spo_scrooled) {
277						$('.header-social-icons').css('display', 'block').animate({'marginRight': 0}, 100);
278						spo_scrooled = true;
279					}
280					if (320 >= $(window).scrollTop() && spo_scrooled) {
281						$('.header-social-icons').animate({
282							'marginRight': 20
283						}, 100, function() { 
284							$('.header-social-icons').hide().css({
285								'marginRight': 0	
286							});
287						}).show();
288						spo_scrooled = false;      
289					}
290				});
291			} else {
292				$('.menu-wrap').removeClass('visible'),
293				nav_scrolled = false,
294				$('.header-social-icons').removeAttr('style'),
295				spo_scrooled = false;
296			}
297		}
298		
299		
300	}
301	sticky_menu();
302	if( $('body').hasClass('admin-bar') ) { $('.visible').css('top', 100); }
303	// -------------
304	
305	
306	// On Window Resize
307	$(window).resize(function() {
308		
309		if( $(window).width() >= 1600 ) {
310			$('.mini-sidebar').removeClass('browse-window-opened');
311			$('#browse-more').removeClass('activated');
312			$('.mini-sidebar').removeAttr('style');
313		}
314
315		sticky_menu();	
316
317		logo_position();
318		
319	});
320	// -------------
321	
322	
323})(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.