$(document).ready(function(){$(".js-datatable").DataTable();$(".js-datatable-episodes").DataTable({ordering:!1,sDom:'<"top"<"dt-filter"f><"dt-page"p>>rt<"bottom"><"clear">',iDisplayLength:10});$(".js-datatable-admin-content").DataTable({sDom:'<"top"<"dt-filter"f><"dt-page"p>>rt<"bottom"<"dt-page"p>><"clear">',iDisplayLength:15})});$(document).ready(function(){$(".datepicker").datepicker();$(".yearpicker").datepicker({changeMonth:!0,changeYear:!0,dateFormat:"mm/dd/yy"});$(".monthpicker").datepicker({changeMonth:!0,changeYear:!0,changeDate:!1,dateFormat:"M yy"});$("#carousel-featured").owlCarousel({loop:!0,nav:!0,autoplay:!0,autoplaySpeed:300,autoplayHoverPause:!0,items:1});var n=function(){var n=function(){$("#episode-player-row").hide();$("#content-player").jPlayer({ready:function(){$(this).jPlayer("setMedia",{})},play:function(){$(this).jPlayer("pauseOthers")},timeFormat:{padMin:!1},swfPath:"js",supplied:"mp3,oga",cssSelectorAncestor:"#jp_container_audio_1",useStateClassSkin:!0,autoBlur:!1,smoothPlayBar:!0,remainingDuration:!0,keyEnabled:!0,keyBindings:{loop:null,muted:null,volumeUp:null,volumeDown:null},wmode:"window"});$(".js-podcast-episode").on("click",".episode-play",function(){console.log("play-episode click");$("#episode-player-row").show();var n=$(this).data("episode"),t=$(this).data("title");$("#content-player").jPlayer("setMedia",{mp3:n,title:t});$("#content-player").jPlayer("play")})};return{Init:n}}();n.Init();$(".js-chosen").chosen({})});$(window).load(function(){(function(){var n=$("meta[property='og:title']").attr("content");$("#share").jsSocials({showLabel:!1,showCount:!1,shares:["email",{share:"twitter",hashtags:"HistoryPodcasts",text:n},"facebook","googleplus",{share:"reddit",title:n}]})})()})