/* https://pa.onair.cc/wp-includes/js/admin-bar.min.js */ try{ "undefined"!=typeof jQuery?("undefined"==typeof jQuery.fn.hoverIntent&&!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g)) .ab-item").bind("keydown.adminbar",function(c){if(13==c.which){var d=a(c.target),e=d.closest(".ab-sub-wrapper"),f=d.parent().hasClass("hover");c.stopPropagation(),c.preventDefault(),e.length||(e=a("#wpadminbar .quicklinks")),e.find(".menupop").removeClass("hover"),f||d.parent().toggleClass("hover"),d.siblings(".ab-sub-wrapper").find(".ab-item").each(b)}}).each(b),a("#wpadminbar .ab-item").bind("keydown.adminbar",function(c){if(27==c.which){var d=a(c.target);c.stopPropagation(),c.preventDefault(),d.closest(".hover").removeClass("hover").children(".ab-item").focus(),d.siblings(".ab-sub-wrapper").find(".ab-item").each(b)}}),e.click(function(b){"wpadminbar"!=b.target.id&&"wp-admin-bar-top-secondary"!=b.target.id||(e.find("li.menupop.hover").removeClass("hover"),a("html, body").animate({scrollTop:0},"fast"),b.preventDefault())}),a(".screen-reader-shortcut").keydown(function(b){var c,d;13==b.which&&(c=a(this).attr("href"),d=navigator.userAgent.toLowerCase(),d.indexOf("applewebkit")!=-1&&c&&"#"==c.charAt(0)&&setTimeout(function(){a(c).focus()},100))}),a("#adminbar-search").on({focus:function(){a("#adminbarsearch").addClass("adminbar-focused")},blur:function(){a("#adminbarsearch").removeClass("adminbar-focused")}}),"sessionStorage"in window&&a("#wp-admin-bar-logout a").click(function(){try{for(var a in sessionStorage)a.indexOf("wp-autosave-")!=-1&&sessionStorage.removeItem(a)}catch(b){}}),navigator.userAgent&&document.body.className.indexOf("no-font-face")===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})):!function(a,b){var c,d=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(){return c.call(a,window.event)})},e=new RegExp("\\bhover\\b","g"),f=[],g=new RegExp("\\bselected\\b","g"),h=function(a){for(var b=f.length;b--;)if(f[b]&&a==f[b][1])return f[b][0];return!1},i=function(b){for(var d,i,j,k,l,m,n=[],o=0;b&&b!=c&&b!=a;)"LI"==b.nodeName.toUpperCase()&&(n[n.length]=b,i=h(b),i&&clearTimeout(i),b.className=b.className?b.className.replace(e,"")+" hover":"hover",k=b),b=b.parentNode;if(k&&k.parentNode&&(l=k.parentNode,l&&"UL"==l.nodeName.toUpperCase()))for(d=l.childNodes.length;d--;)m=l.childNodes[d],m!=k&&(m.className=m.className?m.className.replace(g,""):"");for(d=f.length;d--;){for(j=!1,o=n.length;o--;)n[o]==f[d][1]&&(j=!0);j||(f[d][1].className=f[d][1].className?f[d][1].className.replace(e,""):"")}},j=function(b){for(;b&&b!=c&&b!=a;)"LI"==b.nodeName.toUpperCase()&&!function(a){var b=setTimeout(function(){a.className=a.className?a.className.replace(e,""):""},500);f[f.length]=[b,a]}(b),b=b.parentNode},k=function(b){for(var d,e,f,h=b.target||b.srcElement;;){if(!h||h==a||h==c)return;if(h.id&&"wp-admin-bar-get-shortlink"==h.id)break;h=h.parentNode}for(b.preventDefault&&b.preventDefault(),b.returnValue=!1,-1==h.className.indexOf("selected")&&(h.className+=" selected"),d=0,e=h.childNodes.length;d800?130:100,c=Math.min(12,Math.round(b/g)),d=b>800?Math.round(b/30):Math.round(b/20),e=[],f=0;b;)b-=d,b<0&&(b=0),e.push(b),setTimeout(function(){window.scrollTo(0,e.shift())},f*c),f++};d(b,"load",function(){c=a.getElementById("wpadminbar"),a.body&&c&&(a.body.appendChild(c),c.className&&(c.className=c.className.replace(/nojs/,"")),d(c,"mouseover",function(a){i(a.target||a.srcElement)}),d(c,"mouseout",function(a){j(a.target||a.srcElement)}),d(c,"click",k),d(c,"click",function(a){l(a.target||a.srcElement)}),d(document.getElementById("wp-admin-bar-logout"),"click",function(){if("sessionStorage"in window)try{for(var a in sessionStorage)a.indexOf("wp-autosave-")!=-1&&sessionStorage.removeItem(a)}catch(b){}})),b.location.hash&&b.scrollBy(0,-32),navigator.userAgent&&document.body.className.indexOf("no-font-face")===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})}(document,window); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/bbpress/templates/default/js/engagements.min.js */ try{ /*! This file is automatically generated. */ jQuery(document).ready(function(t){function e(e,o,n,a,c){var b={action:e,id:o,type:n,nonce:a};t.post(bbpEngagementJS.bbp_ajaxurl,b,function(e){e.success?t(c).html(e.content):(e.content||(e.content=bbpEngagementJS.generic_ajax_error),window.alert(e.content))})}t("#favorite-toggle").on("click","span a.favorite-toggle",function(o){o.preventDefault(),e("favorite",t(this).data("bbp-object-id"),t(this).data("bbp-object-type"),t(this).data("bbp-nonce"),"#favorite-toggle")}),t("#subscription-toggle").on("click","span a.subscription-toggle",function(o){o.preventDefault(),e("subscription",t(this).data("bbp-object-id"),t(this).data("bbp-object-type"),t(this).data("bbp-nonce"),"#subscription-toggle")}),t(".bbp-alert-outer").on("click",".bbp-alert-close",function(e){e.preventDefault(),t(this).closest(".bbp-alert-outer").fadeOut()}),t(".bbp-alert-outer").on("click",function(e){this===e.target&&t(this).closest(".bbp-alert-outer").fadeOut()}),t(document).keyup(function(e){27===e.keyCode&&t(".bbp-alert-outer .bbp-alert-close").click()})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/bbpress/templates/default/js/reply.min.js */ try{ /*! This file is automatically generated. */ addReply={moveForm:function(e,t,n,o){var i=this,d=i.getElement(e),l=i.getElement(n),r=i.getElement("bbp-cancel-reply-to-link"),m=i.getElement("bbp_reply_to"),p=i.getElement("bbp_topic_id");if(i.removeEditor(),d&&l&&r&&m){if(i.respondId=n,o=o||!1,!i.getElement("bbp-temp-form-div")){var s=document.createElement("div");s.id="bbp-temp-form-div",s.style.display="none",l.parentNode.appendChild(s)}return d.parentNode.appendChild(l),p&&o&&(p.value=o),m.value=t,r.style.display="",i.addEditor(),r.onclick=function(){var e=addReply,t=e.getElement("bbp-temp-form-div"),n=e.getElement(e.respondId);e.removeEditor(),t&&n&&(e.getElement("bbp_reply_to").value="0",t.parentNode.insertBefore(n,t),t.parentNode.removeChild(t),this.style.display="none",this.onclick=null,e.addEditor())},i.scrollToForm(),!1}},scrollToForm:function(){var e=this,t=e.getElement("new-post").getBoundingClientRect(),n=(window.pageYOffset||document.scrollTop)-(document.clientTop||0),o=n+t.top,i=o800?30:20,m=Math.min(12,Math.round(distance/r)),p=Math.round(distance/r),s=[],c=0;if(!0===i)for(;n>o;)(n-=p)o&&(n=o),s.push(n-l),setTimeout(function(){window.scrollTo(0,s.shift())},c*m),c++},getElement:function(e){return document.getElementById(e)},removeEditor:function(){if("undefined"!=typeof tinyMCE){var e=tinyMCE.get("bbp_reply_content");e&&!e.isHidden()?(this.mode="tmce",e.remove()):this.mode="html"}},addEditor:function(){"undefined"!=typeof tinyMCE&&("tmce"===this.mode?switchEditors.go("bbp_reply_content","tmce"):"html"===this.mode&&switchEditors.go("bbp_reply_content","html"))}}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/wp-user-avatar/assets/js/frontend.min.js */ try{ !function(){"use strict";!function($,e,t){(new function(){var a=this;this.init=function(){e.ppFormRecaptchaLoadCallback=this.recaptcha_processing,$(".pp-del-profile-avatar").click(this.delete_avatar),$(".pp-del-cover-image").click(this.delete_profile_image_cover),$(document).on("click",".has-password-visibility-icon .pp-form-material-icons",this.toggle_password_visibility),$(document.body).on("click","a.showlogin",(function(){$(".pp_wc_login").slideToggle()})),$(e).on("load resize",(function(){a.defaultUserProfileResponsive()})),"true"!==pp_ajax_form.disable_ajax_form&&($(document).on("submit",'form[data-pp-form-submit="login"]',this.ajax_login),$(document).on("submit",'form[data-pp-form-submit="signup"]',this.ajax_registration),$(document).on("submit",'form[data-pp-form-submit="passwordreset"]',this.ajax_password_reset),$(document).on("submit",'form[data-pp-form-submit="editprofile"]',this.ajax_edit_profile))},this.recaptcha_processing=function(){$(".pp-g-recaptcha").each((function(e,t){var s=$(t).attr("data-sitekey"),r=$(this).parents(".pp-form-container").find("form");if("v3"===$(t).attr("data-type"))r.find("input.pp-submit-form").on("click",(function(e){e.preventDefault(),a._add_processing_label(r),grecaptcha.ready((function(){grecaptcha.execute(s,{action:"form"}).then((function(e){r.find('[name="g-recaptcha-response"]').remove(),r.append($("",{type:"hidden",value:e,name:"g-recaptcha-response"})),r.submit()}))}))}));else{var i=grecaptcha.render(t,{sitekey:s,theme:$(t).attr("data-theme"),size:$(t).attr("data-size")});r.on("pp_form_submitted",(function(){grecaptcha.reset(i)}))}}))},this.reset_form=function(e){e.find("input:text, input:password, input:file, select, textarea").val(""),e.find("input:radio, input:checkbox").removeAttr("checked").removeAttr("selected")},this.toggle_password_visibility=function(e){e.preventDefault();var t=$(this).parents(".pp-form-field-input-textarea-wrap").find(".pp-form-field");"password"===t.attr("type")?(t.attr("type","text"),$(this).text("visibility_off")):(t.attr("type","password"),$(this).text("visibility"))},this.ajax_edit_profile=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$('form[data-pp-form-submit="editprofile"]'),r=a.get_melange_id(s),i=new FormData(this);i.append("action","pp_ajax_editprofile"),i.append("nonce",pp_ajax_form.nonce),i.append("melange_id",r),$(".profilepress-edit-profile-status").remove(),$(".profilepress-edit-profile-success").remove(),""!==e.edit_profile_msg_class&&$("."+e.edit_profile_msg_class).remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){s.trigger("pp_form_submitted"),s.trigger("pp_form_edit_profile_success",[s]),"avatar_url"in t&&""!==t.avatar_url&&($("img[data-del='avatar'], img.pp-user-avatar").attr("src",t.avatar_url),$("input[name=eup_avatar]",s).val("")),"cover_image_url"in t&&""!==t.cover_image_url&&($("img[data-del='cover-image'], img.pp-user-cover-image").attr("src",t.cover_image_url),$("input[name=eup_cover_image]",s).val(""),$(".profilepress-myaccount-has-cover-image",s).show(),$(".profilepress-myaccount-cover-image-empty",s).hide()),"message"in t&&(e.edit_profile_msg_class=$(t.message).attr("class"),s.before(t.message)),"redirect"in t&&(s.trigger("pp_edit_profile_success_before_redirect"),e.location.assign(t.redirect)),a._remove_processing_label(s)}},"json")}},this.ajax_password_reset=function(e){e.preventDefault();var t=$(this),s=a.get_melange_id(t),r="true"===t.find('input[name="is-pp-tab-widget"]').val(),i={action:"pp_ajax_passwordreset",data:$(this).serialize()+"&melange_id="+s};a._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,i,(function(e){if(t.trigger("pp_form_submitted"),"object"!=typeof e)return a._remove_processing_label(t);if("message"in e){if(t.trigger("pp_password_reset_status"),r){var s=e.message.replace("profilepress-reset-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(s)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(e.message):t.before(e.message);"status"in e&&!0===e.status&&t.hide(),$('input[name="user_login"]',t).val("")}a._remove_processing_label(t)}),"json")},this.ajax_registration=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$(this),r=a.get_melange_id(s),i=new FormData(this),p="true"===s.find('input[name="is-pp-tab-widget"]').val();i.append("action","pp_ajax_signup"),i.append("melange_id",r),a._remove_status_notice(),s.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){if(s.trigger("pp_form_submitted"),"object"!=typeof t)return a._remove_processing_label(s);if("message"in t){if(s.trigger("pp_registration_error",[t]),s.trigger("pp_registration_ajax_response",[t]),p){var r=t.message.replace("profilepress-reg-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a.reset_form(s)}else"redirect"in t&&(s.trigger("pp_registration_success",[t]),e.location.assign(t.redirect));a._remove_processing_label(s)}})}},this.ajax_login=function(t){t.preventDefault();var s=$(this),r={action:"pp_ajax_login",data:$(this).serialize()},i="true"===s.find('input[name="is-pp-tab-widget"]').val();a._remove_status_notice(),a._add_processing_label(s),$.post(pp_ajax_form.ajaxurl,r,(function(t){if(s.trigger("pp_form_submitted"),null===t||"object"!=typeof t)return a._remove_processing_label(s);if("success"in t&&!0===t.success&&"redirect"in t)s.trigger("pp_login_form_success"),e.location.assign(t.redirect);else if(s.trigger("pp_login_form_error"),"code"in t&&"pp2fa_auth_code_invalid"==t.code&&s.find(".pp-2fa").show(),i){var r=t.message.replace("profilepress-login-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a._remove_processing_label(s)}),"json")},this.delete_avatar=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_avatar",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error?(a.text(t),alert(pp_ajax_form.deleting_error)):"success"in e&&($("img[data-del='avatar']").attr("src",e.default),a.remove())})))},this.delete_profile_image_cover=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_cover_image",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error&&(a.text(t),alert(pp_ajax_form.deleting_error)),"success"in e&&(""!==e.default?($("img[data-del='cover-image']").attr("src",e.default),a.parent().find(".profilepress-myaccount-has-cover-image").show(),a.parent().find(".profilepress-myaccount-cover-image-empty").hide()):(a.parent().find(".profilepress-myaccount-has-cover-image").hide(),a.parent().find(".profilepress-myaccount-cover-image-empty").show()),a.remove())})))},this.get_melange_id=function(e){var a=$("input.pp_melange_id",e).val();return a===t?"":a},this._add_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr({value:t.data("pp-processing-label"),disabled:"disabled"}).css("opacity",".4")},this._remove_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr("value",t.data("pp-submit-label")),t.attr({value:t.data("pp-submit-label"),disabled:null}).css("opacity","")},this._remove_status_notice=function(){$(".profilepress-login-status,.pp-tab-status,.profilepress-edit-profile-success,.profilepress-edit-profile-status,.pp-reset-success,.profilepress-reset-status,.profilepress-reg-status").remove()},this.defaultUserProfileResponsive=function(){$(".ppress-default-profile, .pp-member-directory").each((function(){var e=$(this),t=e.width();t<=340?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui340")):t<=500?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui500")):t<=800?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui800")):t<=960?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui960")):t>960&&(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960")),e.css("opacity",1)})),$(".ppress-default-profile-cover, .ppress-default-profile-cover-e").each((function(){var e=$(this),t=Math.round(e.width()/e.data("ratio"))+"px";e.height(t),e.find(".ppress-dpf-cover-add").height(t)}))}}).init()}(jQuery,window,void 0)}(); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/wp-lightbox-2/js/dist/wp-lightbox-2.min.js */ try{ "use strict";function _readOnlyError(a){throw new Error("\""+a+"\" is read-only")}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;dj&&(l=j/d),c*=l,d*=l,l=1,c>k&&(l=k/c),c=a(c*l),d=a(d*l)}var m=this.helper.getPageScroll(),n=m.yScroll+.5*h,o=n-.5*d,p=m.xScroll,q=document.getElementById("lightboxImage");q.style.width=c,q.style.height=d,this.resizeImageContainer(c,d,o,p)}}},{key:"resizeImageContainer",value:function resizeImageContainer(a,b,d,e){var f=Math.max,g=this,h=document.getElementById("outerImageContainer"),i=document.getElementById("imageDataContainer");if(h&&i){this.config.widthCurrent=h.offsetWidth,this.config.heightCurrent=h.offsetHeight;var j=f(350,a+2*(this.config.borderSize||0)),k=b+2*(this.config.borderSize||0);this.config.xScale=100*(j/this.config.widthCurrent),this.config.yScale=100*(k/this.config.heightCurrent),this.helper.setLightBoxPos(d,e),c("#imageDataContainer").animate({width:j},this.config.resizeSpeed,"linear"),c("#outerImageContainer").animate({width:j},this.config.resizeSpeed,"linear",function(){c("#outerImageContainer").animate({height:k},g.config.resizeSpeed,"linear",function(){g.showImage()})}),this.showNavigationElements(),document.getElementById("prevLink")&&(document.getElementById("prevLink").style.height=b),document.getElementById("nextLink")&&(document.getElementById("nextLink").style.height=b)}}},{key:"showImage",value:function showImage(){this.helper.show(document.getElementById("imageData")),this.helper.show(document.getElementById("caption")),this.helper.hide(document.getElementById("loading")),0this.config.activeImage){var c=new Image;c.src=this.config.imageArray[this.config.activeImage+1][0]}if(0"+this.config.strings.download+"":"",g="";1"+this.config.strings.prevLinkText+""),(this.config.activeImage+1"+this.config.strings.nextLinkText+"")),c=d+c+e+f+g,""!=c&&document.getElementById("numberDisplay")&&(document.getElementById("numberDisplay").innerHTML=c,this.helper.show(document.getElementById("numberDisplay")))}},{key:"showNavigationElements",value:function showNavigationElements(){var a=document.getElementById("prevLink"),b=document.getElementById("prevLinkText"),c=document.getElementById("nextLink"),d=document.getElementById("nextLinkText");1",a=1!=b.querySelectorAll("param").length),b=null}return a}},{key:"getPageScroll",value:function getPageScroll(){var a=0,b=0;self.pageYOffset?(b=self.pageYOffset,a=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft):document.body&&(b=document.body.scrollTop,a=document.body.scrollLeft);var c=document.getElementById("wpadminbar");if(c){var d=window.getComputedStyle(c),e=d.getPropertyValue("top");this.config.adminBarHeight&&0===parseInt(e,10)&&(b+=this.config.adminBarHeight)}return{xScroll:a,yScroll:b}}},{key:"setLightBoxPos",value:function setLightBoxPos(a,b){return 0
",e="
";this.config.displayHelp&&(e+=""+this.config.strings.help+""),e+="
";var f;this.config.navbarOnTop?(f="
"+e+d+"
",c("body").append(f),c("#imageDataContainer").addClass("ontop")):(f="
"+d+e+"
",c("body").append(f));var g=document.getElementById("overlay"),h=document.getElementById("lightbox"),i=document.getElementById("loadingLink"),j=document.getElementById("bottomNavClose"),k=document.getElementById("outerImageContainer"),l=document.getElementById("imageDataContainer"),m=document.getElementById("lightboxImage"),n=document.getElementById("hoverNav");g&&(g.addEventListener("click",function(){return a.end()}),this.helper.hide(g)),h&&(h.addEventListener("click",function(){return a.end()}),this.helper.hide(h)),i&&i.addEventListener("click",function(){return a.end()}),j&&j.addEventListener("click",function(){return a.end()}),this.events.bindNavigationButtons(this.display.changeImage.bind(this.display)),this.events.enableKeyboardNav(this.display.changeImage.bind(this.display)),k&&(k.style.width=this.config.widthCurrent+"px",k.style.height=this.config.heightCurrent+"px"),l&&(l.style.width=this.config.widthCurrent+"px")}},{key:"resizeListener",value:function resizeListener(){var a=this;this.config.resizeTimeout&&(clearTimeout(this.config.resizeTimeout),this.config.resizeTimeout=!1),this.config.resizeTimeout=setTimeout(function(){a.display.doScale(!1)},50)}},{key:"start",value:function start(b){var d=this;document.querySelectorAll("select, embed, object").forEach(function(a){d.helper.hide(a)});var e=this.helper.getPageSize(),f=this.helper.getPageScroll(),g=0,h=document.getElementById("overlay");c("#overlay").hide().css({width:e.pageDocumentWidth+"px",height:e.pageDocumentHeight+"px",opacity:this.config.overlayOpacity}).fadeIn(400),this.config.isIE8&&4096==e.pageDocumentHeight&&1e3<=f.yScroll&&(g=f.yScroll-1e3,0>e.documentScrollHeight-(f.yScroll+3096)&&(g-=f.yScroll+3096-e.documentScrollHeight),h.style.top=g+"px");var k=0;if(!this.config.jsonData)if(this.config.imageArray=[],!b.rel||""==b.rel){var l=b.title||b.parentElement.firstChild.title||"";console.log(b),this.config.imageArray.push([b.href,this.config.displayTitle?l:""])}else document.querySelectorAll("a").forEach(function(c){if(c.href&&c.rel===b.rel){var a="",e=c.parentElement.querySelector("img:first-of-type");c.title?a=c.title:e&&(a=e.title);var f="",g="",h=c.parentElement.parentElement.querySelector(".gallery-caption"),i=c.parentElement.querySelector(".wp-caption-text");h?(f=h.textContent,g=h.innerHTML):i&&(f=i.textContent,g=i.innerHTML),a=a.trim(),g=g.trim(),a.toLowerCase()===g.toLowerCase()&&(a=g,f="");var j="";""!=a&&(j=""+a+""),""!=f&&(""!=a&&(j+="
"),j+=""+f+""),d.config.imageArray.push([c.href,d.config.displayTitle?j:""])}});if(1a;i--)this.config.imageArray[a][0]==this.config.imageArray[i][0]&&this.config.imageArray.splice(i,1);for(;this.config.imageArray[k][0]!=b.href;)k++}this.helper.setLightBoxPos(f[1],f[0]),this.display.changeImage(k)}},{key:"end",value:function end(){var a=this;document.getElementById("lightbox").remove(),c("#overlay").fadeOut(function(){document.getElementById("overlay").remove()}),document.querySelectorAll("select, embed, object").forEach(function(b){a.helper.show(b)})}}]),a}();b.exports=g},{"./Display":3,"./Events":4,"./Helper":5}]},{},[1]); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/lazy-load-for-videos/assets/js/lazyload-all.js */ try{ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e,n){"use strict";var r=n(3),o=function(t){var e=window.jQuery||window.$;e&&e(document).ajaxStop((function(){t()}))},i=n(1);function a(t,e){var n=t;n.style.backgroundImage="url(".concat(e,")"),n.style.backgroundColor="#000",n.style.backgroundPosition="center center",n.style.backgroundRepeat="no-repeat"}function c(t){var e=function(t){var e=t&&t.parentNode&&t.parentNode.parentNode,n=e&&e.classList.contains("wp-has-aspect-ratio"),r=String(e.classList),o=r.substring(r.lastIndexOf("wp-embed-aspect-"),r.lastIndexOf(" ")).trim();if(n&&o){var i=o.replace("wp-embed-aspect-","").split("-"),a=Number(i[1])/Number(i[0]);return a.toString().split(".")[1].length>4?Math.round(1e4*a)/1e4:a}return.5625}(t);Object(i.a)("object, embed, iframe, .preview-lazyload, .lazy-load-div",t).forEach((function(t){var n=t,r=n.parentNode.clientWidth,o=Math.round(r*e);n.setAttribute("height","".concat(o,"px")),n.setAttribute("width","".concat(r,"px")),n.style.height="".concat(o,"px"),n.style.width="".concat(r,"px")}))}n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return s}));var u=function(t,e){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:document;return[].slice.call(e.querySelectorAll(t))}},function(t,e,n){"use strict";function r(t){var e=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=t;n.childNodes[0];)e.appendChild(n.childNodes[0]);return e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=window.jQuery||window.$;e&&e.fn&&e(window).bindFirst("load",t)}n.d(e,"b",(function(){return r})),e.a=function(){var t=window.jQuery||window.$;t&&t.fn&&(t.fn.bindFirst=function(e,n){var r=t(this);r.unbind(e,n),r.bind(e,n);var o=t._data(r[0]).events,i=o[e];i.unshift(i.pop()),o[e]=i})}},function(t,e,n){"use strict";function r(t){"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(1);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}window.showThumb=function(t){var e=t[0];lazyload_video_settings.vimeo.loadthumbnail&&Object(i.a)('[id="'.concat(e.id,'"]')).forEach((function(t){Object(r.d)(t,e.thumbnail_large)}))};var l,d="preview-vimeo",s={buttonstyle:"",playercolour:"",loadthumbnail:!0};function f(t){var e=t,n=u(e.getAttribute("id").match(/[\w]+/),1)[0];e.setAttribute("id",n),e.innerHTML="",function(t,e){var n=Object(o.a)('');if(t.appendChild(n),lazyload_video_settings.vimeo.loadthumbnail){var a=t.getAttribute("data-video-thumbnail");if(a)Object(r.a)(Object(i.a)('[id="'.concat(e,'"]')),(function(t){return Object(r.d)(t,a)}));else{var c=document.createElement("script");c.src="".concat("https://vimeo.com/api/v2/video/".concat(e,".json"),".json?callback=showThumb"),t.parentNode.insertBefore(c,t.firstChild)}}if(lazyload_video_settings.vimeo.show_title){var u=t.getAttribute("data-video-title"),d=Object(o.a)('"));t.appendChild(d)}l.buttonstyle&&t.classList.add(l.buttonstyle)}(e,n)}function p(t){t.addEventListener("click",(function(t){var e=t.currentTarget;if(t.preventDefault(),"a"===e.tagName.toLowerCase()){var n=e.getAttribute("id");e.classList.remove(d);var r="";l.playercolour!==r&&(l.playercolour=l.playercolour.toString().replace(/[.#]/g,""),r="&color=".concat(l.playercolour));var i,a=Object(o.a)(''));e.parentNode.replaceChild(a,e)}}))}function b(){Object(i.a)(".".concat(d)).forEach((function(t){f(t),Object(r.c)(t.parentNode),p(t)}))}e.a=function(t){l=function(t){for(var e=1;e0&&(i.playlist=u.join(","));var l,d=s({},i,{},r);return d.t&&(d.start=function(t){if(Number(t))return Number(t);var e=0,n=[3600,60,1],r=t.match(/(?:(\d+)(?:h))?(?:(\d+)(?:m))?(?:(\d+)(?:s))?/);if(r)for(var o=1;o')).firstChild;i.addEventListener("load",(function(){120===i.clientWidth&&(n=n.replace("maxresdefault","0")),t.style.backgroundImage||Object(r.d)(t,n),i.parentNode.removeChild(i)})),document.body.appendChild(i)}function g(t){var e=t,n=m(e.getAttribute("href")),i=n.videoId,a=n.queryParams;e.innerHTML='");var c=Object(o.a)('');e.insertBefore(c,e.firstChild),p.buttonstyle&&e.classList.add(p.buttonstyle),Object(r.c)(e.parentNode),e.addEventListener("click",(function(t){var n=t.currentTarget;if(t.preventDefault(),"a"===n.tagName.toLowerCase()){n.classList.remove(b);var r=y({pluginOptions:p,videoId:i,urlOptions:a}),c=Object(o.a)(''));n.parentNode.replaceChild(c,n)}}))}function O(){var t=Object(i.a)("a.lazy-load-youtube");t.forEach(g),p.loadthumbnail&&Object(r.a)(t,(function(t){return h(t)}))}e.a=function(t){p=s({},v,{},t),Object(r.b)({load:O,pluginOptions:p,previewVideoSelector:".".concat(b)})}},,,,function(t,e,n){"use strict";n.r(e);n(11);var r=n(3),o=n(4),i=n(5),a=n(6);Object(o.a)((function(){Object(r.a)(),Object(i.a)(lazyload_video_settings.vimeo),Object(a.a)(lazyload_video_settings.youtube)}))},function(t,e,n){}]); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/responsive-scripts.js */ try{ jQuery(document).ready(function(a){a("a[href=#scroll-top]").click(function(){a("html, body").animate({scrollTop:0},"slow");return!1})});(function(b){function a(d){this.input=d;if(d.attr("type")=="password"){this.handlePassword()}b(d[0].form).submit(function(){if(d.hasClass("placeholder")&&d[0].value==d.attr("placeholder")){d[0].value=""}})}a.prototype={show:function(f){if(this.input[0].value===""||(f&&this.valueIsPlaceholder())){if(this.isPassword){try{this.input[0].setAttribute("type","text")}catch(d){this.input.before(this.fakePassword.show()).hide()}}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")){this.input.removeClass("placeholder");this.input[0].value="";if(this.isPassword){try{this.input[0].setAttribute("type","password")}catch(d){}this.input.show();this.input[0].focus()}}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var d=this.input;d.attr("realType","password");this.isPassword=!0;if(b.browser.msie&&d[0].outerHTML){var e=b(d[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=e.val(d.attr("placeholder")).addClass("placeholder").focus(function(){d.trigger("focus");b(this).hide()});b(d[0].form).submit(function(){e.remove();d.show()})}}};var c=!!("placeholder" in document.createElement("input"));b.fn.placeholder=function(){return c?this:this.each(function(){var d=b(this);var e=new a(d);e.show(!0);d.focus(function(){e.hide()});d.blur(function(){e.show(!1)});if(b.browser.msie){b(window).load(function(){if(d.val()){d.removeClass("placeholder")}e.show(!0)});d.focus(function(){if(this.value==""){var f=this.createTextRange();f.collapse(!0);f.moveStart("character",0);f.select()}})}})}})(jQuery);(function(a){a.fn.fitVids=function(b){var c={customSelector:null};var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];e.className="fit-vids-style";e.innerHTML="­";d.parentNode.insertBefore(e,d);if(b){a.extend(c,b)}return this.each(function(){var f=["iframe[src^='https://player.vimeo.com']","iframe[src^='https://www.youtube.com']","iframe[src^='https://www.youtube.com']","iframe[src^='https://www.kickstarter.com']","object","embed"];if(c.customSelector){f.push(c.customSelector)}var g=a(this).find(f.join(","));g.each(function(){var k=a(this);if(this.tagName.toLowerCase()=="embed"&&k.parent("object").length||k.parent(".fluid-width-video-wrapper").length){return}var h=this.tagName.toLowerCase()=="object"?k.attr("height"):k.height(),i=h/k.width();if(!k.attr("id")){var j="fitvid"+Math.floor(Math.random()*999999);k.attr("id",j)}k.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",(i*100)+"%");k.removeAttr("height").removeAttr("width")})})}})(jQuery);window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=!1;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,!0);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=!1;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(!0)}if(e.addEventListener){e.addEventListener("resize",t,!1)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/responsive-plugins.js */ try{ /*! * Responsive JS Plugins v1.1.0 */ jQuery(function(){jQuery('input[placeholder], textarea[placeholder]').placeholder()});jQuery(document).ready(function(){jQuery("#wrapper").fitVids()}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/jquery.colorbox-min.js */ try{ // ColorBox v1.3.19 - jQuery lightbox plugin // (c) 2011 Jack Moore - jacklmoore.com // License: https://www.opensource.org/licenses/mit-license.php (function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&&c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&&a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&&b.body&&(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))}),a("."+g,b).on("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&&!a.support.style,o=n&&!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a(""),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&&!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&&setTimeout(function(){z.bind("resize."+f,W.position)},1),b&&b()},step:function(){i(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=_(a.width,"x")-O-M),a.innerWidth&&(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=_(a.height,"y")-N-L),a.innerHeight&&(K.h=_(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||QK.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(K.loop||y[Q+1])&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(K.loop||y[Q+1])&&(Q=$(1),W.load())},W.prev=function(){!T&&y[1]&&(K.loop||Q)&&(Q=$(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/jqtable/jqtable.min.js */ try{ //JQuery JQTable Plugin v1.1 //Written By Adnan ÅžAHÄ°N !function(a){"use strict";a.fn.JQTable=function(e){var i=a.extend({pageSize:10,pageNumberSize:5},e),n=i.pageSize,d=i.pageNumberSize,t=a(this).find("tbody"),s=t.find("tr");a("
").insertAfter(this);var p=s.length,r=2,o=Math.round(p/n);if(p>0&&n*o=o&&(d=o,r=1),o>=1&&d>=1){a("#paging").append("
<"),o>d&&a("#paging").append("");for(var g=1;g<=o;g++)g<=d?a("#paging").append(""+g+""):g>d&&a("#paging").append("");o>d&&a("#paging").append("..."),a("#paging").append(">"),t.find("tr:gt("+(n-1)+")").hide(),a("#paging a:eq("+r+")").addClass("active")}a("#pre_point").on("click",function(e){if(e.preventDefault(),r<=1)return!1;var i=a(this).nextAll("a:not('.hidden,#next_point')").first().index();a("#paging a:eq("+(i+d-1)+")").addClass("hidden"),a("#paging a").removeClass("active"),a("#paging a:eq("+(i-1)+")").removeClass("hidden").addClass("active");var t=n*((r=i-1)-1);s.hide();for(var p=t-n;p2&&dd&&d2&&d=o&&(r-=1),a("#paging a").removeClass("active"),a("#paging a:not('#next_point'):eq("+r+")").addClass("active"),a("#paging a:not('#next_point'):eq("+r+")").removeClass("hidden"),a("#paging a.hidden").length>=1&&a("#paging a:not('#next_point,#paging a:last'):eq("+(r+d)+")").addClass("hidden"),s.hide(),d=o||r-1===o&&dd&&d=o&&(r+=1);var p=n*r;dd&&a("#paging a.hidden").length>=1&&a("#paging a:not('#next_point,#paging a:last'):eq("+(r-d)+")").addClass("hidden"),s.hide();for(var g=p-n;gh;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a){function b(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function c(){}function d(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=g.length;c>b;b++){var d=g[b];a[d]=0}return a}function e(c){function e(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||f("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),c}}(),k=c("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var g=document.body||document.documentElement;g.appendChild(e);var h=j(e);l=200===b(h.width),g.removeChild(e)}}}function h(a){if(e(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var c=j(a);if("none"===c.display)return d();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var h=f.isBorderBox=!(!k||!c[k]||"border-box"!==c[k]),m=0,n=g.length;n>m;m++){var o=g[m],p=c[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=h&&l,y=b(c.width);y!==!1&&(f.width=y+(x?0:r+v));var z=b(c.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return h}var f="undefined"==typeof console?c:function(a){console.error(a)},g=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):a.getSize=e(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/menu-imp.js */ try{ jQuery(document).ready(function(){(function($){$.fn.outside=function(ename,cb){return this.each(function(){var $this=$(this),self=this;$(document).bind(ename,function tempo(e){if(e.target!==self&&!$.contains(self,e.target)){cb.apply(self,[e]);if(!self.parentNode)$(document.body).unbind(ename,tempo)}})})}}(jQuery));jQuery('.nav .dropdown > .dropdown-toggle').each(function(){var width=jQuery(this).width();var currentId=jQuery(this).parent().attr('id');if(jQuery('#'+currentId+' .dropdown-toplvl').length==0&&jQuery(this).attr('href')!='#'){var topClone=jQuery(this).clone(this);topClone.prependTo('#'+currentId+' > .dropdown-menu');jQuery('#'+currentId+' .dropdown-menu > .dropdown-toggle:first-child').removeAttr('data-toggle').removeClass('disapear dropdown-toggle').addClass('dropdown-toggled').wrapAll('');jQuery('#'+currentId+' > .dropdown-menu .dropdown-toplvl .caret').remove()} jQuery(this).attr('href','#')});jQuery.hasTouch=!1;window.addEventListener('touchstart',function setHasTouch(){jQuery.hasTouch=!0;window.removeEventListener('touchstart',setHasTouch)},!1);jQuery('.nav li.menu-item-has-children').each(function(){var link=jQuery(this).find('> a.dropdown-toggle');link.dblclick(function(){window.location.replace(jQuery(this).attr('href'))});link.click(function(){if(('ontouchstart' in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0)){jQuery.hasTouch=!0} if(!jQuery.hasTouch){window.location.replace(jQuery(this).attr('href'))}})});jQuery('#wp-admin-bar-howto a').click(function(){jQuery('#howto').modal('show')});jQuery('.oa-navicon').hover(function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)},function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)});jQuery('.oa-navicon').click(function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)},function(){var element=jQuery(this);var altSrc=jQuery(element).find('img').attr('oa-alt');var nowSrc=jQuery(element).find('img').attr('src');jQuery(element).find('img').attr('oa-alt',nowSrc);jQuery(element).find('img').attr('src',altSrc)});var bc_dropdown=jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu');if(bc_dropdown.length>0){jQuery('.top-title-container .breadcrumb-mod .current').mouseover(function(){jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu').show()});jQuery('.top-title-container .breadcrumb-mod .current').mouseout(function(){jQuery('.top-title-container .breadcrumb-mod .current .dropdown-menu').hide()})} jQuery('.cat-post-widget .post-title').each(function(){jQuery(this).insertAfter(jQuery(this).next())});if(jQuery('#header > .navbar').length>0){jQuery.navbarHeight=jQuery('#header > .navbar').offset().top-jQuery('#wpadminbar').outerHeight();jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>jQuery.navbarHeight){jQuery('#header > .navbar').addClass('fixed')}else{jQuery('#header > .navbar').removeClass('fixed')}})} jQuery.expr[':'].focus=function(elem){return elem===document.activeElement&&(elem.type||elem.href)};jQuery('.intel-nav-container .caret').click(function(){jQuery(this).toggleClass('open')});if(!isLargeScreen()){var searchWrapper=jQuery('');jQuery('#wp-toolbar #wp-admin-bar-advsearch > div > form#searchform').clone().attr('id','').appendTo(searchWrapper);searchWrapper.appendTo('#sitemap> ul.intelnav:last-child')}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/jquery.autoellipsis-1.0.10.min.js */ try{ /*! Copyright (c) 2011 Peter van der Spek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */(function(a){function m(){if(!d){d=!0;for(var c in b)a(c).each(function(){var d,e;d=a(this),e=d.data("jqae"),(e.containerWidth!=d.width()||e.containerHeight!=d.height())&&f(d,b[c])});d=!1}}function l(a){b[a]&&(delete b[a],b.length||c&&(window.clearInterval(c),c=undefined))}function k(a,d){b[a]=d,c||(c=window.setInterval(function(){m()},200))}function j(){return this.nodeType===3}function i(b){if(b.contents().length){var c=b.contents(),d=c.eq(c.length-1);if(d.filter(j).length){var e=d.get(0).nodeValue;e=a.trim(e);if(e==""){d.remove();return!0}return!1}while(i(d));if(d.contents().length)return!1;d.remove();return!0}return!1}function h(a){if(a.contents().length){var b=a.contents(),c=b.eq(b.length-1);return c.filter(j).length?c:h(c)}a.append("");var b=a.contents();return b.eq(b.length-1)}function g(b){var c=h(b);if(c.length){var d=c.get(0).nodeValue,e=d.lastIndexOf(" ");e>-1?(d=a.trim(d.substring(0,e)),c.get(0).nodeValue=d):c.get(0).nodeValue="";return!0}return!1}function f(b,c){var d=b.data("jqae");d||(d={});var e=d.wrapperElement;e||(e=b.wrapInner("
").find(">div"),e.css({margin:0,padding:0,border:0}));var f=e.data("jqae");f||(f={});var j=f.originalContent;j?e=f.originalContent.clone(!0).data("jqae",{originalContent:j}).replaceAll(e):e.data("jqae",{originalContent:e.clone(!0)}),b.data("jqae",{wrapperElement:e,containerWidth:b.width(),containerHeight:b.height()});var k=b.height(),l=(parseInt(b.css("padding-top"),10)||0)+(parseInt(b.css("border-top-width"),10)||0)-(e.offset().top-b.offset().top),m=!1,n=e;c.selector&&(n=a(e.find(c.selector).get().reverse())),n.each(function(){var b=a(this),d=b.text(),f=!1;if(e.innerHeight()-b.innerHeight()>k+l)b.remove();else{i(b);if(b.contents().length){m&&(h(b).get(0).nodeValue+=c.ellipsis,m=!1);while(e.innerHeight()>k+l){f=g(b);if(!f){m=!0,b.remove();break}i(b);if(b.contents().length)h(b).get(0).nodeValue+=c.ellipsis;else{m=!0,b.remove();break}}c.setTitle=="onEllipsis"&&f||c.setTitle=="always"?b.attr("title",d):c.setTitle!="never"&&b.removeAttr("title")}}})}var b={},c,d=!1,e={ellipsis:"...",setTitle:"never",live:!1};a.fn.ellipsis=function(b,c){var d,g;d=a(this),typeof b!="string"&&(c=b,b=undefined),g=a.extend({},e,c),g.selector=b,d.each(function(){var b=a(this);f(b,g)}),g.live?k(d.selector,g):l(d.selector);return this}})(jQuery); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/masonry-imp.js */ try{ jQuery(document).ready(function(){var container=jQuery('.cat-widget-container');jQuery(container).imagesLoaded(function(){jQuery(container).masonry({itemSelector:'.cat-widget',})})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/external-imp.js */ try{ jQuery(document).ready(function(){jQuery('a').not('[href^="http"],[href^="https"],[href^="mailto:"],[href^="#"]').each(function(){jQuery(this).attr('href',function(index,value){if(value!=undefined){if(value.substr(0,1)!=="/"){value=window.location.pathname+value} var hostBase=location.host;return'https://'+hostBase+value}})})});jQuery(document).ready(function(){var hostname=new RegExp(location.host);jQuery('a').each(function(){var internal=jQuery(this).text();if(internal.length!=0){var found=jQuery(this).find('img');if(found.length==0){var url=jQuery(this).attr("href");if(url!=undefined){if(hostname.test(url)){}else if(url.slice(0,1)=="#"){jQuery(this).addClass('anchor')}else{jQuery(this).addClass('external');jQuery(this).attr('title',function(i,val){if(val!=undefined){return val+' [external resource] (New Window)'}else{return'[external resource] (New Window)'}});jQuery(this).attr('target','_blank')}}}else{var url=jQuery(this).attr("href");if(url!=undefined){if(hostname.test(url)){}else if(url.slice(0,1)=="#"){jQuery(this).addClass('anchor')}else{jQuery(this).attr('title',function(i,val){if(val!=undefined){return val+' [external resource]'}else{return'[external resource]'}})}}}}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/top_news.js */ try{ (function($){$.fn.topNewsInterface=function(displayContainerSelector,titleSelector,kwargs={}){jQuery(this).each(function(){topNewsInterface(jQuery(this),displayContainerSelector,titleSelector,kwargs)});return this}})(jQuery);function topNewsInterface($postContainer,displayContainerSelector,titleSelector,kwargs={}){console.debug('Enter topNewsInterface; titleSelector: '+titleSelector+'; kwargs: '+kwargs);console.debug($postContainer);$postContainer=jQuery($postContainer);var $topNews=$postContainer.find('* div.topnews');var $items=$topNews.find('.tn_row');if($items.length==0)return;var $displayObj=$postContainer.find(displayContainerSelector);if($displayObj.is('a')){$displayObj.attr('linkOn','1');$displayObj.click(function(){return jQuery(this).attr('linkOn')=='1'})}else if($displayObj.parent().is('a')){$displayObj=$displayObj.parent();$displayObj.attr('linkOn','1');$displayObj.click(function(){return jQuery(this).attr('linkOn')=='1'})} var title=$postContainer.find(titleSelector).text().trim();if($items.length>6&&$topNews.find('> h2').length==0){$tnContainer=jQuery($items[0]).parent();var i;var newSections={};var tnType;var $item;if($topNews.attr('data-latest')!='hide'){newSections.Latest=[];var maxLatest=$items.length;if($topNews.attr('data-latest')!='unlimited') maxLatest=Math.min(maxLatest,parseInt($topNews.attr('data-latest')));for(i=0;i');$topNews.prepend($tabs)} for(var sectionName in newSections){if(newSections[sectionName].length==0)continue;var sectionId="news-section-"+sectionName.replace(/[\s\:\;\'\"\.\,\?\~\!\@\#\$\%\^\&\*\(\)\[\]]+/g,'-').toLowerCase();var $sectionContainer=jQuery('
');$topNews.append($sectionContainer);var sectionDisplayName=sectionName;if(tnTypeH2s[sectionName]!=undefined) sectionDisplayName=tnTypeH2s[sectionName];$last=jQuery('

