// source --> https://hofmann-vratny.cz/wp-content/plugins/wpopal-core-features/assets/3rd-party/jquery.sticky-kit.min.js /* Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net */ (function(){var b,f;b=this.jQuery||window.jQuery;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k)); if(!g.length)throw"failed to find stick parent";v=m=!1;(h=null!=p?p&&a.closest(p):b("
"))&&h.css("position",a.css("position"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),d=parseInt(g.css("padding-bottom"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q, u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom"))),eb&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+"px"})))):e>F&&(m=!0,b={position:"fixed",top:c},b.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(b).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+c>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}), a.css({position:"absolute",bottom:d,top:"auto"}).trigger("sticky_kit:bottom")},y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);b(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize", y),b(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,0)}};n=0;for(K=this.length;n https://hofmann-vratny.cz/wp-content/plugins/wpopal-core-features/assets/js/plugin.js ( function( $ ) { $( document ).ready( function (){ ////// /////// ////// accordion if( $( ".wpopal-accordion" ).length > 0 ){ var icons = { header: "ui-icon-circle-arrow-e", activeHeader: "ui-icon-circle-arrow-s" }; $( ".wpopal-accordion" ).accordion( { icons: icons, collapsible:true, heightStyle: "content" } ); } ////// product count $( '.quantity-box :button').click( function(){ var val = $('.quantity input', $(this).parent() ).val(); val = parseInt( val ); val = isNaN( val ) ? 0 : val; if( $(this).hasClass('minus') ){ val = val <= 0 ? 0 : val - 1; } if( $(this).hasClass('plus') ){ val = val + 1; } $('.quantity input', $(this).parent() ).val( val ); } ); ////// add slider for related product if( $( '.related .products' ).length ) { var container = $( '.related .products' ); var col = parseInt( container.attr('class').replace("products","").replace("columns-","").replace(/\s+/,"") ); var limited = $( '.related .products .product' ).length; if( limited > col ){ container.removeClass( 'columns-'+col ); var wrp = $('
'); container.wrapInner( wrp ); var _swiper = $('.swiper-container', container ); $(_swiper).append( $('
') ); $(_swiper).append( $('
') ); $(_swiper).append( $('
') ); $( '.product', _swiper).addClass( 'swiper-slide' ); var option = { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' } }; if( option ){ option = $.extend( { slidesPerView: col, spaceBetween: 30, slidesPerGroup: col, slideClass:'swiper-slide', pagination: { el: '.swiper-pagination', clickable: true, }, breakpoints: { 1024: { slidesPerView: 2, spaceBetween: 30 }, 768: { slidesPerView: 1, spaceBetween: 10 }, 640: { slidesPerView: 1, spaceBetween: 10 }, 320: { slidesPerView: 1, spaceBetween: 10 } } }, option ); var swiper = new Swiper( _swiper , option ); } } } //// Product Add To Cart //// var cartstyle = ''; var $product; $('body').on('adding_to_cart', function (event, button) { $product = button.closest('.product'); }).on('added_to_cart', function () { var src = $product.find('img').first().attr('src'); var name = $product.find('.woocommerce-loop-product__title').text(); var template = '
'; template += '

'+name+'

