PageSourceSearch

https://wck.wadowice.pl/wp-content/themes/muzze/assets/js/script.js

js wadowice.pl collected 2026-10-02 04:22:01 UTC 7,206 bytes, 228 lines download raw bytes

1(function($){
2	"use strict";
3	$(document).ready(function(){
4
5		/* Scroll to top */
6		muzze_scrollUp();
7		function muzze_scrollUp(options) {
8		           
9		    var defaults = {
10		        scrollName: 'scrollUp', 
11		        topDistance: 600, 
12		        topSpeed: 800, 
13		        animation: 'fade', 
14		        animationInSpeed: 200, 
15		        animationOutSpeed: 200, 
16		        scrollText: '<i class="fas fa-angle-up"></i>', 
17		        scrollImg: false, 
18		        activeOverlay: false 
19		    };
20
21		    var o = $.extend({}, defaults, options),
22		            scrollId = '#' + o.scrollName;
23
24
25		    $('<a/>', {
26		        id: o.scrollName,
27		        href: '#top',
28		        title: o.scrollText
29		    }).appendTo('body');
30
31
32		    if (!o.scrollImg) {
33
34		        $(scrollId).html(o.scrollText);
35		    }
36
37
38		    $(scrollId).css({'display': 'none', 'position': 'fixed', 'z-index': '2147483647'});
39
40
41		    if (o.activeOverlay) {
42		        $("body").append("<div id='" + o.scrollName + "-active'></div>");
43		        $(scrollId + "-active").css({'position': 'absolute', 'top': o.topDistance + 'px', 'width': '100%', 'border-top': '1px dotted ' + o.activeOverlay, 'z-index': '2147483647'});
44		    }
45
46
47		    $(window).scroll(function () {
48		        switch (o.animation) {
49		            case "fade":
50		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed));
51		                break;
52		            case "slide":
53		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed));
54		                break;
55		            default:
56		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0));
57		        }
58		    });
59
60		    
61		    $(scrollId).on( "click", function (event) {
62		        $('html, body').animate({scrollTop: 0}, o.topSpeed);
63		        event.preventDefault();
64		    });
65
66		}
67
68		/* Fix empty menu in test_uni_data */
69		if( $( '.widget_nav_menu ul li' ).length > 0 ){
70			$( '.widget_nav_menu ul li a:empty' ).parent().css('display','none');
71		}
72
73		/* Select 2 */
74		$('select').select2({
75			width: '100%'
76		});
77
78
79		
80
81		/* Popup Image - PrettyPhoto */
82		if($().prettyPhoto) {
83			if( $("a[data-gal^='prettyPhoto']").length > 0 ){
84			 	$("a[data-gal^='prettyPhoto']").prettyPhoto({hook: 'data-gal', theme: 'facebook',slideshow:5000, autoplay_slideshow:true});
85		    }
86		}
87
88
89	    /* Caousel Thumbnail Woo */
90	    if( $('.woo-thumbnails').length > 0 ){
91	        $('.woo-thumbnails .owl-carousel').each(function(){
92
93	        	var rtl = false;
94			 	if( $('body').hasClass('rtl') ){
95			 		rtl = true;
96			 	}
97
98	            $(this).owlCarousel({
99	                autoplay: true,
100	                autoplayHoverPause: true,
101	                loop: false,
102	                margin: 20,
103	                dots: false,
104	                nav: true,
105	                vertical: true,
106	                rtl: rtl,
107	                responsive: {
108	                    0:    {items: 2},
109	                    479:  {items: 2},
110	                    768:  {items: 3},
111	                    1024: {items: 3}
112	                }
113	            });
114	        });
115	    }
116
117	    $( '.ovatheme_header_default li.menu-item button.dropdown-toggle').off('click').on( 'click', function() {
118		    $(this).parent().toggleClass('active_sub');
119		});
120   		
121   		//
122		$( ".accor-muzze-content .wp-title " ).off('click').on( 'click', function() {
123
124			var icon_accor  = $(this).children('.icon-accor');
125			var i = icon_accor.children('i');
126			var id = i.attr('id');
127			var data_key = $(this).attr('data-option');
128
129			$(".wp-ova-according-" +  data_key + " .accor-muzze-content .wp-title").not(this).children('.icon-accor').children('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down');
130			$(this).children('.icon-accor').children('i').toggleClass("fa-angle-up fa-angle-down");
131			$( ".wp-ova-according-" +  data_key + " .accor-muzze-content .wp-title" ).not(this).parent().removeClass('show').addClass('hide').children( ".content" ).slide
131Up();
132			$('.wp-ova-according-' +  data_key + ' #slide-'+id).slideToggle("slow");
133			$('.wp-ova-according-' +  data_key + ' #slide-'+id).parent().toggleClass("show hide");
134		});
135
136		$( ".accor-muzze-content-image .wp-title " ).off('click').on( 'click', function() {
137
138			var icon_accor  = $(this).children('.icon-accor');
139			var i = icon_accor.children('i');
140			var id = i.attr('id');
141			var data_key = $(this).attr('data-option');
142
143			$(".wp-ova-according-" +  data_key + " .accor-muzze-content-image .wp-title").not(this).children('.icon-accor').children('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down');
144			$(this).children('.icon-accor').children('i').toggleClass("fa-angle-up fa-angle-down");
145			$( ".wp-ova-according-" +  data_key + " .accor-muzze-content-image .wp-title" ).not(this).parent().removeClass('show').addClass('hide').children( ".content" ).slideUp();
146			$('.wp-ova-according-' +  data_key + ' #slide-'+id).slideToggle("slow");
147			$('.wp-ova-according-' +  data_key + ' #slide-'+id).parent().toggleClass("show hide");
148		});
149
150		if($().imagesLoaded) {
151			var $grid = $('.ova-grid').imagesLoaded( function() {
152				$grid.masonry({
153					itemSelector: '.post-wrap', 
154				}); 
155			});
156		}
157
158		if($().imagesLoaded) {
159			var $grid_sidebar = $('.ova-grid_sidebar').imagesLoaded( function() {
160				$grid_sidebar.masonry({
161					itemSelector: '.post-wrap', 
162				}); 
163			});
164		}
165
166		$(".single-slide").each(function(){
167			var owlsl = $(this) ;
168			var owlsl_df = {
169				margin: 0, 
170				responsive: false, 
171				smartSpeed:500,
172				autoplay:true,
173				autoplayTimeout: 6000,
174				items:1,
175				loop:true, 
176				nav: true, 
177				dots: true,
178				center:false,
179				autoWidth:false,
180				thumbs:false, 
181				autoplayHoverPause: true,
182				slideBy: 1,
183				prev:'<i class="arrow_carrot-left"></i>',
184				next:'<i class="arrow_carrot-right"></i>',
185			};
186			var owlsl_ops = owlsl.data('options') ? owlsl.data('options') : {};
187			owlsl_ops = $.extend({}, owlsl_df, owlsl_ops);
188			owlsl.owlCarousel({
189				autoWidth: owlsl_ops.autoWidth,
190				margin: owlsl_ops.margin,
191				items: owlsl_ops.items,
192				loop: owlsl_ops.loop,
193				autoplay: owlsl_ops.autoplay,
194				autoplayTimeout: owlsl_ops.autoplayTimeout,
195				center: owlsl_ops.center,
196				nav: owlsl_ops.nav,
197				dots: owlsl_ops.dots,
198				thumbs: owlsl_ops.thumbs,
199				autoplayHoverPause: owlsl_ops.autoplayHoverPause,
200				slideBy: owlsl_ops.slideBy,
201				smartSpeed: owlsl_ops.smartSpeed,
202				navText:[owlsl_ops.prev,owlsl_ops.next],
203			});
204		});
205
206		$('#ova-copy-link').off('click').on( 'click', function(){
207			var $url = $("<input>");
208			$("body").append($url);
209			$url.val($('#ova-copy-link').attr('data-url')).select();
210			document.execCommand("copy");
211			$url.remove();
212			alert('copied!');
213		});
214
215		$(window).on('scroll', function() {
216		    $('.schedule').each(function() {
217		        if($(window).scrollTop() >= ($(this).offset().top - 100) ) {
218		            var id = $(this).attr('id');
219		            $('.schedule a').removeClass('active');
220		            $('.schedule  a[href=#'+ id +']').addClass('active');
221		        }
222		    });
223		});
224
225	});
226})(jQuery);
227
228

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.