// source --> https://www.andreacarancini.it/wp-content/plugins/jetpack/_inc/build/related-posts/related-posts.min.js?ver=20210219 /* Do not modify this file directly. It is compiled from other files. */ /* globals related_posts_js_options */ !function(){"use strict";var t={response:null,getEndpointURL:function(t){var e,s="undefined"!=typeof wp&&wp.customize&&wp.customize.settings&&wp.customize.settings.url&&wp.customize.settings.url.self;s?(e=document.createElement("a")).href=wp.customize.settings.url.self:e=document.location,"string"==typeof t&&t.match(/^https?:\/\//)&&((e=document.createElement("a")).href=t);var a="relatedposts=1",o=document.querySelector("#jp-relatedposts");o.hasAttribute("data-exclude")&&(a+="&relatedposts_exclude="+o.getAttribute("data-exclude")),s&&(a+="&jetpackrpcustomize=1");var r=e.pathname;return"/"!==r[0]&&(r="/"+r),""===e.search?r+"?"+a:r+e.search+"&"+a},getAnchor:function(t,e){var s=t.title,a=document.createElement("a");a.setAttribute("class",e),a.setAttribute("href",t.url),a.setAttribute("title",s),a.setAttribute("data-origin",t.url_meta.origin),a.setAttribute("data-position",t.url_meta.position),""!==t.rel&&a.setAttribute("rel",t.rel);var o=document.createElement("div");o.appendChild(a);var r=o.innerHTML;return[r.substring(0,r.length-4),""]},generateMinimalHtml:function(t,e){var s=this,a="";return t.forEach(function(t,o){var r=s.getAnchor(t,"jp-relatedposts-post-a"),p="jp-relatedposts-post jp-relatedposts-post"+o;t.classes.length>0&&(p+=" "+t.classes.join(" ")),a+='

',a+=''+r[0]+t.title+r[1]+"",e.showDate&&(a+='"),e.showContext&&(a+=''+t.context+""),a+="

"}),'"},generateVisualHtml:function(t,e){var s=this,a="";return t.forEach(function(t,o){var r=s.getAnchor(t,"jp-relatedposts-post-a"),p="jp-relatedposts-post jp-relatedposts-post"+o;t.classes.length>0&&(p+=" "+t.classes.join(" ")),t.img.src?p+=" jp-relatedposts-post-thumbs":p+=" jp-relatedposts-post-nothumbs";var n=document.createElement("p");n.innerHTML=t.excerpt;var i=n.textContent;if(a+='
',t.img.src)a+=r[0]+''+t.img.alt_text+''+r[1];else{var l=s.getAnchor(t,"jp-relatedposts-post-a jp-relatedposts-post-aoverlay");a+=l[0]+l[1]}a+="<"+related_posts_js_options.post_heading+' class="jp-relatedposts-post-title">'+r[0]+t.title+r[1]+"",a+='

'+i+"

",e.showDate&&(a+='"),e.showContext&&(a+='

'+t.context+"

"),a+="
"}),'"},setVisualExcerptHeights:function(){var t=document.querySelectorAll("#jp-relatedposts .jp-relatedposts-post-nothumbs .jp-relatedposts-post-excerpt");if(t.length)for(var e=getComputedStyle(t[0]),s=parseInt(e.fontSize,10),a=parseInt(e.lineHeight,10),o=0;o https://www.andreacarancini.it/wp-content/plugins/archives-calendar-widget/admin/js/jquery.arcw-init.js?ver=1.0.14 !function(a){a.fn.archivesCW=function(b){return b&&"object"!=typeof b||(b=a.extend({},a.fn.archivesCW.defaults,b)),this.each(function(){new $archivesCW(a(this),b)})},$archivesCW=function(b,c){var d=b.find(".calendar-navigation"),e=d.find(".menu"),f=parseInt(e.find("a.current").attr("rel")),g=d.find(".title"),h=d.find(".prev-year"),i=d.find(".next-year"),j=function(a){g.html(a)},k=function(){f==n-1?h.addClass("disabled"):h.removeClass("disabled"),0==f?i.addClass("disabled"):i.removeClass("disabled")},l=function(){e.find("a.selected, a[rel="+f+"]").toggleClass("selected");var a=e.find("a.selected").parent();e.css("top",-a.index()*parseInt(d.outerHeight()))},m=function(c,d){var e=f;c https://www.andreacarancini.it/wp-content/plugins/author-showcase/buybook.js?ver=5.7.8 jQuery.noConflict(); jQuery(document).ready(function(){ jQuery(".toggle").each(function(){ jQuery(this).find(".box-invisible").hide(); }); jQuery(".toggle").each(function(){ jQuery(this).find(".trigger").click(function() { jQuery(this).toggleClass("active").next().stop(true, true).slideToggle("normal"); return false; }); }); });