$(document).ready(function(){SimpleJekyllSearch({searchInput:document.getElementById("search-input"),resultsContainer:document.getElementById("results-container"),json:"/search.json",searchResultTemplate:'{title}',noResultsText:'Nessun risultato',exclude:["https://blog.unitoo.it","https://blog.unitoo.pw"]});$(".morphext-bounce-in").Morphext({animation:"bounceIn",speed:2500}),$(".morphext-bounce-left").Morphext({animation:"zoomInLeft",speed:4500}),$(".morphext-bounce-up").Morphext({animation:"bounceInUp",speed:6500});var o=function(){var e=document.getElementById("radio-player");e.paused&&e.play()},e=function(){$("body").overhang({custom:!0,type:"confirm",primary:"#f39200",accent:"#ffc56e",yesColor:"white",yesMessage:" Adoro!",noMessage:" Magari un'altra volta!",noColor:"white",message:"Ti piacerebbe ascoltare la radio mentre navighi sul sito?",callback:function(e){e?(createCookie("radio-autoplay","true",31),_paq.push(["trackGoal",2]),o()):createCookie("radio-autoplay","false",31)}})},a=readCookie("radio-autoplay");if(null==a)setTimeout(e,8e3);else if("true"==a){var t=document.getElementById("radio-player");$("#radio-autoplay-button").prop("checked",!0),t.autoplay=a}$("#radio-autoplay-button").on("change",function(e){eraseCookie("radio-autoplay"),createCookie("radio-autoplay",$(e.currentTarget).is(":checked"),31)}),$("#play-podcast").off(),$("#play-podcast").on("click",function(){var e=$("#select-podcast").val();window.open(e,$("#select-podcast option:selected").html(),"width=500,height=400")})});