'+sectionDisplayName+'

').appendTo($sectionContainer);if(tabs)$tabs.append('
  • '+sectionDisplayName+'
  • ');for(i=0;iendDatetime)endDatetime.setTime(endDatetime.getTime()+24*3600*1000);let now=new Date();if(now a').replaceWith(function(){return jQuery(''+jQuery(this).html()+'')});$tnObj.click({postContainerSelector:('.'+$postContainer.attr('class').trim().replace(/ +/g,'.').replace(/\.loading/,'')),displayContainerSelector:displayContainerSelector,titleSelector:titleSelector,scrollToContainer:scrollToContainer},toggleTopNews);$tnObj.addClass('dynamic')} function toggleTopNews(event){var $next=jQuery(this);var $tnParent=$next.closest('.topnews');var $prev=$tnParent.find(' .tn_row.active');var $postContainer=$next.closest(event.data.postContainerSelector);var $displayContainer=$postContainer.find(event.data.displayContainerSelector);var $captionIcon=jQuery('#content .caption_info');if($prev[0]==$next[0]){if($displayContainer.is('a')) $displayContainer.attr('linkOn','1');else if($displayContainer.parent().is('a')) $displayContainer.parent().attr('linkOn','1');hidePreviousTopNewsItem($prev,$displayContainer);if($captionIcon.length)$captionIcon.show()}else{if($captionIcon.length){if($captionIcon.hasClass('active')){$captionIcon.click()} $captionIcon.hide()} if(event.data.scrollToContainer){scrollPos=$displayContainer.offset().top-jQuery('#wpadminbar').outerHeight()-8;if(jQuery("body,html").scrollTop()>scrollPos) jQuery("body,html").animate({scrollTop:scrollPos},500)} if($displayContainer.is('a')) $displayContainer.attr('linkOn','0');else if($displayContainer.parent().is('a')) $displayContainer.parent().attr('linkOn','0');var targetId=$next.attr('data-targetid');if($next.attr('data-initialized')==undefined){$next.attr('data-initialized','1');var $targetContent=null;var fullTitle=$next.attr('data-full-title');var $titleBlock=jQuery('
    ');if(typeof fullTitle!=='undefined'&&fullTitle!==!1){$titleBlock.append('

    '+fullTitle+'

    ')}else{$titleBlock.append('

    '+$next.find('span.title').html().trim()+'

    ')} if(['Article','Information','PressRelease','Commentary'].includes($next.attr('data-tn-type'))){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);var $source=$next.find('.source');var sourceUrl=$next.find('.title').attr('href');var validSourceUrl=(typeof sourceUrl!=='undefined'&&sourceUrl!==!1&&sourceUrl!='');var sourceTitle='';if($source.length==1)sourceTitle=$source.html().trim();if(sourceTitle!='') if(validSourceUrl) $targetContent.prepend('

    '+sourceTitle+'

    ');else $targetContent.prepend('

    '+sourceTitle+'

    ');else if(validSourceUrl) $targetContent.prepend('

    Source

    ');$targetContent.prepend($titleBlock)}else if(['Livestream','OnAir','Video'].includes($next.attr('data-tn-type'))){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.find('> p:first-child:empty, > p:last-child:empty').remove();$targetFirstChild=$targetContent.find('> :first-child');$targetFirstChild.append($titleBlock)}else if('Org'==$next.attr('data-tn-type')){$targetContent=$next.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.prepend($titleBlock)}else{} if($targetContent!=null){$targetContent.addClass('tn_container');$targetContent.addClass($next.attr('data-tn-type'));$displayContainer.append($targetContent)}}else{$targetContent=$displayContainer.find('#'+targetId);if(['Livestream','OnAir','Video'].includes($next.attr('data-tn-type'))) resumeVideo($targetContent)} if($targetContent!=null) $next.addClass('active');$targetContent.fadeIn('slow');if($prev.length>0)hidePreviousTopNewsItem($prev,$displayContainer)}} function hidePreviousTopNewsItem($prevItem,$container){$prevItem.removeClass('active');var $prevItemContainer=$container.find('> #'+$prevItem.attr('data-targetid'));$prevItemContainer.fadeOut('slow');if(['Livestream','OnAir','Video'].includes($prevItem.attr('data-tn-type'))){pauseVideo($prevItemContainer)}} function getElementIndex(node){var index=0;while((node=node.previousElementSibling)){index++} return index} var videoUrlPat_youtube=/https:\/\/(www\.)?youtube\.com\/watch\?([^\=]+=[^\&]+\&)*v=([0-9a-zA-Z_\-]+)/;var videoUrlPat_youtube2=/https:\/\/(www\.)?youtu\.be\/([0-9a-zA-Z_\-]+)/;var videoUrlPat_vimeo=/https:\/\/(www\.|player\.)?vimeo\.com\/(video\/)?([0-9]+)/;function generateEmbedUrl(url){var siteType='';var returnVal=null;if(url.includes('vimeo.com')){siteType='vimeo';var match=url.match(videoUrlPat_vimeo);if(match){var vimId=match[3];url='https://player.vimeo.com/video/'+vimId+'?autoplay=1';returnVal=[url,siteType]}}else if(url.includes('youtu.be')){siteType='youtube';var match=url.match(videoUrlPat_youtube);if(match){var ytId=match[3];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}}else if(url.includes('youtube.com')){siteType='youtube';var match=url.match(videoUrlPat_youtube);if(match){var ytId=match[3];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}}else if(url.includes('youtu.be')){siteType='youtube';var match=url.match(videoUrlPat_youtube2);if(match){var ytId=match[2];url='https://www.youtube-nocookie.com/embed/'+ytId+'?autoplay=1&modestbranding=1&rel=0&iv_load_policy=3&color=red&version=3&enablejsapi=1';returnVal=[url,siteType]}} return returnVal} function generateEmbedCode(url,iframeIndex){var urlAndType=generateEmbedUrl(url);if(urlAndType==null)return null;var embedUrl=urlAndType[0];var videoType=urlAndType[1];var embedCode='';return embedCode}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/oa-utils.js */ try{ function getURLParameter(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[null,''])[1].replace(/\+/g,'%20'))||null} jQuery.loadScript=function(url,callback){jQuery.ajax({url:url,dataType:'script',success:callback,async:!0})} jQuery.fn.isInViewport=function(){var elementTop=jQuery(this).offset().top;var elementBottom=elementTop+jQuery(this).outerHeight();var viewportTop=jQuery(window).scrollTop();var viewportBottom=viewportTop+jQuery(window).height();return elementBottom>viewportTop&&elementTopsmallscreenWidth)} function pauseVideo($player){var src=$player.attr('src');if(typeof src=='undefined'||src==!1) $player=$player.find('[src]');if($player.length){$player.attr('pausesrc',$player.attr('src'));$player.attr('src','')}} function resumeVideo($player){var pausesrc=$player.attr('pausesrc');if(typeof pausesrc=='undefined'||pausesrc==!1) $player=$player.find('[pausesrc]');if($player.length) $player.attr('src',$player.attr('pausesrc'))}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/assets/js/oa-ux-general.js */ try{ function delayLoadTwitter(){jQuery(window).on('resize scroll',function($el){return function(){if($el.hasClass('twitter-timeline-delay')&&$el.isInViewport()&&$el[0].getBoundingClientRect().y>jQuery('#wpadminbar').outerHeight()){$el.removeClass('twitter-timeline-delay').addClass('twitter-timeline');$el.after('')}}}(jQuery(this)));jQuery('body').on('click',function($el){return function(){if($el.hasClass('twitter-timeline-delay')&&$el.isInViewport()&&$el[0].getBoundingClientRect().y>jQuery('#wpadminbar').outerHeight()){$el.removeClass('twitter-timeline-delay').addClass('twitter-timeline');$el.after('')}}}(jQuery(this)))} jQuery(document).mouseup(function(e){var container=jQuery('.sponsor-bar .addtoany_shortcode');if(!container.is(e.target)&&!container.parent().is(e.target)&&!container.parent().find('span').is(e.target)&&container.has(e.target).length===0){container.parent().removeClass('active')}});function categoryWidgetSetLoad(){var $container=jQuery(this);var winBottom=jQuery(window).scrollTop()+jQuery(window).height();var currentPosts=$container.children();var $lastPost=jQuery(currentPosts[currentPosts.length-1]);var triggerPosition=$lastPost.offset().top;if($container.is(':visible')&&(triggerPosition-winBottom<0)){console.log('categoryWidgetSetLoad triggering load');$container.attr('data-dynamic','0');var ids;var postsPerReq=8;if($container.attr('data-posts-per'))postsPerReq=$container.attr('data-posts-per');if($container.data('post-ids')){if(typeof $container.data('post-ids')=='string'){ids=$container.attr('data-post-ids').split(',')}else{ids=$container.data('post-ids')}}else{console.warn('Error: container has no "data-post-ids" attribute');return} if(ids.length==0){$container.attr('data-dynamic','0');return} $container.data('post-ids',ids.slice(postsPerReq));var params={'include':ids.slice(0,postsPerReq),};var jqxhr=jQuery.getJSON('/wp-json/wp/v2/posts',params,loadWidgetsHandler($container));jqxhr.fail(function(){console.warn('Failed to load widgets for set; need to try again');$container.data('post-ids',ids);$container.attr('data-dynamic','1')})}} function loadWidgetsHandler($container){return function(json,textStatus,jqXHR){console.log('loadWidgetsHandler Enter; '+json.length+' entries');for(post_ind in json){post=json[post_ind];createWidgetByJson(post,$container,post.type)} if($container.children().length<$container.attr('data-max-posts')){$container.attr('data-dynamic','1')}}} jQuery(window).scroll(function(){jQuery('.category-widget-set[data-dynamic="1"]').each(categoryWidgetSetLoad)});function hidePreviousFeaturedItem($prevItem,$container){$prevItem.removeClass('active');var $prevItemContainer=$container.find('> #'+$prevItem.attr('data-targetid'));if($prevItemContainer.attr('data-behavior')=='slide') $prevItemContainer.fadeOut('slow');else if($prevItemContainer.attr('data-behavior')=='slide-down') $prevItemContainer.slideToggle('slow');else $prevItemContainer.fadeOut('slow');if($prevItem.attr('data-isvideo'))pauseVideo($prevItemContainer)} function toggleFeaturedSummaryItem(event){var $next=jQuery(this);var $summary=$next.closest('.summary');var $prev=$summary.find('.featured.active');var $postContainer=event.data.postContainer;var $displayContainer=event.data.displayContainer;var $captionIcon=jQuery('#content .caption_info');var targetId=$next.attr('data-targetid');if($prev[0]==$next[0]){if($displayContainer.is('a'))$displayTarget.attr('linkOn','1');else if($displayContainer.parent().is('a'))$displayContainer.parent().attr('linkOn','1');hidePreviousFeaturedItem($prev,$displayContainer);if($captionIcon.length)$captionIcon.show()}else{if($captionIcon.hasClass('active'))$captionIcon.click();$captionIcon.hide();if(event.data.behavior=='scroll'){var scrollPos=$displayContainer.offset().top-jQuery('#wpadminbar').outerHeight()-8;if(jQuery("body,html").scrollTop()>scrollPos) jQuery("body,html").animate({scrollTop:scrollPos},500)} var targetId=$next.attr('data-targetId');var callback=null;if($next.attr('data-initialized')==undefined){$next.attr('data-initialized','1');var content;if($next.attr('data-content')!=undefined) $targetContent=jQuery('
    '+$next.attr('data-content')+'
    ');else if($next.find('>.featured_content').length>0) $targetContent=$next.find('>.featured_content');$targetContent.addClass('featured_container');$targetContent.addClass($next.attr('data-type'));$targetContent.attr('data-behavior',event.data.behavior);$targetContent.attr('id',targetId);$targetContent.hide();$displayContainer.append($targetContent);callback=function(){$targetContent.find('> .container-lazyload > a.preview-lazyload > div.lazy-load-div').click()}}else{$targetContent=$displayContainer.find('#'+targetId);if($next.attr('data-type')=='video')resumeVideo($targetContent)} if($prev.length>0)hidePreviousFeaturedItem($prev,$displayContainer);$next.addClass('active');if(event.data.behavior=='scroll'||event.data.behavior=='fade') $targetContent.fadeIn('slow',callback);else if(event.data.behavior=='slide-down') $targetContent.slideToggle('slow',callback)}} function setupSummaryFeature($featSource,$postContainer,$displayTarget,behavior){$featSource.attr('data-targetid','summary-featured-'+(Math.floor(Math.random()*100000)));$featSource.click({postContainer:$postContainer,displayContainer:$displayTarget,behavior:behavior},toggleFeaturedSummaryItem);$featSource.addClass('dynamic')} function summaryFeatures($postDiv,context=null,behavior=null,$displayTarget=null){$postDiv=jQuery($postDiv);console.debug('summaryFeatures Context: '+context);console.debug($postDiv);if(behavior==null||$displayTarget==null){if(context==null){if($postDiv.hasClass('container')&&$postDiv.parent().hasClass('cycleContainer')) context='slider';else if($postDiv.hasClass('postWidget')) context='widget';else if($postDiv.hasClass('post')) context='page';else console.warning('No context given and unable to determine context from $postDiv');return} if(context=='widget'){if(behavior==null)behavior='scroll';if($displayTarget==null)$displayTarget=$postDiv.find('span.cat-post-thumbnail')}else if(context=='page'){if(behavior==null)behavior='scroll';if($displayTarget==null)$displayTarget=$postDiv.find('> .post_featured_image')}else if(context=='slider'){if(behavior==null)behavior='fade';if($displayTarget==null)$displayTarget=$postDiv.find('.slider-img-container > .slider-img')}} console.debug('Context: '+context+', behavior: '+behavior);if($displayTarget!=null&&$displayTarget.length)console.debug('display target: '+$displayTarget[0]);else console.debug($displayTarget);console.debug($displayTarget);if(behavior==null||$displayTarget==null){console.warn('summary_features - behavior and $displayTarget not provided, and context is unknown');return} var $features=$postDiv.find('.post-entry .summary .featured:not([data-targetid])');$features.each(function(){setupSummaryFeature(jQuery(this),$postDiv,$displayTarget,behavior)});if($features.length>0){$playFeatured=jQuery('');$playFeatured.click(function(){$postDiv.find('.post-entry .summary .featured:first-child').click()});$displayTarget.append($playFeatured)}} jQuery(document).ready(function(){jQuery('body').css('padding-bottom',jQuery('#footer').outerHeight()+'px');jQuery('.mw-cite-backlink a.anchor').each(function(){var href=jQuery(this).attr('href');jQuery(this).attr('href','#rdp-we-'+href.substr(1))});jQuery('.category-widget-set[data-dynamic="1"]').each(categoryWidgetSetLoad);if(location.hash){setTimeout(function(){if(jQuery(location.hash).length){console.log(jQuery(location.hash).offset().top-jQuery('#wpadminbar').outerHeight()-7);jQuery('html,body').animate({scrollTop:(jQuery(location.hash).offset().top-jQuery('#wpadminbar').outerHeight()-7)},50)}},360)} jQuery('body.home #widgets .summary').each(function(){if(this.offsetHeight
    ');jQuery(this).find('.arrow').click(function(){var arrow=jQuery(this);if(arrow.hasClass('down')){arrow.parent().animate({height:extendedHeight},600,function(){jQuery(this).closest('.cat-post-item').removeClass('hasoverflow');var arrow=jQuery(this).find('.arrow.down');arrow.removeClass('down') arrow.attr('alt','Read less');arrow.attr('title','Read less')})}else{arrow.parent().animate({height:initHeight},600,function(){jQuery(this).closest('.cat-post-item').addClass('hasoverflow');var arrow=jQuery(this).find('.arrow');arrow.addClass('down');arrow.attr('title','Read more');arrow.attr('alt','Read more')})}})}});jQuery('.home-widgets .grid').each(function(){var self=jQuery(this);if(self.html().trim().length==0)self.remove()});jQuery('.twitter-timeline-delay').each(delayLoadTwitter);var $post=jQuery('.content-margin > .post');if($post.length>0)summaryFeatures(jQuery('.content-margin > .post'),'page');jQuery('.cycleContainer > .slide').each(function(){summaryFeatures(jQuery(this),'slider')})});(function(jQuery){jQuery.each(['show','hide'],function(i,ev){var el=jQuery.fn[ev];jQuery.fn[ev]=function(){this.trigger(ev);return el.apply(this,arguments)}})})(jQuery); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-includes/js/jquery/jquery.query.js */ try{ new function(e){var d=e.separator||"&";var c=e.spaces===!1?false:!0;var a=e.suffix===!1?"":"[]";var g=e.prefix===!1?false:!0;var b=g?e.hash===!0?"#":"?":"";var f=e.numbers===!1?false:!0;jQuery.query=new function(){var h=function(m,l){return m!=undefined&&m!==null&&(!!l?m.constructor==l:!0)};var i=function(r){var l,q=/\[([^[]*)\]/g,n=/^([^[]+)(\[.*\])?$/.exec(r),o=n[1],p=[];while(l=q.exec(n[2])){p.push(l[1])}return[o,p]};var k=function(s,r,q){var t,p=r.shift();if(typeof s!="object"){s=null}if(p===""){if(!s){s=[]}if(h(s,Array)){s.push(r.length==0?q:k(null,r.slice(0),q))}else{if(h(s,Object)){var n=0;while(s[n++]!=null){}s[--n]=r.length==0?q:k(s[n],r.slice(0),q)}else{s=[];s.push(r.length==0?q:k(null,r.slice(0),q))}}}else{if(p&&p.match(/^\s*[0-9]+\s*$/)){var m=parseInt(p,10);if(!s){s=[]}s[m]=r.length==0?q:k(s[m],r.slice(0),q)}else{if(p){var m=p.replace(/^\s*|\s*$/g,"");if(!s){s={}}if(h(s,Array)){var l={};for(var n=0;n0){r.push(b)}r.push(q.join(d));return r.join("")}};return new j(location.search,location.hash)}}(jQuery.query||{}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/plugins/rdp-wiki-embed/pl/js/url.min.js */ try{ /*! url - v1.8.6 - 2013-11-22 */window.url=function(){function a(a){return!isNaN(parseFloat(a))&&isFinite(a)}return function(b,c){var d=c||window.location.toString();if(!b)return d;b=b.toString(),"//"===d.substring(0,2)?d="http:"+d:1===d.split("://").length&&(d="https://"+d),c=d.split("/");var e={auth:""},f=c[2].split("@");1===f.length?f=f[0].split(":"):(e.auth=f[0],f=f[1].split(":")),e.protocol=c[0],e.hostname=f[0],e.port=f[1]||("https"===e.protocol.split(":")[0].toLowerCase()?"443":"80"),e.pathname=(c.length>3?"/":"")+c.slice(3,c.length).join("/").split("?")[0].split("#")[0];var g=e.pathname;"/"===g.charAt(g.length-1)&&(g=g.substring(0,g.length-1));var h=e.hostname,i=h.split("."),j=g.split("/");if("hostname"===b)return h;if("domain"===b)return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(h)?h:i.slice(-2).join(".");if("sub"===b)return i.slice(0,i.length-2).join(".");if("port"===b)return e.port;if("protocol"===b)return e.protocol.split(":")[0];if("auth"===b)return e.auth;if("user"===b)return e.auth.split(":")[0];if("pass"===b)return e.auth.split(":")[1]||"";if("path"===b)return e.pathname;if("."===b.charAt(0)){if(b=b.substring(1),a(b))return b=parseInt(b,10),i[0>b?i.length+b:b-1]||""}else{if(a(b))return b=parseInt(b,10),j[0>b?j.length+b:b]||"";if("file"===b)return j.slice(-1)[0];if("filename"===b)return j.slice(-1)[0].split(".")[0];if("fileext"===b)return j.slice(-1)[0].split(".")[1]||"";if("?"===b.charAt(0)||"#"===b.charAt(0)){var k=d,l=null;if("?"===b.charAt(0)?k=(k.split("?")[1]||"").split("#")[0]:"#"===b.charAt(0)&&(k=k.split("#")[1]||""),!b.charAt(1))return k;b=b.substring(1),k=k.split("&");for(var m=0,n=k.length;n>m;m++)if(l=k[m].split("="),l[0]===b)return l[1]||"";return null}}return""}}(),"undefined"!=typeof jQuery&&jQuery.extend({url:function(a,b){return window.url(a,b)}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/lib/slidergen/js/cycle-imp.js */ try{ jQuery(document).ready(function(){if(isLargeScreen!="function"||isLargeScreen())jQuery('.cycleContainer').oa_slider()});(function($){$.fn.oa_slider=function(){if(this.length==0)return;var slider=this;slider.playstate=!0;this.attr('data-slider-root','true');slider.addClass('sliderHost');var cycleNav=new Object();cycleNav.advanceNumeral=!1;slider.prop('cycleNav',cycleNav);var navType='thumbnails';if(slider.attr('data-nav')!=undefined) navType=this.attr('data-nav');var createWidgetsNav=!0;var createListNav=!1;slider.closest('.sliderOuterContainer').addClass('nav-'+navType);this.excerpts={};var thumbSize;thumbSize='784x441';thumbSize='335x190';if(slider.attr('data-thumb-size')!=undefined)thumbSize=slider.attr('data-thumb-size');var titles=slider.find('div.slide .slider-content[post_title]').map(function(){return jQuery(this).attr('post_title').trim()});var thumbs=slider.find('div.slide').map(function(){var $this=jQuery(this);if($this.find("img").length) return $this.find("img").attr('src');else return-1});var excerpts=slider.find('div.slide div.slider-main-content').map(function(){return jQuery(this)});var articlelinks=slider.find('div.slide .slider-img > a').map(function(){return jQuery(this).attr('href')});if(titles.length>1){var returnToFirst='';if(titles.length>=8)returnToFirst='
    ';var slideNumWidth=1+1.35*(1+Math.log10(titles.length));slider.append('
    '+returnToFirst+'
    1 / '+titles.length+'
    ');enableManualCycleControl(slider)} slider.prop('cycleNav').prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} slider.prop('cycleNav').nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}} slider.prop('cycleNav').setSlide=function(event){var index=event.data.index;var currentLi=jQuery('#cycle-numeral-nav ul li.active');var currentUlIndex=currentLi.parent().attr('idx');var toLi=jQuery('#cycle-numeral-nav ul li.idx'+index);var toUlIndex=toLi.parent().attr('idx');if(index!=currentLi.attr('idx')){currentLi.removeClass('active');toLi.addClass('active');if(currentUlIndex!=toUlIndex){currentLi.parent().removeClass('active');currentLi.parent().css('display','none');toLi.parent().addClass('active');toLi.parent().css('display','inline-block')}}} if(navType=='numeric'){slider.prop('cycleNav').advanceNumeral=!0;slider.prop('cycleNav').prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} slider.prop('cycleNav').nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(slider.prop('cycleNav').multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}}} if(slider.parent().siblings('.nav-container').length==0){slider.parent().after('')} slider.parent().siblings('.nav-container').append('
      ');if(navType=='widgets'){jQuery('#cycle-nav').append('
      ');jQuery('#widget-control .hide-feat-img').click(function(){var div=jQuery(this);if(div.hasClass('active')){div.attr('title','Show Featured Images')}else{div.attr('title','Hide Featured Images')} div.toggleClass('active');jQuery('.cyclenav').toggleClass('hide-feat-im')});jQuery('#widget-control .hide-summary').click(function(){var div=jQuery(this);if(div.hasClass('active')){div.attr('title','Show Summaries')}else{div.attr('title','Hide Summaries')} div.toggleClass('active');jQuery('.cyclenav').toggleClass('hide-summary')});jQuery.widgetControlTop=jQuery('.nav-container').offset().top-jQuery('#wpadminbar').outerHeight()-25;jQuery('#widget-control').after('');jQuery(window).scroll(function(){var widgCtrl=jQuery('#widget-control');widgCtrl.toggleClass('fixed',jQuery(this).scrollTop()>jQuery.widgetControlTop)})}else if(navType=='thumbnails'&&titles.length>8){var numSets=Math.ceil(titles.length/8);var navContainer=slider.parent().siblings('.nav-container');var setSelector=jQuery('
      ').appendTo(navContainer);var selectors=Array(numSets).fill().map(function(val,idx,arr){var minInd=8*(idx)+1;var maxInd=Math.min(minInd+7,titles.length);var navButtonText;if(maxInd>minInd)navButtonText=minInd+'–'+maxInd;else navButtonText=minInd;var navButton=jQuery('
      '+navButtonText+'
      ');navButton.appendTo(setSelector).click(function(){var activeSelector=jQuery(this).siblings('.selected');if(activeSelector.length==0)return;var activeIdx=Number(activeSelector.attr('data-idx'));var cyclenav=setSelector.parent().find('.cyclenav');var newScroll=idx*(cyclenav.width()+3);cyclenav.animate({scrollLeft:newScroll});activeSelector.removeClass('selected');jQuery(this).addClass('selected')});if(idx==0)navButton.addClass('selected')});if(numSets>3) jQuery('
      ').appendTo(setSelector).click(function(){var activeIdx=Number(jQuery(this).siblings('.selected').attr('data-idx'));var newIdx=(activeIdx+1)%numSets;jQuery(this).siblings('.button[data-idx="'+newIdx+'"]').click()})} var oa_autostop=!1;var oa_autostop_count=0;oa_autostop=!0;oa_autostop_count=jQuery('#cycleContainer > .slide.container').length+1;var oa_cycle_first_delay=0;if(!oa_cycle_auto_play){oa_autostop=0;playstate=!1} var options={fx:'fade',autostop:oa_autostop,autostopCount:oa_autostop_count,pause:!0,before:beforeTransition,after:afterTransition,delay:oa_cycle_initial_delay,timeout:oa_cycle_delay,slideResize:!0,containerResize:!1,width:'100%',fit:1,prev:'.prev',next:'.next',slideExpr:'.slide',pager:'#cycle-nav',pagerEvent:'click',fastOnEvent:!0,pagerAnchorBuilder:function(index,slide){slide=jQuery(slide);var container=slide.closest('.cycleContainer');slide.attr('idx',index);var imgThumb=thumbs[index];var link=articlelinks[index];var titleStr=titles[index];slider.prop('cycleNav').multipleSets=!1;var titleCutLength=65;if(titleStr.length>titleCutLength){var cutat=titleStr.lastIndexOf(' ',titleCutLength);if(cutat!=-1)titleStr=titleStr.substring(0,cutat)+' ...'} var newListItem=null;if(navType=='numeric'){if(index%10==0){if(index==0){jQuery('#cycle-numeral-nav div').append('
        ')}else{jQuery('#cycle-numeral-nav div').append('')}} if(index==11){slider.prop('cycleNav').multipleSets=!0;jQuery('#cycle-numeral-nav').addClass('multi-list')} var curList=jQuery('#cycle-numeral-nav div > ul:last-child');curList.append('
      • '+(index+1)+'
      • ');var curLi=curList.find('li').last()}else if(navType=='thumbnails'){var newThumbFilename;var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=null;if(imgThumb!=-1)re_match=imgThumb.match(sizeRe);if(re_match){var imgExtension=re_match[3];var imgNameWithoutExtension=re_match[1]+re_match[2];var imgNameWithoutWPSize=re_match[1];newThumbFilename=imgNameWithoutWPSize+'-'+thumbSize+imgExtension}else{if(imgThumb!=-1){var imgExtension=/[^\.]*$/.exec(imgThumb);var imgNameWithoutExtension=/.*(?=\.)/.exec(imgThumb);newThumbFilename=imgNameWithoutExtension+'-'+thumbSize+'.'+imgExtension}else{newThumbFilename=null}} console.debug('newThumbFilename1: '+newThumbFilename);if(newThumbFilename&&newThumbFilename.includes('/plugins/featured-video-plus')){var $thumbObj=slide.find('a.preview-lazyload');newThumbFilename=$thumbObj.attr('data-video-thumbnail');if(!newThumbFilename)newThumbFilename=$thumbObj.css('background-image').replace(new RegExp(/url\(\"?/),'').replace(new RegExp(/\"?\)/),'');console.debug('newThumbFilename2: '+newThumbFilename)} if(newThumbFilename=='none'){newListItem='
        '+titleStr+'
        ';newListItem='';var newThumbFilename=$thumbObj.css('background-image').replace(new RegExp(/\"/,'g'),'');if($thumbObj.css('background-image')!='none')jQuery('.navlist[idx='+index+'] > div').prepend('
        ')}else if(newThumbFilename){newListItem='
        '+titleStr+' thumbnail'+titleStr+'
        ';var img=new Image();img.onerror=function(){jQuery(jQuery('#cycle-nav > li.navlist > a > div > img')[index]).attr('src',imgThumb)};img.src=newThumbFilename;newListItem=''}else{newListItem=''}}else if(navType=='widgets'){var newThumbFilename;var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=null;if(imgThumb!=-1)re_match=imgThumb.match(sizeRe);if(re_match){var imgExtension=re_match[3];var imgNameWithoutExtension=re_match[1]+re_match[2];var imgNameWithoutWPSize=re_match[1];newThumbFilename=imgNameWithoutWPSize+'-'+thumbSize+imgExtension}else{if(imgThumb!=-1){var imgExtension=/[^\.]*$/.exec(imgThumb);var imgNameWithoutExtension=/.*(?=\.)/.exec(imgThumb);newThumbFilename=imgNameWithoutExtension+'-'+thumbSize+'.'+imgExtension}else{newThumbFilename=null}} if(newThumbFilename.includes('/plugins/featured-video-plus')){var vidHtml;if(container.find('.slide:nth-child('+(index+1)+') .slider-img .container-lazyload').length>0){vidHtml=container.find('.slide:nth-child('+(index+1)+') .slider-img > div.featured-video-plus').html()}else{vidHtml=container.find('.slide:nth-child('+(index+1)+') .slider-img > a').html()} newListItem=''}else{if(newThumbFilename){jQuery.get(newThumbFilename).done(function(){}).fail(function(){jQuery.get(imgThumb).done(function(){jQuery(jQuery('#cycle-nav > li.navlist > a > div > img')[index]).attr('src',imgThumb)}).fail(function(){})});if(newThumbFilename!=null){newListItem='
        '+titleStr+''}else{newListItem='
        '+titleStr+''} newListItem=''}else{newListItem=''}}} return newListItem},updateActivePagerLink:function(pager,currSlideIndex){jQuery(pager).find('.navlist').removeClass('active').filter('.navlist:eq('+currSlideIndex+')').addClass('active')}};slider.cycle(options);if(navType=='thumbnails'&&titles.length>8&&titles.length%8>0){for(var j=titles.length%8+1;j<=8;j++) slider.closest('.sliderOuterContainer').find('.cyclenav.thumbnails').append('');} slider.prop('cycleNav').fullscreenSlider=this.attr('data-display')=='fullscreen';if(!slider.prop('cycleNav').fullscreenSlider){this.find('.slide').each(function(){resizeMainContent(jQuery(this))})}else{slider.find('.slider-content').removeClass('fit');slider.find('.slider-main-content').each(function(){var $this=jQuery(this);$this.find('p').each(function(){var $p=jQuery(this);if($this.html().match(/^\s*( )?\s*$/))$this.remove()});if($this.html().match(/^\s*( )?\s*$/))$this.remove()});slider.find('.slider-content').each(function(){var sliderContent=jQuery(this);sliderContent.click(function(){window.location=sliderContent.find('h2.slider-header > a').attr('href')})});slider.find('div.slide div.slider-img a').map(function(){var sliderImgA=jQuery(this);var bgImg=sliderImgA.find('img');if(bgImg.length==1){var bgImgSrc=bgImg.attr('src');if(slider.prop('cycleNav').fullscreenSlider){var sizeRe=/(.*[^\-])(\-\d+x\d+)(\.[^\.]{3}[^\.]?)$/;var re_match=bgImgSrc.match(sizeRe);var urlBase;var urlExt;if(re_match){urlBase=re_match[1];urlExt=re_match[3]}else{sizeRe=/(.*[^\.])(\.[^\.]{3}[^\.]?)$/;re_match=bgImgSrc.match(sizeRe);if(re_match){urlBase=re_match[1];urlExt=re_match[2]}else{sliderImgA.css('background-image','url("'+bgImgSrc+'")');bgImg.css('display','none');return}} bgImgSrc=urlBase+urlExt} sliderImgA.css('background-image','url("'+bgImgSrc+'")');bgImg.css('display','none')}});slider.find('.slider-content').addClass('on');slider.find('.slider-content').each(function(){var excerptDiv=jQuery(this).find('.slider-main-content');var excerptCutLen=200;if(excerptDiv.length==1){if(excerptDiv.text().length>excerptCutLen){var cutat=excerptDiv.text().lastIndexOf(' ',excerptCutLen);if(cutat!=-1)excerptDiv.text(excerptDiv.text().substring(0,cutat)+' ...')}}else{jQuery(this).hide()}})} if(oa_cycle_auto_play){this.find('.cycle-state').each(function(){togglePlayButton(jQuery(this))})} jQuery('.cycle-state').click(function(){togglePlayButton(jQuery(this))});jQuery('li.navlist').mouseover(function(){slider.cycle('pause')}).mouseout(function(){if(playstate==!0){jQuery('.cycleContainer').cycle('resume')}});jQuery('#cycle-nav li a').click(function(){var tLink=jQuery(this).attr("dbctarget");window.open(tLink,"_self")});this.find('.slide.container .slider-main-content .summary .topnews').each(function(){var topnews=jQuery(this);var container=topnews.closest('.slider-main-content');container.append(topnews);container.find('.summary').remove()});this.find('.slide.container:not([data-loadedfull])').topNewsInterface('.slider-img-container','.slider-header > a');this.find('.sliderContainer .slide.container .slider-main-content *:not(.tn_details) > a[href*="youtube.com"]').each(function(){var match=jQuery(this).attr('href').match(videoUrlPat_youtube);if(match){var ytId=match[2];jQuery(this).click(function(){var container=jQuery(this).closest('.slide.container').find('.slider-img-container');var targetVideo=container.find('#yt'+ytId);var visiblePlayer=container.find('> .video-embed:visible');if(visiblePlayer.length>0&&(targetVideo.length==0||!targetVideo.is(':visible'))){pauseSliderVideo(visiblePlayer)} if(targetVideo.length>0){if(!targetVideo.is(':visible')){container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast');resumeSliderVideo(targetVideo)}}else{var targetVideo=jQuery('');container.append(targetVideo);container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast')} return!1});jQuery(this).removeClass('external').attr('title','View video')}});this.find('.sliderContainer .slide.container .slider-main-content *:not(.tn_details) > a[href*="vimeo.com"]').each(function(){var match=jQuery(this).attr('href').match(videoUrlPat_vimeo);if(match){var vimId=match[3];jQuery(this).click(function(){var container=jQuery(this).closest('.slide.container').find('.slider-img-container');var targetVideo=container.find('#vim'+vimId);var visiblePlayer=container.find('> .video-embed:visible');if(visiblePlayer.length>0&&(targetVideo.length==0||!targetVideo.is(':visible'))){pauseSliderVideo(visiblePlayer)} if(targetVideo.length>0){if(!targetVideo.is(':visible')){container.find('> *:visible').fadeOut('fast');targetVideo.fadeIn('fast');resumeSliderVideo(targetVideo)}}else{var targetVideo=jQuery('');container.append(targetVideo);container.find('> *:visible').fadeOut('slow');targetVideo.fadeIn('slow')} return!1});jQuery(this).removeClass('external').attr('title','View video')}});if(!oa_cycle_auto_play){this.cycle('pause');this.playstate=!1} return this}})(jQuery);function addWidgetInterfaceToSlide($container,content,slideNav=!0){var $sliderMainContent=$container.find('.slider-main-content');$sliderMainContent.find('> *').remove();$sliderMainContent.html(content).addClass('full').addClass('post-entry');$container.find('.slider-content').addClass('post-widget');$container.topNewsInterface('.slider-img','.slider-item-title');if($container.find('.summary .featured').length>0&&$container.find('.summary .featured').attr('data-targetid')==undefined){summaryFeatures($container,'slider','fade')} createWidgetInterface($container,'.slider-header','.slider-main-content',!1);$container.find('.twitter-timeline-delay').each(delayLoadTwitter);$sliderMainContent.initialTop=$sliderMainContent.offset().top;$sliderMainContent.heightTaken=$container.find('.post-title').outerHeight()+$container.find('.sponsor-bar').outerHeight();var resizeSliderContent;if($sliderMainContent.is(':visible')) resizeSliderContent=function(){var otherHeight=$sliderMainContent.heightTaken+($sliderMainContent.offset().top-$sliderMainContent.initialTop);$sliderMainContent.css('height','calc(100% - '+otherHeight+'px)')};else resizeSliderContent=function(){var navHeight=0;var $visNav=$container.find('.headings-nav:visible');if($visNav.length>0)navHeight=$visNav.outerHeight(!0);var otherHeight=$container.find('.post-title').outerHeight()+navHeight+$container.find('.sponsor-bar').outerHeight();$sliderMainContent.css('height','calc(100% - '+otherHeight+'px)')};$container.find('.nav-toggle').click(resizeSliderContent);$container.find('.headings-nav > div').click(resizeSliderContent);var $mainNav=$container.find('.main-nav');if(slideNav){var $visibleNav=$container.find('.headings-nav:visible');if($visibleNav.length==0)$visibleNav=$mainNav;$visibleNav.hide().slideDown({duration:350,progress:resizeSliderContent,start:function(){enterWidget($container)},})}else{$mainNav.show();enterWidget($container)}} togglePlayButton=function(cycleStateObj){if(cycleStateObj.hasClass('pause')){cycleStateObj.removeClass('pause').addClass('play').prop('title','Play').attr('alt','Play');jQuery('.cycleContainer').cycle('pause');playstate=!1}else{cycleStateObj.removeClass('play').addClass('pause').prop('title','Pause').attr('alt','Pause');jQuery('.cycleContainer').cycle('resume');playstate=!0}} enableManualCycleControl=function(slider){if(slider.prop('cycleNav').fullscreenSlider){slider.find('div.sliderContainer .cycleContainer').append('
        ');slider.find('.slider-content').css('padding-right','30px')} slider.parent().find('.tostart').click(function(){jQuery(this).closest('.sliderContainer').find('.cycleContainer').cycle(0)});jQuery(document).keydown(function(e){switch(e.which){case 37:slider.cycle('prev');break;case 38:break;case 39:slider.cycle('next');break;case 40:break;default:return} e.preventDefault()})} prevNavSet=function(){var active=jQuery('#cycle-numeral-nav ul.active');var prev;if(active.attr('idx')==0){prev=jQuery('#cycle-numeral-nav ul').last()}else{prev=active.prev()} active.removeClass('active');prev.addClass('active');active.css('display','none');prev.css('display','inline-block')} nextNavSet=function(){var active=jQuery('#cycle-numeral-nav ul.active');var next;var lastIndex=jQuery('#cycle-numeral-nav ul:last-child').attr('idx');if(lastIndex==active.attr('idx')){next=jQuery('#cycle-numeral-nav ul').first()}else{next=active.next()} active.removeClass('active');active.css('display','none');next.addClass('active');next.css('display','inline-block')} slideTransition=function(elOut,elIn,options){elIn=jQuery(elIn);elOut=jQuery(elOut);var inIndex=elIn.attr('idx');var inIndexInt=parseInt(inIndex);if(!isNaN(inIndexInt)){jQuery('.slide-numbers > .current').html((inIndexInt+1)+'')} var outIndex=elOut.attr('idx');var outIndexInt=parseInt(outIndex);var lastIndex=jQuery('#cycle-numeral-nav ul:last-child li:last-child').attr('idx');if(elIn.closest('sliderHost').cycleNav.advanceNumeral||lastIndex==outIndex){if(inIndexInt==outIndexInt+1||(inIndexInt==0&&outIndex==lastIndex)){nextSlide()}else if(inIndexInt==outIndexInt-1||(outIndexInt==0&&inIndex==lastIndex)){prevSlide()}} jQuery.cycleNav.advanceNumeral=!0} function beforeTransition(elOut,elIn,options){elIn=jQuery(elIn);elOut=jQuery(elOut);var inIndex=elIn.attr('idx');var inIndexInt=parseInt(inIndex);if(!isNaN(inIndexInt)){jQuery('.slide-numbers > .current').html((inIndexInt+1)+'')} var outIndex=elOut.attr('idx');var outIndexInt=parseInt(outIndex);var lastIndex=jQuery('#cycle-numeral-nav ul:last-child li:last-child').attr('idx');var slider=elIn.closest('.sliderHost');if(slider.prop('cycleNav').advanceNumeral||lastIndex==outIndex){if(inIndexInt==outIndexInt+1||(inIndexInt==0&&outIndex==lastIndex)){slider.prop('cycleNav').nextSlide()}else if(inIndexInt==outIndexInt-1||(outIndexInt==0&&inIndex==lastIndex)){slider.prop('cycleNav').prevSlide()}} slider.prop('cycleNav').advanceNumeral=!0;var navSet=Math.floor(inIndexInt/8);if(Math.floor(outIndex/8)!=navSet){elIn.closest('.sliderOuterContainer').find('.cyclenav-set-selector .button[data-idx="'+navSet+'"]').click()} if(elIn.attr('data-loadedfull')==undefined){var h2=elIn.find('h2.slider-header');var postType=h2.attr('data-post-type');var slug=h2.attr('data-slug');var $widget=jQuery('.post-widget.'+slug+'.'+postType);if($widget.length&&$widget.find('.main-nav').length==0&&$widget.find('.post-content').length){addWidgetInterfaceToSlide(elIn,$widget.find('.post-content').html(),!1)}else{getPostBySlug(slug,postType,function(json){if(json.length){addWidgetInterfaceToSlide(elIn,stripJs(json[0].content.rendered))}})} elIn.attr('data-loadedfull','1')}} function afterTransition(elOut,elIn,options){if(jQuery('#fullscreenSlider').length==0){resizeMainContent(jQuery(elIn))}} function resizeMainContent($slide){var subtract=0;if($slide.find('.post-title').length>0) subtract=$slide.find('.post-title').outerHeight();else if($slide.find('.slider-header').length>0) subtract=$slide.find('.slider-header').outerHeight();if($slide.closest('.sliderOuterContainer').hasClass('nav-thumbnails')) subtract+=$slide.find('.sponsor-bar').outerHeight();if($slide.find('.headings-nav:visible').length) subtract+=$slide.find('.headings-nav:visible').outerHeight();$slide.find('.slider-main-content').css('height','calc(100% - '+subtract+'px)')} scrollOn=function(idx){jQuery(jQuery('.sliderContainer')[idx]).addClass('scroll')} prevSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:first-child').attr('idx')){if(jQuery.cycleNav.multipleSets){if(active.parent().attr('idx')=="0"){jQuery('#cycle-numeral-nav ul:last-child li:last-child').addClass('active')}else{active.parent().prev().find('li:last-child').addClass('active')} prevNavSet()}else{active.parent().find('li:last-child').addClass('active')}}else{active.prev().addClass('active')}} nextSlide=function(){var active=jQuery('#cycle-numeral-nav li.active');var nextActive;active.removeClass('active');if(active.attr('idx')==active.parent().find('li:last-child').attr('idx')){if(jQuery.cycleNav.multipleSets){if(active.parent().attr('idx')==jQuery('#cycle-numeral-nav ul:last-child').attr('idx')){jQuery('#cycle-numeral-nav ul:first-child li:first-child').addClass('active')}else{active.parent().next().find('li:first-child').addClass('active')} nextNavSet()}else{active.parent().find('li:first-child').addClass('active')}}else{active.next().addClass('active')}} setSlide=function(event){var index=event.data.index;var currentLi=jQuery('#cycle-numeral-nav ul li.active');var currentUlIndex=currentLi.parent().attr('idx');var toLi=jQuery('#cycle-numeral-nav ul li.idx'+index);var toUlIndex=toLi.parent().attr('idx');if(index!=currentLi.attr('idx')){currentLi.removeClass('active');toLi.addClass('active');if(currentUlIndex!=toUlIndex){currentLi.parent().removeClass('active');currentLi.parent().css('display','none');toLi.parent().addClass('active');toLi.parent().css('display','inline-block')}}} updateNavHeight=function(){var setHeight=Math.min(Math.max(115,jQuery(window).height()-370),jQuery('#cycle-nav').height()+8);var container=jQuery('.nav-container');if(container.prop('scrollHeight')>setHeight){jQuery('#cycle-nav').css('left','7px');jQuery('#cycle-nav-container').css('margin-left','-60px')}else{jQuery('#cycle-nav').css('left','0');jQuery('#cycle-nav-container').css('margin-left','-61px')} container.height(setHeight)}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-includes/js/wp-embed.min.js */ try{ !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/modules/oa/toc/toc-init.js */ try{ jQuery.toc=new Object();jQuery.toc.globalLiSelected=null;jQuery.toc.globalExpandedUl=null;jQuery.toc.globalCollapsePrevUl=!1;jQuery.toc.hide=!1;jQuery.toc.maxCharacters=50; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://pa.onair.cc/wp-content/themes/onair-7.0/modules/oa/toc/toc-functions.js */ try{ if(!jQuery.toc){jQuery.toc=new Object()} jQuery.toc.globalLiSelected=null;jQuery.toc.globalExpandedUl=null;jQuery.toc.globalCollapsePrevUl=!1;jQuery.toc.maxCharacters=50;var _minItemsPerH=1;var includeTNSections=!1;function htmlTableOfContents(documentRef){var documentRef=documentRef||document;var $toc=jQuery('#toc-naver');var maxLevels=2;var hLevels=[];for(i=0;i
        ');if(jQuery('#widget-inflow').hasClass('closed')){var $outerToggle=jQuery('#widgetToggle');$outerToggle.addClass('on');setWidgetTogglePosition();jQuery('#content').toggleClass('full');jQuery('#toggleInflow').show()} while(curHtmlLevel<=5&&curTocLevel h'+curHtmlLevel));if(curHtmlLevel==2&&includeTNSections)headings=[...[].slice.call(documentRef.body.querySelectorAll('.post-entry .topnews > h2')),...$headings];var keptHeadings=[];var items=0;var numHeadings=$headings.length;if(curTocLevel>0||numHeadings>=_minItemsPerH){$headings.forEach(function(heading,index){if(jQuery(heading).text().length>0){items++}else{}});if(curTocLevel>0||items>=_minItemsPerH){hLevels[curTocLevel]=curHtmlLevel;hToLevelMap[curHtmlLevel]=curTocLevel+1;curTocLevel++}}} if(curTocLevel>0)jQuery('#widgets .toc').show();var selectors;if(includeTNSections)selectors='.post-entry h'+hLevels[0];else selectors='.post-entry > h'+hLevels[0];var not='.tn_summary h'+hLevels[0];for(var level=1;level");var $ul=jQuery('#toc-list');var $titleJQ=jQuery('.post-entry').prevAll('h1');var $menuJQ=jQuery('#wrapper_page');$menuJQ.attr('id','toc-title');var $lastLi=null;var headingLabel,tocId,prevTocId;$headings.each(function(index,heading){headingLabel=heading.textContent.trim();var $heading=jQuery(heading);if(index==0)prevTocId='toc-top';else prevTocId=tocId;if(headingLabel){$heading.addClass('toc-anchor');tocId=headingLabel.replace(/[\s\:\;\'\"\.\,\?\~\!\@\#\$\%\^\&\*\(\)\[\]]+/g,'-').toLowerCase();var baseId=tocId;var incr=1;while(jQuery('#'+tocId).length>0){tocId=baseId+incr;incr++} $heading.attr('id',tocId);var level=hToLevelMap[parseInt(heading.tagName.charAt(1))] if(!$lastLi)level=lastLevel;if(level>lastLevel){$ul.append('');ulStack.push($ul);$ul=jQuery('#ul-'+prevTocId);$lastLi.before('');$lastLi.toggleClass('has-children');jQuery('#caret-for-'+prevTocId).click({label:prevTocId},function(event){var id=event.data.label;var $caret=jQuery('#caret-for-'+id);$caret.toggleClass('down');var $ul=jQuery('#ul-'+id);if(jQuery.toc.globalExpandedId!=null&&jQuery.toc.globalExpandedId!=id&&jQuery.toc.globalCollapsePrevUl&&jQuery('#caret-for-'+jQuery.toc.globalExpandedId).hasClass('down')){jQuery('#ul-'+jQuery.toc.globalExpandedId).slideToggle();jQuery('#caret-for-'+jQuery.toc.globalExpandedId).toggleClass('down')} if($caret.hasClass('down')){jQuery.toc.globalExpandedId=id} $ul.slideToggle({'progress':updateTocScrolling})})}else if(level');$li=jQuery('#li-'+tocId);$li.click(function(){var $li=jQuery(this);var tocId=$li.attr('id').substring(3);tocScroll('#'+tocId,13);tocToggleSelectedItem($li)});if(headingLabel.length>jQuery.toc.maxCharacters){var cutat=headingLabel.lastIndexOf(' ',jQuery.toc.maxCharacters);if(cutat!=-1)headingLabel=headingLabel.substring(0,cutat)+' ...'} $li.append(''+headingLabel+'');$lastLi=$li}});jQuery('#widgetToggle').toggleClass('sticky',jQuery('#widgets').hasClass('sticky'));setWidgetTogglePosition();jQuery('#widgets .post_tools .widget-close').click(function(){var $outerToggle=jQuery('#widgetToggle');$outerToggle.addClass('on');jQuery('#widget-inflow').toggleClass('closed');setWidgetTogglePosition();jQuery('#content').toggleClass('full')});jQuery('#widgetToggle').click(function(){var isOn=!jQuery(this).hasClass('on');var toggleContentWidth=(isOn||$stickyWindow.width()<980)?"100%":"74.6%";if(jQuery('#widgets').hasClass('sticky')){if(isOn){jQuery('#widget-inflow').toggleClass('closed');jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition()}else{jQuery('#widget-inflow').toggleClass('closed');jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition()}}else{jQuery('#widget-inflow').css({'width':jQuery('#widget-inflow').width(),'height':jQuery('#widget-inflow').height()});jQuery('#widgetToggle').toggleClass('on');setWidgetTogglePosition();jQuery('#widget-inflow').toggleClass('closed')} jQuery('#content').toggleClass('full')});elTop=jQuery('#content').offset().top-adminbarOffset;wasPastTop=$stickyWindow.scrollTop()>elTop;$stickyEl.toggleClass('sticky',$stickyWindow.scrollTop()>elTop);$stickyWindow.scroll(tocAdjustOnScroll);tocAdjustOnScroll();jQuery.toc.nonTocHeight=0;jQuery('#toc-naver').siblings().each(function(){jQuery.toc.nonTocHeight+=jQuery(this).height()});jQuery('#toc-naver').parent().parent().siblings().each(function(){jQuery.toc.nonTocHeight+=jQuery(this).height()});setSidebarMaxHeight();updateTocScrolling();$stickyWindow.resize(tocAdjustOnResize);tocAdjustOnResize();if(typeof tocInitClose=="undefined"||!tocInitClose)jQuery('#toc-naver .caret').click()} var adminbarOffset=0;jQuery(document).ready(function(){if(jQuery('#wpadminbar').is(":visible")){adminbarOffset=jQuery('#wpadminbar').outerHeight()}});function tocScroll(anchorId,offset,time){if(offset===undefined)offset=0;var $target=jQuery(anchorId);while($target.length>0&&!$target.is(':visible')){$target=$target.next()} if($target.length==0){$target=jQuery('body')} if(time===undefined||time==0){jQuery('html, body').scrollTop($target.offset().top-offset-adminbarOffset)}else{jQuery('html, body').animate({'scrollTop':$target.offset().top},time)}} function tocToggleSelectedItem(selectedLi){var tocId=selectedLi.attr('id').replace('li-','');var caret=jQuery('#caret-for-'+tocId);var ul=jQuery('#ul-'+tocId);if(caret.length==1&&(!caret.hasClass('down')||(jQuery.toc.globalLiSelected&&selectedLi.attr('id')==jQuery.toc.globalLiSelected.attr('id')))){caret.toggleClass('down');ul.slideToggle({'progress':updateTocScrolling})} if(selectedLi!=jQuery.toc.globalLiSelected){selectedLi.toggleClass('selected');if(jQuery.toc.globalLiSelected!=null){jQuery.toc.globalLiSelected.toggleClass('selected')}} if(caret.length==1){if(jQuery.toc.globalCollapsePrevUl&&jQuery.toc.globalExpandedId!=null&&jQuery.toc.globalExpandedId!=tocId&&jQuery('#caret-for-'+jQuery.toc.globalExpandedId).hasClass('down')){jQuery('#ul-'+jQuery.toc.globalExpandedId).slideToggle({'progress':updateTocScrolling});jQuery('#caret-for-'+jQuery.toc.globalExpandedId).toggleClass('down')} jQuery.toc.globalExpandedId=tocId} jQuery.toc.globalLiSelected=selectedLi} try{module.exports=htmlTableOfContents}catch(e){} function updateTocScrolling(){jQuery('#toc-naver').toggleClass('scrolling',jQuery('#toc-list').height()>jQuery('#toc-naver').height());jQuery('#toc-list').toggleClass('scrolling',jQuery('#toc-list').height()>jQuery('#toc-naver').height())} function dvLinkHandler(){jQuery('.post-entry').on('click','.dv-link',function(e){e.preventDefault();var obj=jQuery(this);var target=obj.attr('href');var targetObj=jQuery(target);console.debug(target);jQuery(target).reveal({animation:'fadeAndPop',animationspeed:300,closeonbackgroundclick:!0,dismissmodalclass:'close-reveal-modal'})})} jQuery(document).ready(function(){if(isLargeScreen()){htmlTableOfContents();try {jQuery('.toc-anchor:not(.post_summary)').each(function(){jQuery(this).nextUntil('.toc-anchor').wrapAll('
        ')})}catch(e){}}});var $stickyWindow=jQuery(window),$stickyEl=jQuery('#widgets'),elTop,wasPastTop,pastTop;var sibling=document.getElementById('toc-naver').parentNode.parentNode.nextElementSibling;while(sibling!=null){sibling.style.display='none';sibling=sibling.nextElementSibling} function tocAdjustOnScroll(){$stickyEl.toggleClass('sticky',$stickyWindow.scrollTop()>elTop);wasPastTop=pastTop;pastTop=$stickyWindow.scrollTop()>elTop;jQuery('#widgetToggle').toggleClass('sticky',pastTop);setSidebarMaxHeight();setWidgetTogglePosition()} function tocAdjustOnResize(){setSidebarMaxHeight();setWidgetTogglePosition();updateTocScrolling();var isOn=jQuery('#widgetToggle').hasClass('on');if(jQuery(window).width()>=980){if(!isOn){$stickyEl.attr('width',jQuery('#widget-inflow').width())} jQuery('#toggleInflow').show()}else{$stickyEl.attr('width','0');jQuery('#toggleInflow').hide()}} function setSidebarMaxHeight(){var maxHeight;if(pastTop){maxHeight=jQuery(window).height()-adminbarOffset}else{maxHeight=jQuery(window).height()-(jQuery('#widget-inflow').offset().top-jQuery(window).scrollTop())} if(jQuery(document).scrollTop()+jQuery(window).innerHeight()>jQuery('#footer').offset().top){var relOffset=jQuery('#footer').offset().top-jQuery(document).scrollTop();maxHeight-=jQuery(window).innerHeight()-relOffset} jQuery('#widgets').css({'max-height':(maxHeight)+"px"});var tocNaverMax=maxHeight-jQuery.toc.nonTocHeight;jQuery('#toc-naver').css({'max-height':(tocNaverMax)+"px"});updateTocScrolling()} function setWidgetTogglePosition(){}; } catch(e){console.error("An error has occurred: "+e.stack);}