'; template += '
'; $( "body" ).append( template ); setTimeout(function () { $('.add-to-cart-minibox').addClass('hide') ; }, 3000); }); /// account form if( $("#customer_login").length > 0 ) { $("#customer_login > div.u-column2, #customer_login h2" ).hide(); $("#customer_login > div" ).removeClass( 'col-1').removeClass('col-2'); $(".woocommerce-account-form .account-heading-tab a").click( function(){ $("#customer_login > div" ).hide(); $(".woocommerce-account-form .account-heading-tab a").removeClass('active'); $("#customer_login" ).find( $(this).data('target') ).show(); $(this).addClass('active'); return false; } ); $(".woocommerce-account-form .account-heading-tab a").first().click(); } /// sticky in /// if( $('body').hasClass('single-product-sticky') ){ var summarys = $('.single-product .entry-summary'); summarys.each(function() { var $column = $(this); var offsetTop = 40; $inner = $column.find('.summary-inner'); var $images = $column.parent().find('.woocommerce-product-gallery').wrapInner( "
" ); $images.imagesLoaded(function() { var diff = $inner.outerHeight() - $images.outerHeight(); if( diff < -200 ) { $inner.stick_in_parent({ offset_top: offsetTop }); } else if( diff > 200 ) { $images.stick_in_parent({ offset_top: offsetTop }); } $( window ).resize(function() { if ( $( window ).width() <= 1024 ) { $inner.trigger('sticky_kit:detach'); $images.trigger('sticky_kit:detach'); }else if( $inner.outerHeight() < $images.outerHeight() ) { $inner.stick_in_parent({ offset_top: offsetTop }); }else{ $images.stick_in_parent({ offset_top: offsetTop }); } }); }); }); }//// } ); } )( jQuery ); /* global tinymce, wpCookies, autosaveL10n, switchEditors */ // Back-compat window.opalwoofilter = function() { return true; }; /** * @summary Adds autosave to the window object on dom ready. * * @since 3.9.0 * * @param {jQuery} $ jQuery object. * @param {window} The window object. * */ ( function( $, window ) { /** * @summary Auto saves the post. * * @since 3.9.0 * * @returns {Object} * {{ * getPostData: getPostData, * getCompareString: getCompareString, * disableButtons: disableButtons, * enableButtons: enableButtons, * local: ({hasStorage, getSavedPostData, save, suspend, resume}|*), * server: ({tempBlockSave, triggerSave, postChanged, suspend, resume}|*)} * } * The object with all functions for autosave. */ function opalwoofilter() { var $document = $('html'); var $page = $( '#page-importer' ); var ajaxSelectors = '.widget_product_categories a, .widget_layered_nav_filters a, .woocommerce-widget-layered-nav a , .widget_rating_filter a, .page-numbers a, .woo-display-mode a, .woo-show-perpage a, .filter-product-brands a'; var loading = 0; /** * @summary Sets the autosave time out. * * Wait for TinyMCE to initialize plus 1 second. for any external css to finish loading, * then save to the textarea before setting initialCompareString. * This avoids any insignificant differences between the initial textarea content and the content * extracted from the editor. * * @since 3.9.0 * * @returns {void} */ function hanlde_ajax_sortable(){ $('body').on('change', "form.woocommerce-ordering select", function(){ $("form.woocommerce-ordering").submit(); } ); $('body').on('submit', "form.woocommerce-ordering", function () { var url = window.location.href; url = remove_url_params( 'orderby', url ); url = url.indexOf("?") == -1 ? url+"?"+$(this).serialize():url+"&"+$(this).serialize(); make_ajax_filter( url ); return false ; }); /// show top filter $('body').on( 'click', ".wpopal-filter-top-button", function(){ $(".sidebar-filter-content").toggleClass( 'active' ); return false; } ); } /** * */ function hanlder_ajax_loading( $toggle ) { loading = $toggle; if( $toggle == 1 ){ $('body').addClass('opal-filter-loading').append('
'); } else { $('body').removeClass('opal-filter-loading'); $('#opal-woocommerce-loading').remove(); } } function hanlde_load_more(){ $( 'body').on( 'click', ".load-more-wrap a" , function(){ var $columns = $("#primary .products").attr( 'class' ).replace(/\s*products\s*/,'').replace( /\s*columns-\s*/,'' ); // alert( _class ); hanlder_ajax_loading( 1 ); $.post( $(this).attr('href') , function( data ) { if (data) { var $html = $( data ); var products = $html.find("#primary").find(".products"); var url = $html.find(".load-more-wrap a").attr( 'href' ); //console.log( url ); if( $html.find(".load-more-wrap").hasClass('load-done') ) { $('body').find(".load-more-wrap a").attr( 'href' , url ).hide(); $('body').find(".load-more-wrap").addClass( 'load-done' ); } else { $('body').find(".load-more-wrap a").attr( 'href' , url ).show(); } $(products).find(".product-category").remove(); $("#primary .products").append( $(products).html() ); // update first and last class to fix broken layout. $("#primary .products > li").removeClass( 'first').removeClass('last'); // $("#primary .products > li").each( function(i){ var $loop_index = i+1; if ( 0 === ( $loop_index - 1 ) % $columns || 1 === $columns ) { $(this).addClass( 'first' ); } if ( 0 === $loop_index % $columns ) { $(this).addClass( 'last' ); } } ); hanlder_ajax_loading( 0 ); } } ); return false; } ); } function hanlde_infinite_ajax(){ if( $('body').find(".load-more-wrap.has-infinite").length ){ $( window ).on( 'scroll touchstart', function (){ $(this).trigger('wpopal_product_infinite_ajax'); }); $( window ).on( 'wpopal_product_infinite_ajax', function(){ var t = $(this), elem = $( "#primary .products .product" ).last(); if( typeof elem == 'undefined' ) { return; } if ( ! loading && ( t.scrollTop() + t.height() ) >= ( elem.offset().top + elem.height() ) ) { if( !$('body').find(".load-more-wrap").hasClass('load-done') ) { $(".load-more-wrap a").trigger( 'click' ); } } }) } } /** * @summary Sets the autosave time out. * * Wait for TinyMCE to initialize plus 1 second. for any external css to finish loading, * then save to the textarea before setting initialCompareString. * This avoids any insignificant differences between the initial textarea content and the content * extracted from the editor. * * @since 3.9.0 * * @returns {void} */ function hanlde_ajax_filters(){ $('body').on('click', ajaxSelectors, function () { var url = $(this).attr('href'); $( this ).toggleClass( 'active' ); make_ajax_filter( url ); return false ; }); // ajax for price filter /// $(document.body).bind('price_slider_change', function( event, min, max ){ var url = window.location.href; url = remove_url_params( 'min_price', url ); url = remove_url_params( 'max_price', url ); var sub = "min_price="+min+"&max_price="+max; url = url.indexOf("?") == -1 ? url + "?" + sub : url + "&" + sub; make_ajax_filter( url ); } ); } function remove_url_params( key, sourceURL ) { var rtn = sourceURL.split("?")[0], param, params_arr = [], queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : ""; if (queryString !== "") { params_arr = queryString.split("&"); for (var i = params_arr.length - 1; i >= 0; i -= 1) { param = params_arr[i].split("=")[0]; if (param === key) { params_arr.splice(i, 1); } } var _param = params_arr.join("&"); if( _param ){ rtn = rtn + "?" + _param; } } return rtn; } function make_ajax_filter( url ){ hanlder_ajax_loading( 1 ); $.post(url, function( data ) { if (data) { var $html = $( data ); render_ajax_content( $html, url ); hanlder_ajax_loading( 0 ); } } ); } function render_ajax_content( $html, url ){ var state = { woofilter: true, title : $html.filter( 'title' ).text(), sidebar : $html.find( '#sidebar-left-shop' ).html(), content : $html.find( '#primary' ).html(), filter : $html.find('.opal-canvas-filter-wrap' ).html(), }; $("html title").html( state.title ); $("#sidebar-left-shop").html( state.sidebar ); $("#primary").html( state.content ); init_price_filter(); window.history.pushState( {url:url}, state.title, url ); } function init_price_filter() { if( $( 'input#min_price, input#max_price' ).length ) { $( 'input#min_price, input#max_price' ).hide(); $( '.price_slider, .price_label' ).show(); var min_price = $( '.price_slider_amount #min_price' ).data( 'min' ), max_price = $( '.price_slider_amount #max_price' ).data( 'max' ), current_min_price = $( '.price_slider_amount #min_price' ).val(), current_max_price = $( '.price_slider_amount #max_price' ).val(); $( '.price_slider:not(.ui-slider)' ).slider({ range: true, animate: true, min: min_price, max: max_price, values: [ current_min_price, current_max_price ], create: function() { $( '.price_slider_amount #min_price' ).val( current_min_price ); $( '.price_slider_amount #max_price' ).val( current_max_price ); $( document.body ).trigger( 'price_slider_create', [ current_min_price, current_max_price ] ); }, slide: function( event, ui ) { $( 'input#min_price' ).val( ui.values[0] ); $( 'input#max_price' ).val( ui.values[1] ); $( document.body ).trigger( 'price_slider_slide', [ ui.values[0], ui.values[1] ] ); }, change: function( event, ui ) { $( document.body ).trigger( 'price_slider_change', [ ui.values[0], ui.values[1] ] ); } }); } } /// call to action now $( "body" ).ready( function(){ // processing ajax filter hanlde_ajax_filters(); hanlde_ajax_sortable(); hanlde_load_more(); hanlde_infinite_ajax(); } ); return { }; } /** @namespace wp */ window.wpopal = window.wpopal || {}; window.wpopal.opalwoofilter = opalwoofilter(); }( jQuery, window )); // source --> https://hofmann-vratny.cz/wp-content/themes/zoli/assets/js/theme.min.js?ver=1.0.4.1579703784 !function(){"use strict";var e=-1
')),t(this).find(".swiper-button-next").length||(t(this).append(t('
')),t(this).append(t('
'))),e){if((e=t.extend({navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},slidesPerView:3,spaceBetween:30,loop:!0,pagination:{el:".swiper-pagination",clickable:!0},breakpoints:{1024:{slidesPerView:1,spaceBetween:30},768:{slidesPerView:1,spaceBetween:10},640:{slidesPerView:1,spaceBetween:10},320:{slidesPerView:1,spaceBetween:10}}},e)).thumbnails_nav){var i=t(e.thumbnails_nav).data("swiper"),a=new Swiper(e.thumbnails_nav,i);e.thumbs={swiper:a}}new Swiper(this,e)}})};a(),t(document).ajaxComplete(function(){a()})}var n=t(".wpopal-blog-masonry-style");n.length&&n.imagesLoaded(function(){n.isotope({isOriginLeft:!t("body").hasClass("rtl"),itemSelector:".column-item"})}),t(".isotope-grid-play").each(function(){var i=t(this);i.imagesLoaded(function(){var e={isOriginLeft:!t("body").hasClass("rtl"),itemSelector:".column-item",percentPosition:!0};i.isotope(e)})}),t(".magnific-popup-iframe").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1}),t(".open-popup-link").magnificPopup({type:"inline",mainClass:"mfp-with-fade",closeBtnInside:!0,removalDelay:1e3,callbacks:{beforeOpen:function(){this.st.mainClass="popup-animation-show"}},midClick:!0})})}(jQuery); // source --> https://hofmann-vratny.cz/wp-includes/js/wp-embed.min.js?ver=5.4.14 /*! This file is auto-generated */ !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c https://hofmann-vratny.cz/wp-content/plugins/opal-widgets-for-elementor//assets/js/libs/slick.js?ver=1.8.1 /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.8.1 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ /* global window, document, define, jQuery, setInterval, clearInterval */ ;(function(factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof exports !== 'undefined') { module.exports = factory(require('jquery')); } else { factory(jQuery); } }(function($) { 'use strict'; var Slick = window.Slick || {}; Slick = (function() { var instanceUid = 0; function Slick(element, settings) { var _ = this, dataSettings; _.defaults = { accessibility: true, adaptiveHeight: false, appendArrows: $(element), appendDots: $(element), arrows: true, asNavFor: null, prevArrow: '', nextArrow: '', autoplay: false, autoplaySpeed: 3000, centerMode: false, centerPadding: '50px', cssEase: 'ease', customPaging: function(slider, i) { return $('