HEX
Server: Apache/2.4.38 (Debian)
System: Linux host457 5.14.0-4-amd64 #1 SMP Debian 5.14.16-1 (2021-11-03) x86_64
User: www-data (33)
PHP: 7.4.21
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/vhosts/harpoeditore.it/httpdocs/wp-content/plugins/coming-soon/public/js/sp-scripts.min.js
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){var r,a;"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,r=e.Cookies,(a=e.Cookies=t()).noConflict=function(){return e.Cookies=r,a})}(void 0,function(){function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)e[a]=r[a]}return e}var u={read:function(e){return e.replace(/%3B/g,";")},write:function(e){return e.replace(/;/g,"%3B")}};return function t(o,i){function r(e,t,r){if("undefined"!=typeof document){"number"==typeof(r=s({},i,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=u.write(e).replace(/=/g,"%3D"),t=o.write(String(t),e);var a="";for(var n in r)r[n]&&(a+="; "+n,!0!==r[n]&&(a+="="+r[n].split(";")[0]));return document.cookie=e+"="+t+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},a=0;a<t.length;a++){var n=t[a].split("="),i=n.slice(1).join("="),s=u.read(n[0]).replace(/%3D/g,"=");if(r[s]=o.read(i,s),e===s)break}return e?r[e]:r}},remove:function(e,t){r(e,"",s({},t,{expires:-1}))},withAttributes:function(e){return t(this.converter,s({},this.attributes,e))},withConverter:function(e){return t(s({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}(u,{path:"/"})});var seedprodCookies=Cookies.noConflict(),sp_emplacementRecaptcha=[],sp_option_id="";jQuery("form[id^=sp-optin-form]").submit(function(e){e.preventDefault();var t=jQuery(this).attr("id").replace("sp-optin-form-","");if(1===seeprod_enable_recaptcha)grecaptcha.execute(sp_emplacementRecaptcha[t]);else{sp_send_request("",t)}});var sp_CaptchaCallback=function(){jQuery("div[id^=recaptcha-]").each(function(e,t){sp_option_id=t.id.replace("recaptcha-",""),sp_emplacementRecaptcha[sp_option_id]=grecaptcha.render(t,{sitekey:"6LdfOukUAAAAAMCOEFEZ9WOSKyoYrxJcgXsf66Xr",badge:"bottomright",type:"image",size:"invisible",callback:function(e){sp_send_request(e,sp_option_id)}})})};function sp_send_request(e,n){var t=jQuery("#sp-optin-form-"+n).serialize(),r=jQuery.ajax({url:seedprod_api_url+"subscribers",type:"post",dataType:"json",timeout:5e3,data:t});jQuery("#sp-optin-form-"+n+" .sp-optin-submit").addClass("sp-ajax-striped sp-ajax-animated");var a=jQuery.ajax({url:sp_subscriber_callback_url,type:"post",timeout:3e4,data:t});jQuery.when(r,a).done(function(e,t){var r=jQuery("#sp-optin-form-"+n+" input[name^='seedprod_action']").val();if("1"==r&&(jQuery("#sp-optin-form-"+n).hide(),jQuery("#sp-optin-success-"+n).show()),"2"===r){var a=jQuery("#sp-optin-form-"+n+" input[name^='redirect_url']").val();window.location.href=a}jQuery("#sp-optin-form-"+n+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated")}).fail(function(e,t,r){jQuery("#sp-optin-form-"+n+" .sp-optin-submit").removeClass("sp-ajax-striped sp-ajax-animated"),1===seeprod_enable_recaptcha&&grecaptcha.reset(sp_emplacementRecaptcha[n])})}var x=[];function countdown(e,s,o,u,p){var t=(new Date).getTime();if("vt"==e){s+=t;var r=seedprodCookies.get("seedprod_enddate_"+o);null!=r?s=r:seedprodCookies.set("seedprod_enddate_"+o,s,{expires:360})}x[o]=setInterval(function(){var e=(new Date).getTime(),t=s-e,r=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3);-1==i&&(r=a=n=i=0),0==r?jQuery("#sp-cd-days-"+o).hide():jQuery("#sp-cd-days-"+o+" .sp-cd-amount").html(pad(r,2)),jQuery("#sp-cd-hours-"+o+" .sp-cd-amount").html(pad(a,2)),jQuery("#sp-cd-minutes-"+o+" .sp-cd-amount").html(pad(n,2)),jQuery("#sp-cd-seconds-"+o+" .sp-cd-amount").html(pad(i,2)),t<0&&(clearInterval(x[o]),"1"==u&&(jQuery("#sp-countdown-"+o+" .sp-countdown-group").hide(),jQuery("#sp-countdown-expired-"+o).show()),"2"==u&&(jQuery("#sp-countdown-"+o+" .sp-countdown-group").hide(),window.location.href=p),"3"==u&&seedprodCookies.remove("seedprod_enddate_"+o))},1e3)}function seedprod_animatedheadline(e,t,r,a){"true"==t&&window.setInterval(function(){jQuery("#sp-animated-head-"+e+" .sp-title-highlight .sp-title--headline.sp-animated").addClass("sp-hide-highlight"),setTimeout(function(){jQuery("#sp-animated-head-"+e+" .sp-title-highlight .sp-title--headline.sp-animated").removeClass("sp-hide-highlight")},200)},a)}function seedprod_rotateheadline(e,t,r){jQuery("#sp-animated-head-"+e+" .preview-sp-title").seedprod_responsive_title_shortcode()}function pad(e,t,r){return r=r||"0",(e+="").length>=t?e:new Array(t-e.length+1).join(r)+e}function seedprod_escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function seedprod_tabbedlayout(t){jQuery("#sp-"+t+" ul.sp-tabbedlayout-wrapper li a").click(function(){jQuery("#sp-"+t+" ul.sp-tabbedlayout-wrapper li a").removeClass("sp-active-tab");var e=jQuery(this).attr("data-tab");jQuery("#sp-"+t+" ul.sp-tabbedlayout-wrapper li a.sp-tab-section-"+e).addClass("sp-active-tab"),jQuery("#sp-"+t+" div.tab-content-box").addClass("sp-hidden"),jQuery("#sp-"+t+" div.sp-tab-content-section-"+e).removeClass("sp-hidden")})}function seedprod_bg_slideshow(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5e3,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"ease-in",n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:500;document.querySelector(e).style.backgroundSize="cover",document.querySelector(e).style.backgroundRepeat="no-repeat",document.querySelector(e).style.backgroundPosition="center center";var i="all "+n+"ms "+a;document.querySelector(e).style.WebkitTransition=i,document.querySelector(e).style.MozTransition=i,document.querySelector(e).style.MsTransition=i,document.querySelector(e).style.OTransition=i,document.querySelector(e).style.transition=i;var s=0;document.querySelector(e).style.backgroundImage="url('"+t[s]+"')",s++,setInterval(function(){document.querySelector(e).style.backgroundImage="url('"+t[s]+"')",++s>=t.length&&(s=0)},r);var o=new Array;t.forEach(function(e,t){o[t]=new Image,o[t].src=e})}jQuery(document).ready(function(e){e('link[href*="/wp-content/themes/"]').remove()}),jQuery(document).ready(function(e){for(var t="{MM}/{dd}/{yyyy}",r=e("body").html().split("[#"),a=1;a<r.length;a++){var n=t,i=r[a].split("]")[0],s=i.split(":");n=1<s.length?s[1]:t;var o=Date.create(s[0]),u=new RegExp("\\[#"+i+"]","g");e("body *").replaceText(u,o.format(n))}e(".sp-dynamic-text").contents().unwrap()}),jQuery(document).ready(function(e){for(var t=e("body").html().split("[q:"),r=1;r<t.length;r++){var a="",n=t[r].split("]")[0],i=n.split("=");a=1<i.length?i[1]:"";var s=i[0],o=new RegExp("\\[q:"+n+"]","g"),u=new URLSearchParams(window.location.search).get(s);null!=u&&(a=u);var p=e("body").html().replace(o,seedprod_escapeHtml(a));e("body").html(p)}e(".sp-dynamic-text").contents().unwrap()}),jQuery(".sp-testimonial-nav button").click(function(){var e="#"+jQuery(this).parents(".sp-testimonials-wrapper").attr("id"),t=jQuery(e+" .sp-testimonial-nav button").index(this),r=0,a=jQuery(".sp-testimonial-wrapper",jQuery(this).parents(e)),n=jQuery(this).parents(".sp-testimonials-wrapper").attr("data-slidetoshow");null==n&&(n=1);for(var i=Math.ceil(a.length/parseInt(n)),s=0;s<i;s++){.5<=jQuery(e+' .sp-testimonial-nav button[data-index="'+s+'"]').css("opacity")&&(r=s)}var o=jQuery(e+" .sp-testimonial-nav button").length-1,u=jQuery(e+" .sp-testimonial-nav button").eq(t).attr("data-index");0==t&&(0==r?r=Math.ceil(a.length/parseInt(n))-1:r--),t==o&&(Math.ceil(a.length/parseInt(n))-1==r?r=0:r++),a.css({opacity:0,height:"0",position:"absolute"}),jQuery(e+" .sp-testimonial-nav button[data-index]").css({opacity:.25});var p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));if(void 0!==u){r=u,p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));for(var l=p;l<c;l++)jQuery(a).eq(l).css({opacity:1,height:"auto",position:"initial"});jQuery(e+" .sp-testimonial-nav button").eq(t).css({opacity:1})}else{p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));for(var d=p;d<c;d++)jQuery(a).eq(d).css({opacity:1,height:"auto",position:"initial"});jQuery(e+" .sp-testimonial-nav button").eq(r+1).css({opacity:1})}});var testimonial_timers={};function seedprod_twitterembedtimeline(t,r,a,n,i,s,o,u,p,c){twttr.ready(function(e){window.twttr.widgets.createTimeline({sourceType:"profile",screenName:r},document.getElementById("sp-twitterembedtimeline-preview-"+t),{showReplies:a,width:n,height:i,chrome:s,align:o,borderColor:u,theme:p,lang:c}).then(function(e){})})}function seedprod_twittertweetbutton(t,r,a,n,i,s,o,u){twttr.ready(function(e){window.twttr.widgets.createShareButton(r,document.getElementById("sp-twittertweetbutton-preview-"+t),{size:a,text:n,hashtags:i,via:s,related:o,lang:u})})}jQuery(".sp-testimonials-wrapper").each(function(e){var t="#"+jQuery(this).attr("id"),r=jQuery(this).attr("data-autoplay"),a=jQuery(this).attr("data-speed");a=""===a?5e3:1e3*parseInt(a),void 0!==r&&(testimonial_timers[t]=setInterval(function(){jQuery(t+" .sp-testimonial-nav button:last-child").trigger("click")},a))}),jQuery(".sp-testimonials-wrapper").hover(function(){var e="#"+jQuery(this).attr("id");clearInterval(testimonial_timers[e])}),jQuery(".sp-testimonials-wrapper").mouseleave(function(){var e="#"+jQuery(this).attr("id"),t=jQuery(this).attr("data-autoplay"),r=jQuery(this).attr("data-speed");r=""===r?5e3:1e3*parseInt(r),void 0!==t&&(testimonial_timers[e]=setInterval(function(){jQuery(e+" .sp-testimonial-nav button:last-child").trigger("click")},r))}),jQuery(".sp-imagecarousel-nav button").click(function(){var e="#"+jQuery(this).parents(".sp-imagecarousels-wrapper").attr("id"),t=jQuery(e+" .sp-imagecarousel-nav button").index(this),r=0,a=jQuery(".sp-imagecarousel-wrapper",jQuery(this).parents(e)),n=jQuery(this).parents(".sp-imagecarousels-wrapper").attr("data-slidetoshow");null==n&&(n=1);for(var i=Math.ceil(a.length/parseInt(n)),s=0;s<i;s++){.5<=jQuery(e+' .sp-imagecarousel-nav button[data-index="'+s+'"]').css("opacity")&&(r=s)}var o=jQuery(e+" .sp-imagecarousel-nav button").length-1,u=jQuery(e+" .sp-imagecarousel-nav button").eq(t).attr("data-index");0==t&&(0==r?r=Math.ceil(a.length/parseInt(n))-1:r--),t==o&&(Math.ceil(a.length/parseInt(n))-1==r?r=0:r++);var p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));if(a.css({opacity:0,height:"0",position:"absolute"}),jQuery(e+" .sp-imagecarousel-nav button[data-index]").css({opacity:.25}),void 0!==u){r=u,p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));for(var l=p;l<c;l++)jQuery(a).eq(l).css({opacity:1,height:"auto",position:"initial"});jQuery(e+" .sp-imagecarousel-nav button").eq(t).css({opacity:1})}else{p=parseInt(r*parseInt(n)),c=parseInt(p+parseInt(n));for(var d=p;d<c;d++)jQuery(a).eq(d).css({opacity:1,height:"auto",position:"initial"});jQuery(e+" .sp-imagecarousel-nav button").eq(r+1).css({opacity:1})}});var imagecarousel_timers={};function PureDropdown(e){var t="seedprod-menu-active",r="role",a="aria-hidden",n=".menu-item a",i=window.hasOwnProperty&&window.hasOwnProperty("ontouchstart")?"touchstart":"mousedown",s=this;this._state=1,this.show=function(){0!==this._state&&(this._dropdownParent.classList.add(t),this._menu.setAttribute(a,!1),this._state=0)},this.hide=function(){1!==this._state&&(this._dropdownParent.classList.remove(t),this._menu.setAttribute(a,!0),this._link.focus(),this._state=1)},this.toggle=function(){this[1===this._state?"show":"hide"]()},this.halt=function(e){e.stopPropagation(),e.preventDefault()},this._dropdownParent=e,this._link=this._dropdownParent.querySelector(n),this._menu=this._dropdownParent.querySelector(".sub-menu"),this._firstMenuLink=this._menu.querySelector(n),this._link.setAttribute("aria-haspopup","true"),this._menu.setAttribute(r,"menu"),this._menu.setAttribute("aria-labelledby",this._link.getAttribute("id")),this._menu.setAttribute("aria-hidden","true"),[].forEach.call(this._menu.querySelectorAll("li"),function(e){e.setAttribute(r,"presentation")}),[].forEach.call(this._menu.querySelectorAll("a"),function(e){e.setAttribute(r,"menuitem")}),this._link.addEventListener("click",function(e){0!==s._state&&(e.stopPropagation(),e.preventDefault(),s.show())}),this._link.addEventListener("mouseover",function(e){e.stopPropagation(),e.preventDefault(),window.matchMedia("only screen and (min-width: 768px)").matches&&s.toggle()}),this._link.addEventListener("mouseout",function(e){e.stopPropagation(),e.preventDefault(),window.matchMedia("only screen and (min-width: 768px)").matches&&(s.hide(),s._link.blur())}),document.addEventListener("keydown",function(e){var t,r,a,n,i;if(0===s._state&&!s._menu.querySelector(".menu-item-active"))if(t=s._menu.querySelector(":focus"),27===e.keyCode)s.halt(e),s.hide();else if(40===e.keyCode){for(s.halt(e),a=t?t.parentNode.nextSibling:null;a&&1!==a.nodeType;)a=a.nextSibling;i=a?a.querySelector(".menu-item a"):null,t?i&&i.focus():s._menu.querySelector(".menu-item a").focus()}else if(38===e.keyCode){for(s.halt(e),r=t?t.parentNode.previousSibling:null;r&&1!==r.nodeType;)r=r.previousSibling;n=r?r.querySelector(".menu-item a"):null,t?n&&n.focus():s._menu.querySelector(".menu-item:last-child .menu-item a").focus()}}),document.addEventListener(i,function(e){var t=e.target;t===s._link||s._menu.contains(t)||(s.hide(),s._link.blur())})}function initDropdowns(){for(var e=document.querySelectorAll(".menu-item-has-children"),t=0;t<e.length;t++)new PureDropdown(e[t])}function seedprod_add_basic_lightbox(e){jQuery("#sp-"+e+" a").click(function(){return!1}),new ImgPreviewer("#sp-"+e,{scrollbar:!0,dataUrlKey:"href"}).update()}function seedprod_add_gallery_lightbox(e){jQuery("#sp-"+e+" a.sp-gallery-items").click(function(){return!1});var t=new ImgPreviewer("#sp-"+e+" .sp-gallery-block",{scrollbar:!0,dataUrlKey:"href"});t.update(),jQuery("#sp-"+e+" .sp-gallery-tabs a.sp-gallery-tab-title").click(function(){var r=jQuery(this).attr("data-gallery-index");jQuery("#sp-"+e+" .sp-gallery-tab-title").removeClass("sp-tab-active"),jQuery(this).addClass("sp-tab-active"),jQuery.each(jQuery("#sp-"+e+" .sp-gallery-items"),function(e,t){(jQuery(this).removeClass("sp-hidden-items"),jQuery(this).removeClass("zoom-in"),"all"!=r)&&(-1<jQuery(t).data("tags").indexOf(r)||jQuery(this).addClass("sp-hidden-items"))}),t.update()})}function seedprod_add_gallery_js(e){jQuery("#sp-"+e+" .sp-gallery-tabs a.sp-gallery-tab-title").click(function(){var r=jQuery(this).attr("data-gallery-index");jQuery("#sp-"+e+" .sp-gallery-tab-title").removeClass("sp-tab-active"),jQuery(this).addClass("sp-tab-active"),jQuery.each(jQuery("#sp-"+e+" .sp-gallery-items"),function(e,t){(jQuery(this).removeClass("sp-hidden-items"),jQuery(this).removeClass("zoom-in"),"all"!=r)&&(-1<jQuery(t).data("tags").indexOf(r)||jQuery(this).addClass("sp-hidden-items"))})})}function counter(e){var t=jQuery("#sp-counter-".concat(e," .sp-counter-text-wrapper .sp-counter-number")).attr("data-duration"),r=jQuery("#sp-counter-".concat(e," .sp-counter-text-wrapper .sp-counter-number")).attr("data-start-number"),a=jQuery("#sp-counter-".concat(e," .sp-counter-text-wrapper .sp-counter-number")).attr("data-end-number"),n=jQuery("#sp-counter-".concat(e," .sp-counter-text-wrapper .sp-counter-number")).attr("data-thousands-separator"),i=jQuery("#sp-counter-".concat(e," .sp-counter-text-wrapper .sp-counter-number")).attr("data-separator"),s={};s.duration=t,s.delimiter=n?{default:",",space:" ",dot:"."}[i]:"",s.toValue=a,jQuery("#sp-counter-number-".concat(e)).html(r),jQuery("#sp-counter-number-".concat(e)).numerator(s)}function beforeafterslider(e,t){console.log(t),jQuery("#sp-toggle-".concat(e," .twentytwenty-container")).twentytwenty(t)}function hotspotTooltips(a,e){var n=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-trigger"),i=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-animation"),s=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-duration"),o=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-position"),u=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-show-arrow"),p=jQuery("#sp-".concat(a," .sp-hotspot-image")).attr("data-tooltip-max-width");(e=JSON.parse(e)).map(function(e,t){var r="#sp-".concat(a," #hotspot-").concat(a,"-").concat(t);jQuery(r).tooltipster({animation:i,delay:s,trigger:n,side:o,arrow:"true"===u,maxWidth:p,content:e.tooltipContent,contentCloning:!0,contentAsHTML:!0})})}jQuery(".sp-imagecarousels-wrapper").each(function(e){var t="#"+jQuery(this).attr("id"),r=jQuery(this).attr("data-autoplay"),a=jQuery(this).attr("data-speed");a=""===a?5e3:1e3*parseInt(a),void 0!==r&&(imagecarousel_timers[t]=setInterval(function(){jQuery(t+" .sp-imagecarousel-nav button:last-child").trigger("click")},a))}),jQuery(".sp-imagecarousels-wrapper").hover(function(){var e="#"+jQuery(this).attr("id");clearInterval(imagecarousel_timers[e])}),jQuery(".sp-imagecarousels-wrapper").mouseleave(function(){var e="#"+jQuery(this).attr("id"),t=jQuery(this).attr("data-autoplay"),r=jQuery(this).attr("data-speed");r=""===r?5e3:1e3*parseInt(r),void 0!==t&&(imagecarousel_timers[e]=setInterval(function(){jQuery(e+" .sp-imagecarousel-nav button:last-child").trigger("click")},r))}),jQuery(".hamburger").click(function(){jQuery(this).toggleClass("active"),jQuery(this).next(".nav-menu").toggleClass("active")}),jQuery.fn.isInViewport=function(){var e=jQuery(this).offset().top,t=e+jQuery(this).outerHeight(),r=jQuery(window).scrollTop(),a=r+jQuery(window).height();return r<t&&e<a};