PageSourceSearch

https://www.centumcellae.it/wp-content/cache/wpfc-minified/7b1621x4/hdpre.js

js centumcellae.it collected 2026-10-02 07:13:06 UTC 33,051 bytes, 557 lines download raw bytes

1// source --> https://www.centumcellae.it/wp-content/plugins/youtube-embed-plus/scripts/ytprefs.min.js?ver=14.2.1.3 
2'use strict';(function(b,d){b._EPYT_=b._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus/scripts/",eppath:"/wp-content/plugins/youtube-embed-plus/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:!0,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:!0,ajax_compat:!1,usingdefault:!0,ytapi_load:"light",pause_others:!1,
3facade_mode:!1,not_live_on_channel:!1,maxres_facade:"eager"};b._EPYT_.touchmoved=!1;b._EPYT_.apiVideos=b._EPYT_.apiVideos||{};0===b.location.toString().indexOf("https://")&&(b._EPYT_.ajaxurl=b._EPYT_.ajaxurl.replace("http://","https://"));b._EPYT_.pageLoaded=!1;d(b).on("load._EPYT_",function(){b._EPYT_.pageLoaded=!0});document.querySelectorAll||(document.querySelectorAll=function(a){var c=document,e=c.documentElement.firstChild,g=c.createElement("STYLE");e.appendChild(g);c.__qsaels=[];g.styleSheet.cssText=
4a+"{x:expression(document.__qsaels.push(this))}";b.scrollBy(0,0);return c.__qsaels});"undefined"===typeof b._EPADashboard_&&(b._EPADashboard_={initStarted:!1,checkCount:0,onPlayerReady:function(a){try{if("undefined"!==typeof _EPYT_.epdovol&&_EPYT_.epdovol){var c=parseInt(a.target.getIframe().getAttribute("data-vol"));isNaN(c)||(0===c?a.target.mute():(a.target.isMuted()&&a.target.unMute(),a.target.setVolume(c)))}var e=parseInt(a.target.getIframe().getAttribute("data-epautoplay"));isNaN(e)||1!==e||
5a.target.playVideo()}catch(h){}try{var g=a.target.getIframe(),f=g.getAttribute("id");b._EPYT_.apiVideos[f]=a.target;b._EPYT_.not_live_on_channel&&0<a.target.getVideoUrl().indexOf("live_stream")&&b._EPADashboard_.doLiveFallback(g)}catch(h){}finally{d(a.target.getIframe()).css("opacity",1)}},onPlayerStateChange:function(a){var c=a.target.getIframe();b._EPYT_.pause_others&&a.data===b.YT.PlayerState.PLAYING&&b._EPADashboard_.pauseOthers(a.target);a.data===b.YT.PlayerState.PLAYING&&!0!==a.target.ponce&&
6-1===c.src.indexOf("autoplay=1")&&(a.target.ponce=!0);if(a.data===b.YT.PlayerState.ENDED&&"1"==d(c).data("relstop"))if("function"===typeof a.target.stopVideo)a.target.stopVideo();else{var e=d(c).clone(!0).off();e.attr("src",b._EPADashboard_.cleanSrc(e.attr("src").replace("autoplay=1","autoplay=0")));d(c).replaceWith(e);b._EPADashboard_.setupevents(e.attr("id"));c=e.get(0)}e=d(c).closest(".epyt-gallery");e.length||(e=d("#"+d(c).data("epytgalleryid")));e.length&&"1"==e.find(".epyt-pagebutton").first().data("autonext")&&
7a.data===b.YT.PlayerState.ENDED&&(a=e.find(".epyt-current-video"),a.length||(a=e.find(".epyt-gallery-thumb").first()),a=a.find(" ~ .epyt-gallery-thumb").first(),a.length?a.trigger("click"):e.find('.epyt-pagebutton.epyt-next[data-pagetoken!=""][data-pagetoken]').first().trigger("click"))},isMobile:function(){return/Mobi|Android/i.test(navigator.userAgent)},base64DecodeUnicode:function(a){a=a.replace(/\s/g,"");return decodeURIComponent(Array.prototype.map.call(atob(a),function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""))},
8findSwapBlock:function(a){var c=d(a).closest(".wp-block-embed");c.length||(c=d(a).closest(".epyt-live-chat-wrapper"));c.length||(c=d(a).closest(".epyt-video-wrapper"));c.length||(c=d(a));return c},doLiveFallback:function(a){a=_EPADashboard_.findSwapBlock(a);if(a.length){var c=d("#epyt-live-fallback");if(c.length){var e="";try{e=b._EPADashboard_.base64DecodeUnicode(c.get(0).innerHTML)}catch(f){}if(e){var g=a.parent();b._EPADashboard_.loadYTAPI();a.replaceWith(e);b._EPADashboard_.apiInit();b._EPADashboard_.pageReady();
9setTimeout(function(){"undefined"!==typeof d.fn.fitVidsEP&&g.fitVidsEP()},1)}}}},videoEqual:function(a,c){return a.getIframe&&c.getIframe&&a.getIframe().id===c.getIframe().id?!0:!1},pauseOthers:function(a){if(a)for(var c in b._EPYT_.apiVideos){var e=b._EPYT_.apiVideos[c];e&&"function"===typeof e.pauseVideo&&e!=a&&!_EPADashboard_.videoEqual(e,a)&&"function"===typeof e.getPlayerState&&0<=[YT.PlayerState.BUFFERING,b.YT.PlayerState.PLAYING].indexOf(e.getPlayerState())&&e.pauseVideo()}}
9,justid:function(a){return/[\?&]v=([^&#]*)/.exec(a)[1]},
10setupevents:function(a){if("undefined"!==typeof b.YT&&null!==b.YT&&b.YT.loaded){var c=document.getElementById(a);if(!c.epytsetupdone)return b._EPADashboard_.log("Setting up YT API events: "+a),c.epytsetupdone=!0,c={events:{onReady:b._EPADashboard_.onPlayerReady,onStateChange:b._EPADashboard_.onPlayerStateChange},host:0<(c.src||"").indexOf("nocookie")?"https://www.youtube-nocookie.com":"https://www.youtube.com"},new b.YT.Player(a,c)}},apiInit:function(){if("undefined"!==typeof b.YT){b._EPADashboard_.initStarted=
11!0;for(var a=document.querySelectorAll(_EPYT_.evselector),c=0;c<a.length;c++)a[c].hasAttribute("id")||(a[c].id="_dytid_"+Math.round(8999*Math.random()+1E3)),b._EPADashboard_.setupevents(a[c].id)}},log:function(a){try{console.log(a)}catch(c){}},doubleCheck:function(){b._EPADashboard_.checkInterval=setInterval(function(){b._EPADashboard_.checkCount++;5<=b._EPADashboard_.checkCount||b._EPADashboard_.initStarted?clearInterval(b._EPADashboard_.checkInterval):(b._EPADashboard_.apiInit(),b._EPADashboard_.log("YT API init check"))},
121E3)},selectText:function(a){if(document.selection){var c=document.body.createTextRange();c.moveToElementText(a);c.select()}else if(b.getSelection){var e=b.getSelection();c=document.createRange();c.selectNode(a);e.removeAllRanges();e.addRange(c)}},setVidSrc:function(a,c){if(a.is(".epyt-facade"))a.attr("data-facadesrc",b._EPADashboard_.cleanSrc(c)),a.trigger("click");else{c=b._EPADashboard_.cleanSrc(c);if(a.get(0).src&&a.get(0).contentWindow&&a.get(0).contentWindow.location)try{a.get(0).contentWindow.location.replace(c)}catch(e){a.attr("src",
13c)}else a.attr("src",c);a.get(0).epytsetupdone=!1;b._EPADashboard_.setupevents(a.attr("id"))}a.css("opacity","1")},cleanSrc:function(a){return a.replace("enablejsapi=1?enablejsapi=1","enablejsapi=1")},loadYTAPI:function(){if("undefined"===typeof b.YT){if("never"!==b._EPYT_.ytapi_load&&("always"===b._EPYT_.ytapi_load||d('iframe[src*="youtube.com/embed/"], iframe[data-src*="youtube.com/embed/"], .__youtube_prefs__').length)){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";
14a.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(a)}}else if(b.YT.loaded)if(b._EPYT_.pageLoaded)b._EPADashboard_.apiInit(),b._EPADashboard_.log("YT API available");else d(b).on("load._EPYT_",function(){b._EPADashboard_.apiInit();b._EPADashboard_.log("YT API available 2")})},resolveFacadeQuality:function(a,c){a.epytFacadeCount="undefined"===typeof a.epytFacadeCount?0:a.epytFacadeCount+1;if(c||200>a.naturalHeight)if(c=d(a).attr("src"))d(a).attr("src",c.replace("maxresdefault",
15"hqdefault")),d(a).off("load.epyt");2<a.epytFacadeCount&&d(a).off("load.epyt")},maximizeFacadeQuality:function(a){var c=d(a).attr("src");if(c&&0>c.indexOf("maxresdefault")){c=c.replace("hqdefault","maxresdefault");var e=new Image;e.src=c;d(e).on("load.epyt",function(){d(e).off("load.epyt");200<e.naturalHeight&&(d(a).off("load.epyt"),d(a).attr("src",e.src))}).on("error",function(){d(e).off("load.epyt")}).each(function(){e.complete&&d(e).trigger("load")})}},pageReady:function(){b._EPYT_.not_live_on_channel&&
16"never"!==b._EPYT_.ytapi_load&&d(".epyt-live-channel").each(function(){var a=d(this);a.data("eypt-fallback")||(a.data("eypt-fallback",!0),a.css("opacity",0),setTimeout(function(){a.css("opacity",1)},4E3))});d(".epyt-gallery").each(function(){var a=d(this);if(!a.data("epytevents")||!d("body").hasClass("block-editor-page")){a.data("epytevents","1");var c=d(this).find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first(),e=c.data("src")||c.data("facadesrc")||c.attr("src");e||(e=c.data("ep-src"));
17var g=d(this).find(".epyt-gallery-list .epyt-gallery-thumb").first().data("videoid");"undefined"!==typeof e?(e=e.replace(g,"GALLERYVIDEOID"),a.data("ep-gallerysrc",e)):c.hasClass("__youtube_prefs_gdpr__")&&a.data("ep-gallerysrc","");a.on("click touchend",".epyt-gallery-list .epyt-gallery-thumb",function(f){c=a.find("iframe, div.__youtube_prefs_gdpr__, div.epyt-facade").first();if(!b._EPYT_.touchmoved&&!d(this).hasClass("epyt-current-video")){a.find(".epyt-gallery-list .epyt-gallery-thumb").removeClass("epyt-current-video");
18d(this).addClass("epyt-current-video");f=d(this).data("videoid");a.data("currvid",f);var h=a.data("ep-gallerysrc").replace("GALLERYVIDEOID",f);f=a.find(".epyt-pagebutton").first().data("thumbplay");"0"!==f&&0!==f&&(h=0<h.indexOf("autoplay")?h.replace("autoplay=0","autoplay=1"):h+"&autoplay=1",c.addClass("epyt-thumbplay"));f=Math.max(d("body").scrollTop(),d("html").scrollTop());var k=c.offset().top-parseInt(_EPYT_.gallery_scrolloffset);f>k?d("html, body").animate({scrollTop:k},500,function(){b._EPADashboard_.setVidSrc(c,
19h)}):b._EPADashboard_.setVidSrc(c,h)}}).on("touchmove",function(f){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1}).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",function(f){var h=f.which;if(13===h||32===h)f.preventDefault(),d(this).trigger("click")});a.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){d(this).addClass("hover")});a.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){d(this).removeClass("hover")});
20a.on("click touchend",".epyt-pagebutton",function(f){if(!b._EPYT_.touchmoved&&!a.find(".epyt-gallery-list").hasClass("epyt-loading")){a.find(".epyt-gallery-list").addClass("epyt-loading");var h="undefined"!==typeof f.originalEvent;f={action:"my_embedplus_gallery_page",security:_EPYT_.security,options:{playlistId:d(this).data("playlistid"),pageToken:d(this).data("pagetoken"),pageSize:d(this).data("pagesize"),columns:d(this).data("epcolumns"),showTitle:d(this).data("showtitle"),showPaging:d(this).data("showpaging"),
21autonext:d(this).data("autonext"),thumbplay:d(this).data("thumbplay")}};var k=d(this).hasClass("epyt-next"),n=parseInt(a.data("currpage")+"");a.data("currpage",n+(k?1:-1));d.post(_EPYT_.ajaxurl,f,function(l){a.find(".epyt-gallery-list").html(l);a.find(".epyt-current").each(function(){d(this).text(a.data("currpage"))});
21a.find('.epyt-gallery-thumb[data-videoid="'+a.data("currvid")+'"]').addClass("epyt-current-video");"1"!=a.find(".epyt-pagebutton").first().data("autonext")||h||a.find(".epyt-gallery-thumb").first().trigger("click")}).fail(function(){alert("Sorry, there was an error loading the next page.")}).always(function(){a.find(".epyt-gallery-list").removeClass("epyt-loading");
22if("1"!=a.find(".epyt-pagebutton").first().data("autonext")){var l=Math.max(d("body").scrollTop(),d("html").scrollTop()),m=a.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);l>m&&d("html, body").animate({scrollTop:m},500)}})}}).on("touchmove",function(f){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1})}});d(".__youtube_prefs_gdpr__.epyt-is-override").each(function(){d(this).parent(".wp-block-embed__wrapper").addClass("epyt-is-override__wrapper")});
23d("button.__youtube_prefs_gdpr__").on("click",function(a){a.preventDefault();d.cookie&&(d.cookie("ytprefs_gdpr_consent","1",{expires:30,path:"/"}),b.top.location.reload())});"eager"===b._EPYT_.maxres_facade?d("img.epyt-facade-poster").on("load.epyt",function(){b._EPADashboard_.resolveFacadeQuality(this,!1)}).on("error",function(){b._EPADashboard_.resolveFacadeQuality(this,!0)}).each(function(){this.complete&&d(this).trigger("load")}):"soft"===b._EPYT_.maxres_facade&&d("img.epyt-facade-poster").on("load.epyt",
24function(){b._EPADashboard_.maximizeFacadeQuality(this)}).each(function(){this.complete&&d(this).trigger("load")});d(".epyt-facade-play").each(function(){d(this).find("svg").length||d(this).append('<svg data-no-lazy="1" height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg>')});
25d(".epyt-facade-poster[data-facadeoembed]").each(function(){var a=d(this);if(!a.data("facadeoembedcomplete")){a.data("facadeoembedcomplete","1");var c="https://www.youtube.com/"+a.data("facadeoembed");d.get("https://youtube.com/oembed",{url:c,format:"json"},function(e){e="eager"===b._EPYT_.maxres_facade?e.thumbnail_url.replace("hqdefault","maxresdefault"):e.thumbnail_url;a.attr("src",e)},"json").fail(function(){}
25).always(function(){})}});d(document).on("click",".epyt-facade",function(a){a=d(this);
26var c=a.attr("data-facadesrc");c=b._EPADashboard_.cleanSrc(c);for(var e=document.createElement("iframe"),g=0;g<this.attributes.length;g++){var f=this.attributes[g];(0<=["allow","class","height","id","width"].indexOf(f.name.toLowerCase())||0==f.name.toLowerCase().indexOf("data-"))&&d(e).attr(f.name,f.value)}d(e).removeClass("epyt-facade");d(e).attr("allowfullscreen","").attr("title",a.find("img").attr("alt")).attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture");
27b._EPADashboard_.loadYTAPI();a.replaceWith(e);b._EPADashboard_.setVidSrc(d(e),c);setTimeout(function(){"undefined"!==typeof d.fn.fitVidsEP&&d(d(e).parent()).fitVidsEP()},1)})}});b.onYouTubeIframeAPIReady="undefined"!==typeof b.onYouTubeIframeAPIReady?b.onYouTubeIframeAPIReady:function(){if(b._EPYT_.pageLoaded)b._EPADashboard_.apiInit(),b._EPADashboard_.log("YT API ready");else d(b).on("load._EPYT_",function(){b._EPADashboard_.apiInit();b._EPADashboard_.log("YT API ready 2")})};(!b._EPYT_.facade_mode||
28b._EPYT_.not_live_on_channel&&d('iframe[src*="youtube.com/embed/live_stream"], iframe[data-src*="youtube.com/embed/live_stream"]').length)&&b._EPADashboard_.loadYTAPI();if(b._EPYT_.pageLoaded)b._EPADashboard_.doubleCheck();else d(b).on("load._EPYT_",function(){b._EPADashboard_.doubleCheck()});d(document).ready(function(){b._EPADashboard_.pageReady();(!b._EPYT_.facade_mode||b._EPYT_.not_live_on_channel&&d('iframe[src*="youtube.com/embed/live_stream"], iframe[data-src*="youtube.com/embed/live_stream"]').length)&&
29b._EPADashboard_.loadYTAPI();if(b._EPYT_.ajax_compat)d(b).on("load._EPYT_",function(){d(document).ajaxSuccess(function(a,c,e){c&&c.responseText&&(-1!==c.responseText.indexOf("<iframe ")||-1!==c.responseText.indexOf("enablejsapi"))&&(b._EPADashboard_.loadYTAPI(),b._EPADashboard_.apiInit(),b._EPADashboard_.log("YT API AJAX"),b._EPADashboard_.pageReady())})})})})(window,jQuery);
30// source --> https://www.centumcellae.it/wp-content/plugins/mobile-menu/includes/js/mobmenu.js?ver=2.8.6 
31
32  /*
33    *
34    *   Javascript Functions
35    *   ------------------------------------------------
36    *   WP Mobile Menu
37    *   Copyright WP Mobile Menu 2018 - http://www.wpmobilemenu.com
38    *
39    */
40
41    "use strict";
42    function getSelector(el){
43      var $el = jQuery(el);
44  
45      var id = $el.attr("id");
46      if (id) { //"should" only be one of these if theres an ID
47          return "#"+ id;
48      }
49  
50      var selector = $el.parents()
51                  .map(function() { return this.tagName; })
52                  .get().reverse().join(" ");
53  
54      if (selector) {
55          selector += " "+ $el[0].nodeName;
56      }
57  
58      var classNames = $el.attr("class");
59      if (classNames) {
60          selector += "." + jQuery.trim(classNames).replace(/\s/gi, ".");
61      }
62  
63      var name = $el.attr('name');
64      if (name) {
65          selector += "[name='" + name + "']";
66      }
67      if (!name){
68          var index = $el.index();
69          if (index) {
70              index = index + 1;
71              selector += ":nth-child(" + index + ")";
72          }
73      }
74      return selector;
75    }
76
77    function enableMobileMenuElementPicker(){
78      const p = new Picker({
79          elm: document.getElementById('elm1'),
80          mode: 'cover',
81          excludeElmName: ['body'],
82          events: [{
83              key: 'contextmenu',
84              fn(event) {
85                  event.preventDefault();
86              },
87          }],
88          onInit() {
89          },
90          onClick(event) {
91            var selector = getSelector(event.target).toLowerCase();
92            window.parent.receivePickedElement(selector);
93            jQuery(selector).hide();
94          },
95          onHover(event) {
96          },
97      });
98
99      document.getElementById('m_on').addEventListener('click', () => {
100          p.on();
101      });
102
103      document.getElementById('m_off').addEventListener('click', () => {
104          p.off();
105      });
106
107      document.getElementById('m_cover').addEventListener('click', () => {
108          p.changeMode('cover');
109      });
110
111      document.getElementById('m_target').addEventListener('click', () => {
112          p.changeMode('target');
113      });
114
115    }
116    jQuery( document ).ready( function($) {
117
118      const urlParams = new URLSearchParams( window.location.search );
119
120      if ( urlParams.get( 'mobmenu-action' ) == 'find-element' ) {
121        enableMobileMenuElementPicker();
122      }
123
124      function mobmenuOpenSubmenus( menu ) {
125        var submenu = $(menu).parent().next();
126
127        if ( $(menu).parent().next().hasClass( 'show-sub-menu' )  ) {
128          $(menu).find('.show-sub-menu' ).hide();
129          $(menu).toggleClass( 'show-sub');
130        } else {
131          if ( ! $( menu ).parents('.show-sub-menu').prev().hasClass('mob-expand-submenu') && submenu[0] !== $('.show-sub-menu')[0] && $( menu ).parent('.sub-menu').length <= 0 ) {
132  
133            $(menu).parent().find( '.show-submenu' ).first().hide().toggleClass( 'show-sub-menu' );
134            $(menu).toggleClass( 'show-sub');
135  
136          }
137        }
138
139        if ( !$( menu ).parent().next().hasClass( 'show-sub-menu' ) ) {
140          submenu.fadeIn( 'slow' );
141        } else {  
142          submenu.hide();
143        }
144
145        if ( ! $('body').hasClass('mob-menu-sliding-menus') ) {
146          $( menu ).find('.open-icon').toggleClass('hide');
147          $( menu ).find('.close-icon').toggleClass('hide');
148        }
149
150        submenu.toggleClass( 'show-sub-menu');
151        
152
153      }
154
155      if ( $( 'body' ).find( '.mobmenu-push-wrap' ).length <= 0 &&  $( 'body' ).hasClass('mob-menu-slideout') ) {
156
157        $( 'body' ).wrapInner( '<div class="mobmenu-push-wrap"></div>' );
158        $( '.mobmenu-push-wrap' ).after( $( '.mobmenu-left-alignment' ).detach() );
159        $( '.mobmenu-push-wrap' ).after( $( '.mobmenu-right-alignment' ).detach() );
160        $( '.mobmenu-push-wrap' ).after( $( '.mob-menu-header-holder' ).detach() ); 
161        $( '.mobmenu-push-wrap' ).after( $( '.mobmenu-footer-menu-holder' ).detach() ); 
162        $( '.mobmenu-push-wrap' ).after( $( '.mobmenu-overlay' ).detach() ); 
163        $( '.mobmenu-push-wrap' ).after( $( '#wpadminbar' ).detach() );
164
165        if ( $('.mob-menu-header-holder' ).attr( 'data-detach-el' ) != '' ) {
166          $( '.mobmenu-push-wrap' ).after( $(   $('.mob-menu-header-holder' ).attr( 'data-detach-el' ) ).detach() );
167        }
168
169      }
170      // Double Check the the menu display classes where added to the body.
171      var menu_display_type = $( '.mob-menu-header-holder' ).attr( 'data-menu-display' );
172
173      if ( menu_display_type != '' && !$( 'body' ).hasClass( 'mob-menu-slideout' ) && !$( 'body' ).hasClass( 'mob-menu-slideout-over' ) && !$( 'body' ).hasClass( 'mob-menu-slideout-top' ) && !$( 'body' ).hasClass( 'mob-menu-overlay' ) ) {
174        $( 'body' ).addClass( menu_display_type );
175      }
176
177      // Only force autoplay videos in desktop
178      if(! ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) ){
179        $( 'video' ).each( function(){
180          if( 'autoplay' === $( this ).attr('autoplay') ) {
181            $( this )[0].play();
182          } 
183        });
184      }
185
186      var submenu_open_icon  = $( '.mob-menu-header-holder' ).attr( 'data-open-icon' );
187      var submenu_close_icon = $( '.mob-menu-header-holder' ).attr( 'data-close-icon' );
188
189      $( '.mobmenu-content .sub-menu' ).each( function(){
190
191        $( this ).prev().append('<div class="mob-expand-submenu"><i class="mob-icon-' + submenu_open_icon + ' open-icon"></i><i class="mob-icon-' + submenu_close_icon + ' close-icon hide"></i></div>');
192
193        if ( 0 < $( this ).parents( '.mobmenu-parent-link' ).length  ) {
194          $( this ).prev().attr('href', '#');
195        }
196
197      });
198      
199      $( document ).on( 'click', '.mobmenu-parent-link .menu-item-has-children' , function ( e ) {
200        
201        if ( e.target.parentElement != this) return;
202        
203        e.preventDefault();
204        $(this).find('a').find('.mob-expand-submenu').first().trigger('click');
205        e.stopPropagation();
206        
207      });
208      $( document ).on( 'click', '.show-nav-left .mobmenu-push-wrap,  .show-nav-left .mobmenu-overlay', function ( e ) { 
209  
210        e.preventDefault();
211        $( '.mobmenu-left-bt' ).first().trigger( 'click' );
212        e.stopPropagation();
213
214      });
215      
216      $( document ).on( 'click', '.mob-expand-submenu' , function ( e ) {
217
218        // Check if any menu is open and close it.
219        if ( 1 == $( '.mob-menu-header-holder' ).attr( 'data-autoclose-submenus' ) && ! $(this).parent().next().hasClass( 'show-sub-menu' ) ) {
220          if ( 0 < $( '.mob-expand-submenu.show-sub' ).length &&  $(this).parents('.show-sub-menu').length <= 0 ) {
221            mobmenuOpenSubmenus( $( '.mob-expand-submenu.show-sub' ) );
222          }
223        }
224
225        mobmenuOpenSubmenus( $(this) );
226        e.preventDefault();
227        e.stopPropagation();
228
229      });
230
231      $( document ).on( 'keyup', '.mobmenu-left-bt', function(e){
232        if( e.type != 'click' && e.which != 13 || e.which == 9 || jQuery(this).hasClass( 'mobmenu-trigger-action' ) ) {
233          return;
234        }
235
236        mobmenuClosePanel( 'mobmenu-left-panel' );
237        e.stopPropagation();
238      });
239
240      $( document ).on( 'keyup', '.mobmenu-right-bt', function(e){
241        if( e.type != 'click' && e.which != 13 || e.which == 9 || jQuery(this).hasClass( 'mobmenu-trigger-action' ) ) {
242          return;
243        }
244
245        mobmenuClosePanel( 'mobmenu-right-panel' );
246        e.stopPropagation();
247      });
248
249      
250     
251      $( document ).on( 'click', '.mobmenu-panel.show-panel .mob-cancel-button, .show-nav-right .mobmenu-overlay, .show-nav-left .mobmenu-overlay', function ( e ) { 
252        
253        
254
255        e.preventDefault();
256        mobmenuClosePanel( 'show-panel' );
257        if ( $('body').hasClass('mob-menu-sliding-menus') ) {
258          $( '.mobmenu-trigger-action .hamburger' ).toggleClass('is-active');
259        }
260
261      });
262
263      $( document ).on( 'click', '.mobmenu-trigger-action', function(e){
264        e.preventDefault();
265        
266        var targetPanel = $( this ).attr( 'data-panel-target' );
267        
268        if ( ! $( 'body' ).hasClass( 'show-nav-left' ) &&  ! $( 'body' ).hasClass( 'show-nav-right' )  ) {
269          if ( 'mobmenu-filter-panel' !==  targetPanel ) {
270            mobmenuOpenPanel( targetPanel );
271          }
272        }
273
274      });
275
276      $( document ).on( 'click', '.hamburger', function(e){
277        var targetPanel = $(this).parent().attr('data-panel-target');
278        e.preventDefault();
279        e.stopPropagation();
280        
281        $(this).toggleClass( 'is-active' );
282        
283        setTimeout(function(){ 
284          if ( $( 'body' ).hasClass('show-nav-left') ) {
285            if ( $('body').hasClass('mob-menu-sliding-menus') ) {
286              $( '.mobmenu-trigger-action .hamburger' ).toggleClass('is-active');
287            }
288            mobmenuClosePanel( targetPanel );
289            
290          } else {
291            mobmenuOpenPanel( targetPanel );
292          }
293            
294        }, 400);
295        
296
297      });
298     
299      $('.mobmenu a[href*="#"], .mobmenu-panel a[href*="#"]')
300        // Remove links that don't actually link to anything
301        .not('[href="#0"]')
302        .on( 'click', function(event) {
303          // On-page links  
304  
305        if (
306          location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
307          && 
308          location.hostname == this.hostname
309          &&
310          $(this).parents('.mobmenu-content').length > 0
311        ) {
312          // Figure out element to scroll to.
313          var target;
314
315          try {
316	          target = decodeURIComponent( this.hash );
317          } catch(e) {
318 	          target = this.hash;
319          }
320
321          $( 'html' ).css( 'overflow', '' );
322
323          // Does a scroll target exist?
324          if (target.length) {
325
326            
327          if ( 0 < $(this).parents('.mobmenu-left-panel').length ) {
328            mobmenuClosePanel( 'mobmenu-left-panel' );
329          } else {
330            mobmenuClosePanel( 'mobmenu-right-panel' );
331          }
332
333            target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
334
335            $('body,html').animate({
336              scrollTop: target.offset().top - $(".mob-menu-header-holder").height() - 50
337            }, 1000);
338          }
339        }
340      });
341      function mobmenuClosePanel( target ) {
342
343        $( '.' + target ).toggleClass( 'show-panel' );
344        $( 'html' ).removeClass( 'show-mobmenu-filter-panel' );
345        $( 'body' ).removeClass( 'show-nav-right' );
346        $( 'body' ).removeClass( 'show-nav-left' );
347        $( 'html' ).removeClass( 'mob-menu-no-scroll' ); 
348
349        setTimeout(function(){
350          $( '.mob-menu-sliding-menus [data-menu-level]' ).scrollTop( '0' );
351          if ( 1 == $( '.mob-menu-header-holder' ).attr( 'data-autoclose-submenus' )  ) {
352            $( '.mob-expand-submenu.show-sub' ).click();
353            $( '.mobmenu-content .show-sub-menu' ).removeClass( 'show-sub-menu' );
354          }
355          
356        }, 400);
357
358      }
359    
360      function mobmenuOpenPanel( target) {
361        $( '.mobmenu-content' ).scrollTop(0);
362        $( 'html' ).addClass( 'mob-menu-no-scroll' ); 
363    
364        if ( $('.' + target ).hasClass( 'mobmenu-left-alignment' ) ) {
365          $('body').addClass('show-nav-left');
366        }
367        if ( $('.' + target ).hasClass( 'mobmenu-right-alignment' ) ) {
368          $('body').addClass('show-nav-right');
369        }
370    
371        $('.' + target ).addClass( 'show-panel' );
372    
373      }
374    });
375
376window.Picker = class Picker {
377  constructor(options = {}) {
378      this.elm = options.elm || document.querySelector('body');
379      this.mode = options.mode || 'target';
380      this.excludeElmName = options.excludeElmName || [];
381      this.switch = typeof options.switch === 'boolean' ? options.switch : true;
382
383      this.events = options.events || [];
384      this.onInit = options.onInit;
385      this.onClick = options.onClick ? options.onClick.bind(this) : null;
386      this.onHover = options.onHover ? options.onHover.bind(this) : null;
387
388
389      // Internal handler
390      this.fn_bind_clickHandle = null;
391      this.fn_bind_hoverHandle = null;
392      this.fn_bind_contextmenuHandle = null;
393      this._init();
394  }
395  on() {
396      this.switch = true;
397  }
398  off() {
399      this.switch = false;
400      this._removeTargetShowPos();
401      this._removeCoverShowPos();
402  }
403  changeMode(mode) {
404      let modeArr = ['cover', 'target'];
405      if (modeArr.includes(mode)) {
406          this.mode = mode;
407          this._removeTargetShowPos();
408          this._removeCoverShowPos();
409      } else {
410          console.error(`Mode error, only includes [ ${modeArr.join(" | ")} ]`);
411      }
412  }
413  destroy() {
414      this.events.forEach((eo) => {
415          eo.fn_bind = eo.fn.bind(this);
416          this.elm.removeEventListener(eo.key, this[`_${eo.key}_Handle`], false);
417      });
418
419      this.elm.removeEventListener('mouseover', this.fn_bind_hoverHandle, false);
420      this.elm.removeEventListener('click', this.fn_bind_clickHandle, false);
421
422      this._removeTargetShowPos();
423      document.querySelector("#_picker_cover_wrap_box").remove();
424  }
425  _init() {
426      let wrapDom = document.createElement('div');
427      wrapDom.setAttribute("id", "_picker_cover_wrap_box");
428      wrapDom.innerHTML = '<svg></svg>';
429      document.body.appendChild(wrapDom);
430      this._initEvent();
431      this.onInit && this.onInit();
432  }
433  _initEvent() {
434      this.events.forEach((eo) => {
435          this[`_${eo.key}_Handle`] = (event) => {
436              if (this._triggerEvent(event) === false) return;
437              eo.fn && eo.fn(event);
438          };
439          eo.fn_bind = this[`_${eo.key}_Handle`].bind(this);
440          this.elm.addEventListener(eo.key, this[`_${eo.key}_Handle`], false);
441      });
442
443      this.fn_bind_hoverHandle = this._hoverHandle.bind(this);
444      this.fn_bind_clickHandle = this._clickHandle.bind(this);
445
446      this.elm.addEventListener('mouseover', this.fn_bind_hoverHandle, false);
447      this.elm.addEventListener('click', this.fn_bind_clickHandle, false);
448
449  }
450  _triggerEvent(event) {
451      let tipsDom = document.querySelector("#_pick_tips_content");
452      if (
453          this.switch &&
454          !this.excludeElmName.includes(event.target.localName.toLocaleLowerCase()) &&
455          !(tipsDom ? tipsDom.contains(event.target) : 0)
456      ) {
457          event.stopPropagation();
458          event.preventDefault();
459          return true;
460      } else {
461          return false;
462      }
463  }
464  _hoverHandle(event) {
465      if (this._triggerEvent(event) === false) return;
466      switch (this.mode) {
467          case 'cover':
468              this._coverShowPos(event);
469              break;
470          case 'target':
471              this._targetShowPos(event);
472              break;
473      }
474      this.onHover && this.onHover(event);
475  }
476  _clickHandle(event) {
477      if (this._triggerEvent(event) === false) return;
478      this.onClick && this.onClick(event);
479  }
480  _targetShowPos(event) {
481      this._removeTargetShowPos();
482      if (event.target.localName === 'body') return;
483      event.target.classList.add("_picker_target_elm");
484  }
485  _removeTargetShowPos() {
486      document.querySelectorAll("._picker_target_elm").forEach((elm) => {
487          elm.classList.remove("_picker_target_elm");
488      });
489  }
490  _coverShowPos(event) {
491      let elm = event.target;
492      let W_W = window.screen.availWidth;
493      let W_H = window.screen.availHeight;
494      let pos = elm.getBoundingClientRect();
495      let p = {
496          tX: pos.left > 0 ? pos.left : 0,
497          tY: pos.top > 0 ? pos.top : 0,
498          w: pos.right - pos.left,
499          h: pos.bottom - pos.top,
500      };
501      let path_W = `M 0 0 h ${W_W} v ${W_H} h -${W_W} Z`;
502      let path_box = `M ${p.tX} ${p.tY} h ${p.w} v ${p.h} h -${p.w} Z`;
503      let elm_path1 = `<path d="${path_W} ${path_box}"></path>`;
504      let elm_path2 = `<path d="${path_box}"></path>`;
505      document.querySelector("#_picker_cover_wrap_box svg").innerHTML = elm_path1 + elm_path2;
506  }
507  _removeCoverShowPos() {
508      document.querySelector("#_picker_cover_wrap_box svg").innerHTML = '';
509  }
510};
511// source --> https://www.centumcellae.it/wp-content/plugins/youtube-video-player/front_end/scripts/youtube_embed_front_end.js?ver=6.5.5 
512var loc_this= new Array()
513function onYouTubeIframeAPIReady(){	
514  jQuery('.youtube_embed_iframe').each(function(index, element) {  			
515		loc_this[index]=element;
516        var player = new YT.Player(element, {
517          events: {
518            'onReady':  set_initial_values 
519           /* 'onStateChange': onPlayerStateChange*/
520          }
521        });	
522		function set_initial_values(event){			
523				if(jQuery(loc_this[index]).attr('data-volume')){					
524					player.setVolume(jQuery(loc_this[index]).attr('data-volume'));
525				}
526			}	
527    });	
528}
529function disable_player_autoplay_in_iframes(){
530	jQuery('body').find('iframe[date-autoplay=1]').each(function(){jQuery(this).attr('src',jQuery(this).attr('src').replace('autoplay=1','autoplay=0'))});
531}
532jQuery(document).ready(function(e) {
533    jQuery('.youtube_embed_thickbox').on('click',function(){
534		var iframe_set_autoplay=jQuery(this).find('iframe[date-autoplay=1]');
535		if(iframe_set_autoplay){
536			iframe_set_autoplay=iframe_set_autoplay.eq(0)
537			jQuery(iframe_set_autoplay).attr('src',jQuery(iframe_set_autoplay).attr('src').replace('autoplay=0','autoplay=1'))
538		}
539		tb_remove=function() {
540		jQuery("#TB_imageOff").unbind("click");
541		jQuery("#TB_closeWindowButton").unbind("click");
542		jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("tb_unload").unbind().remove();});
543		jQuery( 'body' ).removeClass( 'modal-open' );
544		jQuery("#TB_load").remove();
545		if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
546			jQuery("body","html").css({height: "auto", width: "auto"});
547			jQuery("html").css("overflow","");
548		}
549		jQuery(document).unbind('.thickbox');
550		disable_player_autoplay_in_iframes();
551		return false;
552	}
553	});
554	
555	
556	
557});

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.