/* https://nd.onair.cc/wp-includes/js/hoverintent-js.min.js */ try{ /*! This file is auto-generated */ !function(e,t){if("function"==typeof define&&define.amd)define("hoverintent",["module"],t);else if("undefined"!=typeof exports)t(module);else{var n={exports:{}};t(n),e.hoverintent=n.exports}}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t .ab-item").focus(),y(e,"hover"))}function p(e){var t;13!==e.which||e.ctrlKey||e.shiftKey||E(e.target,".ab-sub-wrapper")||(t=E(e.target,".menupop"))&&(e.preventDefault(),(a(t,"hover")?y:v)(t,"hover"))}function m(e,t){!E(t.target,".ab-sub-wrapper")&&(t.preventDefault(),t=E(t.target,".menupop"))&&(a(t,"hover")?y:(b(e),v))(t,"hover")}function f(e){var t,r=e.target.parentNode;if(t=r?r.querySelector(".shortlink-input"):t)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,v(r,"selected"),t.focus(),t.select(),!(t.onblur=function(){y(r,"selected")})}function h(){if("sessionStorage"in l)try{for(var e in sessionStorage)-1j&&(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://nd.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://nd.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://nd.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://nd.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://nd.onair.cc/wp-includes/js/comment-reply.min.js */ try{ /*! This file is auto-generated */ window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o").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;g{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.onair.cc/wp-includes/js/masonry.min.js */ try{ /*! This file is auto-generated */ /*! * Masonry PACKAGED v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;oe;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;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.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.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.prependTo('#sitemap > ul.intelnav:first-child');jQuery('#wp-toolbar #wp-admin-bar-faq_list').each(function(){var $mainObj=jQuery(this);var $wrapper=jQuery('#sitemap > ul.intelnav:last-child');$mainObj.find('> div.ab-sub-wrapper > ul.ab-submenu > li').each(function(){var $li=jQuery(this);var $subObj=$li.find('>.ab-item');var $newEl=jQuery('
  • '+$subObj.text()+'
  • ');$newEl.addClass($li.attr('class'));$wrapper.append($newEl)})})}}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.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://nd.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://nd.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://nd.onair.cc/wp-content/themes/onair-7.0/assets/js/top_news.js */ try{ (function($){$.fn.topNewsInterface=function(titleSelector,kwargs={}){jQuery(this).each(function(){topNewsInterface(jQuery(this),titleSelector,kwargs)});return this}})(jQuery);function topNewsInterface($postContainer,titleSelector,kwargs={}){console.debug('Enter topNewsInterface; titleSelector: '+titleSelector+'; kwargs: ');console.debug(kwargs);console.debug('Post container:');console.debug($postContainer);if($postContainer.data('has-tn-int'))return;if(kwargs.displayContainerSelector===undefined)kwargs.displayContainerSelector=null;kwargs.display=kwargs.display||'below';if(kwargs.displayContainerSelector!=null)kwargs.display='common';kwargs.entrance=kwargs.entrance||'appear';kwargs.speed=kwargs.speed||300;if(kwargs.tabs===undefined)kwargs.tabs=!1;$postContainer=jQuery($postContainer);var $topNews=$postContainer.find('* div.topnews');var $items=$topNews.find('.tn_row');if($items.length==0)return;var $displayObj;if(kwargs.displayContainerSelector!=null){$displayObj=$postContainer.find(kwargs.displayContainerSelector);if($displayObj.length==0){console.error('News Item parameter displayContainerSelector "'+kwargs.displayContainerSelector+'" finds no element');return} 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'})}}else{} var title=$postContainer.find(titleSelector).text().trim();if($topNews.find('> h2').length==0){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');if(kwargs.tabs){$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(kwargs.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.data('postContainerSelector',('.'+$postContainer.attr('class').trim().replace(/ +/g,'.').replace(/\.loading/,'')));$tnObj.data('displayContainerSelector',displayContainerSelector);$tnObj.data('display',display);$tnObj.data('entrance',entrance);$tnObj.data('speed',speed);$tnObj.click(toggleTopNews);$tnObj.addClass('dynamic')} function initNewsItemView($item,targetId,$displayContainer){$item.data('initialized','1');$item.data('displayContainer',$displayContainer);$item.addClass('display-'+$item.data('display'));$displayContainer.addClass($item.data('display'));var $targetContent=null;var fullTitle=$item.data('full-title');var $titleBlock=jQuery('
    ');if(typeof fullTitle!=='undefined'&&fullTitle!==!1){$titleBlock.append('

    '+fullTitle+'

    ')}else{$titleBlock.append('

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

    ')} if(['Article','Information','PressRelease','Commentary'].includes($item.attr('data-tn-type'))){$targetContent=$item.find('.tn_summary');$targetContent.attr('id',targetId);var $source=$item.find('.source');var sourceUrl=$item.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('

    Source: '+sourceTitle+'

    ');else $targetContent.prepend('

    Source: '+sourceTitle+'

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

    Source

    ');$targetContent.prepend($titleBlock)}else if(['Livestream','OnAir','Video'].includes($item.attr('data-tn-type'))){$targetContent=$item.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.find('> p:first-child:empty, > p:last-child:empty').remove();$targetFirstChild=$targetContent.find('> :first-child');if($targetContent.find('> .description')) $targetContent.find('> .description').before($titleBlock);else $targetContent.append($titleBlock);var $source=$item.find('.source');var sourceUrl=$item.data('src');var validSourceUrl=(typeof sourceUrl!=='undefined'&&sourceUrl!==!1&&sourceUrl!='');var sourceTitle='';if($source.length==1)sourceTitle=$source.html().trim();if(sourceTitle!='') if(validSourceUrl) $titleBlock.after('

    Source: '+sourceTitle+'

    ');else $titleBlock.after('

    Source: '+sourceTitle+'

    ');else if(validSourceUrl) $titleBlock.after('

    Source

    ')}else if('Org'==$item.attr('data-tn-type')){$targetContent=$item.find('.tn_summary');$targetContent.attr('id',targetId);$targetContent.prepend($titleBlock)}else{} if($targetContent!=null){$targetContent.addClass('tn_container');$targetContent.addClass($item.attr('data-tn-type'));if($targetContent.is($displayContainer)){if($item.data('display')=='solitary'){$targetContent.insertAfter(jQuery('#wrapper'))}else{$targetContent.insertAfter($targetContent.parent())}}else{$displayContainer.append($targetContent)} var $closeButton=jQuery('
    X
    ');$closeButton.data('item',$item);$closeButton.attr('title','Close News Item');$closeButton.attr('alt','Close News Item');$closeButton.click(function(){$closeButton.data('item').click();return!1});$targetContent.prepend($closeButton)} return $targetContent} var priorScroll=null;function toggleTopNews(event){console.debug("Enter toggleTopNews");var $next=jQuery(this);console.debug('toggleTopNews $next:');console.debug($next);var $tnParent=$next.closest('.topnews');var $prev=$tnParent.find(' .tn_row.active');var $postContainer=$next.closest($next.data('postContainerSelector'));var $prevDisplayContainer=null,$nextDisplayContainer=null;var $targetContent=null;var speed=500;if($next.data('speed')!==undefined)speed=$next.data('speed');if($next.data('displayContainerSelector')==null){if($next.data('initialized')==undefined){$nextDisplayContainer=$next.find('> .tn_summary');$next.data('displayContainer',$nextDisplayContainer)}else{$nextDisplayContainer=$next.data('displayContainer')} $prevDisplayContainer=$prev.data('displayContainer')}else{$nextDisplayContainer=$postContainer.find($next.data('displayContainerSelector'));$prevDisplayContainer=$nextDisplayContainer} if($prev[0]==$next[0]){hidePreviousTopNewsItem($prev,$prevDisplayContainer,speed);if($prev.data('display')=='solitary'){jQuery('#wrapper, body.archive > .container > .widgetWrapper').show();if(priorScroll){document.documentElement.scrollTop=document.body.scrollTop=priorScroll}}}else{var targetId=$next.data('targetid');if($next.data('initialized')==undefined){$targetContent=initNewsItemView($next,targetId,$nextDisplayContainer)}else{if($next.data('displayContainerSelector')==null) $targetContent=$nextDisplayContainer;else $targetContent=$nextDisplayContainer.find('#'+targetId);if(['Livestream','OnAir','Video'].includes($next.attr('data-tn-type'))) resumeVideo($targetContent)} if($targetContent!=null){$next.addClass('active');if($next.data('display')=='below'){var targetScroll=$next.offset().top-jQuery('#wpadminbar').outerHeight()-8;if($prev.length>0&&$next.offset().top>$prev.offset().top){targetScroll-=$prevDisplayContainer.outerHeight()} jQuery([document.documentElement,document.body]).animate({scrollTop:targetScroll},speed)} if($prev.length>0)hidePreviousTopNewsItem($prev,$prevDisplayContainer,speed);showNewsItem($next,$targetContent,speed);if($next.data('display')=='solitary'){priorScroll=document.documentElement.scrollTop||document.body.scrollTop;document.documentElement.scrollTop=document.body.scrollTop=0;jQuery('#wrapper, body.archive > .container > .widgetWrapper').hide()}}} if($next.data('display')=='common'){var $captionIcon=jQuery('#content .caption_info');if($prev[0]==$next[0]){if($nextDisplayContainer.is('a')) $nextDisplayContainer.attr('linkOn','1');else if($nextDisplayContainer.parent().is('a')) $nextDisplayContainer.parent().attr('linkOn','1');if($captionIcon.length)$captionIcon.show()}else{if($captionIcon.length){if($captionIcon.hasClass('active')){$captionIcon.click()} $captionIcon.hide()} if($nextDisplayContainer.is('a')) $nextDisplayContainer.attr('linkOn','0');else if($nextDisplayContainer.parent().is('a')) $nextDisplayContainer.parent().attr('linkOn','0')}}} function showNewsItem($item,$targetContent,speed=500){var transition=$item.data('entrance');if(transition=='slide'){$targetContent.slideDown(speed)}else if(transition=='fade'){$targetContent.fadeIn(speed)}else{$targetContent.show()}} function hidePreviousTopNewsItem($prevItem,$container,speed=500){$prevItem.removeClass('active');var $prevItemContainer;if($container.attr('id')==$prevItem.data('targetid')){$prevItemContainer=$container;var transition=$prevItem.data('entrance');if(transition=='slide'){$prevItemContainer.slideUp(speed)}else if(transition=='fade'){$prevItemContainer.fadeOut(speed)}else{$prevItemContainer.hide()}}else{$prevItemContainer=$container.find('> #'+$prevItem.data('targetid'));$prevItemContainer.fadeOut('slow')} if(['Livestream','OnAir','Video'].includes($prevItem.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://nd.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://nd.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 showNews=0;console.log('ShowNews: '+showNews);var jqxhr=jQuery.getJSON('/wp-json/wp/v2/posts',params,loadWidgetsHandler($container,showNews));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 showNewsAfterLoad(typeAndSlug){var typeAndSlugArr=typeAndSlug.split('>');console.log('in showNewsAfterLoad with typeAndSlug '+typeAndSlug);if(typeAndSlugArr.length==2){var postType=typeAndSlugArr[0];var slug=typeAndSlugArr[1];$widget=jQuery('.post-widget.'+slug);if($widget.length){$newsTab=$widget.find('.main-nav > div[title="News"]');if($newsTab.length>0){$newsTab.click();$widget.find('div.topnews:visible div:visible > div.tn_row:first-child, div.topnews:visible div:visible > h2 + div.tn_row:nth-child(2)').click()}}}} function loadWidgetsHandler($container,showNews=0){return function(json,textStatus,jqXHR){console.log('loadWidgetsHandler Enter; '+json.length+' entries');for(post_ind in json){post=json[post_ind];console.log('loadWidgetsHandler showNews is '+showNews);if(showNews) createWidgetByJson(post,$container,post.type,'','',showNewsAfterLoad);else 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_row.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');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');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($next.attr('data-feat-type')=='video'){}else if($next.attr('data-feat-type')=='google-slide'){}else if($next.attr('data-feat-type')=='quote'){$targetContent.prepend($titleBlock)} $targetContent.addClass('featured_container');$targetContent.addClass($next.attr('data-feat-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-feat-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 .featured_row: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 .featured_row: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))});if(!isLargeScreen()){if(jQuery('body.single').length==1){convertPostViewToWidget();if(jQuery('body').topNewsInterface!=undefined) jQuery('#content, .widgetWrapper > .post-widget').topNewsInterface('.post-title',{'display':'solitary','entrance':'fade','speed':250,});createWidgetInterface('#content, .widgetWrapper > .post-widget','.post-title','.post-entry')} jQuery('.widgetWrapper .post-widget').each(function(){var $widget=jQuery(this);console.debug('widgetized? '+$widget.data('widgetized'));if($widget.data('widgetized')!==undefined&&$widget.data('widgetized'))return;if($widget.find('.post-content').length==1){$widget.topNewsInterface('.post-title',{'display':'solitary','entrance':'fade','speed':250,});$widget.find('.post-content').addClass('post-entry');createWidgetInterface($widget)}})}else if(jQuery('body').topNewsInterface!=undefined){console.log('largescreen topnewsinterface');jQuery('#content').topNewsInterface('.page_title h1',{'display':'below','entrance':'slide','speed':300,'scrollToContainer':!0,'tabs':!0,})} jQuery('.category-widget-set[data-dynamic="1"]').each(categoryWidgetSetLoad);jQuery('.myonair-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://nd.onair.cc/wp-includes/js/jquery/jquery.query.js */ try{ !function(e){var t=e.separator||"&",l=!1!==e.spaces,n=(e.suffix,!1!==e.prefix?!0===e.hash?"#":"?":""),i=!1!==e.numbers;jQuery.query=new function(){function c(e,t){return null!=e&&null!==e&&(!t||e.constructor==t)}function u(e){for(var t,n=/\[([^[]*)\]/g,r=/^([^[]+)(\[.*\])?$/.exec(e),e=r[1],u=[];t=n.exec(r[2]);)u.push(t[1]);return[e,u]}function o(e,t,n){var r=t.shift();if("object"!=typeof e&&(e=null),""===r)if(c(e=e||[],Array))e.push(0==t.length?n:o(null,t.slice(0),n));else if(c(e,Object)){for(var u=0;null!=e[u++];);e[--u]=0==t.length?n:o(e[u],t.slice(0),n)}else(e=[]).push(0==t.length?n:o(null,t.slice(0),n));else if(r&&r.match(/^\s*[0-9]+\s*$/))(e=e||[])[i=parseInt(r,10)]=0==t.length?n:o(e[i],t.slice(0),n);else{if(!r)return n;var i=r.replace(/^\s*|\s*$/g,"");if(c(e=e||{},Array)){for(var s={},u=0;u3?"/":"")+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://nd.onair.cc/wp-includes/js/jquery/ui/core.min.js */ try{ /*! jQuery UI - v1.13.3 - 2024-04-26 * https://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3", /*! * jQuery UI :data 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), /*! * jQuery UI Disable Selection 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), /*! * jQuery UI Focusable 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, /*! * jQuery UI Form Reset Mixin 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), /*! * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * */ x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), /*! * jQuery UI Keycode 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, /*! * jQuery UI Labels 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
    ")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.onair.cc/wp-includes/js/jquery/ui/sortable.min.js */ try{ /*! * jQuery UI Sortable 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t*{ cursor: "+r.cursor+" !important; }").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageYt[this.floating?"width":"height"]?l&&c:r",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u(" ",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=l(),this.anchors.each(function(t,e){var i,a,s,n=l(e).uniqueId().attr("id"),h=l(e).closest("li"),r=h.attr("aria-controls");o._isLocal(e)?(s=(i=e.hash).substring(1),a=o.element.find(o._sanitizeSelector(i))):(s=h.attr("aria-controls")||l({}).uniqueId()[0].id,(a=o.element.find(i="#"+s)).length||(a=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),a.attr("aria-live","polite")),a.length&&(o.panels=o.panels.add(a)),r&&h.data("ui-tabs-aria-controls",r),h.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return l("
    ").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=l(e),!0===t||-1!==l.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=l(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,h=n?l():this._getPanelForTab(a),r=i.length?this._getPanelForTab(i):l(),i={oldTab:i,oldPanel:r,newTab:n?l():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?l():a,this.xhr&&this.xhr.abort(),r.length||h.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function h(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),h()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),h()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+l.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=Array.isArray(e)?l.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(i,"ui-tabs-loading"),h.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),h=this._getPanelForTab(i),r={tab:i,panel:h};this._isLocal(t[0])||(this.xhr=l.ajax(this._ajaxSettings(t,a,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){h.html(t),n._trigger("load",a,r),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==l.uiBackCompat&&l.widget("ui.tabs",l.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),l.ui.tabs}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.onair.cc/wp-includes/js/jquery/ui/datepicker.min.js */ try{ /*! * jQuery UI Datepicker 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("
    "))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("
    ")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("
    "+(0":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="
    ",y="";if(r||!g)y+=""+n[t]+"";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+=""}if(f||(m+=y+(!r&&g&&_?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!_)m+=""+a+"";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":" ")+y),m+="
    "},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker}); } catch(e){console.error("An error has occurred: "+e.stack);} try{ jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.onair.cc/wp-includes/js/jquery/ui/effect.min.js */ try{ /*! * jQuery UI Effects 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.onair.cc/wp-includes/js/jquery/ui/effect-slide.min.js */ try{ /*! * jQuery UI Effects Slide 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,n=d(this),c={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,r=e.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};d.effects.createPlaceholder(n),i=n.cssClip(),o=n.position()[l],u[l]=(p?-1:1)*r+o,u.clip=n.cssClip(),u.clip[c[f][1]]=u.clip[c[f][0]],"show"===s&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=o),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://nd.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').topNewsInterface('.slider-header > a',{'displayContainerSelector':'.slider-img-container'});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-item-title',{'displayContainerSelector':'.slider-img'});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',{'showNav':!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.data('loadedfull')==undefined){var h2=elIn.find('h2.slider-header');var postType=h2.data('post-type');var slug=h2.data('slug');var $widget=jQuery('.post-widget.'+slug+'.'+postType);if($widget.length&&$widget.find('.main-nav').length==0&&$widget.find('.post-content').length){elIn.data('default-tab',$widget.data('default-tab'));elIn.data('is-shared',$widget.data('is-shared'));if($widget.data('is-shared'))elIn.addClass('is_shared');addWidgetInterfaceToSlide(elIn,$widget.find('.post-content').html(),!1)}else{getPostBySlug(slug,postType,function(json){if(json.length){elIn.data('default-tab',json[0].display_options.default_tab);elIn.data('is-shared',json[0].source.is_shared);if(json[0].source.is_shared)elIn.addClass('is_shared');addWidgetInterfaceToSlide(elIn,stripJs(json[0].content.rendered))}})} elIn.data('loadedfull','1')}} function afterTransition(elOut,elIn,options){if(jQuery('#fullscreenSlider').length==0){resizeMainContent(jQuery(elIn))} if(jQuery(elIn).find('div.container-lazyload > iframe[width="0px"]').length>0)window.dispatchEvent(new Event('resize'))} 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');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://nd.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://nd.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.globalExpandedId=null;jQuery.toc.globalCollapsePrevUl=!1;jQuery.toc.maxCharacters=50;var _minItemsPerH=1;var includeTNSections=!1;function htmlTableOfContents(documentRef){if(jQuery('#content').length==0)return;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 $li;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');$ul.append($li);$li.click(function(){var $li=jQuery(this);var tocId=$li.data('toc-id');tocAutoScroll('#'+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;var autoScrollActive=0;var lastScrollTop=0;jQuery(document).ready(function(){if(jQuery('#wpadminbar').is(":visible")){adminbarOffset=jQuery('#wpadminbar').outerHeight()} lastScrollTop=jQuery(window).scrollTop()});function initTocHighlight(){var st=jQuery(document).scrollTop();var viewTop=st+adminbarOffset;var viewBottom=st+jQuery(window).innerHeight();var viewHeight=viewBottom-viewHeight;var $firstItem=jQuery('#toc-list > li:first-child');if($firstItem.length==0)return;var $firstHeading=jQuery('#'+$firstItem.data('toc-id'));var $firstSection;if($firstItem.data('toc-id')=='summary'){$firstSection=jQuery('.post-entry > .summary')}else{$firstSection=$firstHeading.next()} if(lastScrollTop+adminbarOffset<$firstSection.offset()['top']){if(st>lastScrollTop&&viewBottom>$firstSection.offset()['top']+50){tocToggleSelectedItem($firstItem)} lastScrollTop=jQuery(window).scrollTop();return} $lastItem=jQuery('#toc-list > :last-child');if($lastItem.prop('nodeName')=='UL') $lastItem=$lastItem.children(':last-child');$lastSection=jQuery('#'+$lastItem.data('toc-id'));if($lastSection.next().length==1)$lastSection=$lastSection.next();if(lastScrollTop+adminbarOffset>$lastSection.offset()['top']){if(stviewTop){if($lastItem.parent().attr('id')!='toc-list'&&!$lastItem.parent().is(':visible')){$lastItem.parent().prev().prev().toggleClass('down');$lastItem.parent().slideToggle({'progress':updateTocScrolling})} tocToggleSelectedItem($lastItem)} lastScrollTop=jQuery(window).scrollTop();return} var $currentHeading=$firstHeading;var $currentSection;var testPosition;while($currentHeading.length==1){$currentSection=$currentHeading.next();testPosition=$currentHeading.offset()['top']+$currentHeading.outerHeight();if(testPosition>viewTop&&testPositiontestPosition){tocToggleSelectedItem(jQuery('#toc-list li[data-toc-id="'+$currentHeading.attr('id')+'"]'));break} $currentHeading=$currentSection.next()} lastScrollTop=jQuery(window).scrollTop();return} function tocHighlightByUserScroll(){if(autoScrollActive)return;var st=jQuery(document).scrollTop();var viewTop=st+adminbarOffset;var viewBottom=st+jQuery(window).innerHeight();var viewHeight=viewBottom-viewTop;var $currentItem=jQuery('#toc-list li.selected');if($currentItem.length==0){console.debug("No current item selected");initTocHighlight();return} var $currentHeading=jQuery('#'+$currentItem.data('toc-id'));var $currentWrapper=$currentHeading.next();console.debug('current heading: '+$currentHeading.attr('id'));var currentTop=$currentHeading.offset()['top'];if($currentItem.data('toc-id')=='summary'){currentTop=$currentWrapper.offset()['top']} var $prevItem,$nextItem;if(st>lastScrollTop){var currentBottom=$currentWrapper.offset()['top']+$currentWrapper.outerHeight();if($currentWrapper.next().length>0&¤tBottom0){var $prevSection=jQuery('#'+$prevItem.data('toc-id'));if($prevSection.next().hasClass('toc-wrapper'))$prevSection=$prevSection.next();var prevBottom=$prevSection.offset()['top']+$prevSection.outerHeight();if(prevBottom>viewTop+viewHeight/4){tocToggleSelectedItem($prevItem,0)}}} lastScrollTop=jQuery(window).scrollTop()} function tocAutoScroll(anchorId,offset,time){autoScrollActive=1;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);autoScrollActive=0;lastScrollTop=jQuery(window).scrollTop()}else{jQuery('html, body').animate({'scrollTop':$target.offset().top},time,function(){autoScrollActive=0;lastScrollTop=jQuery(window).scrollTop()})}} function tocToggleSelectedItem($selectedLi){var tocId=$selectedLi.data('toc-id');var $caret=jQuery('#caret-for-'+tocId);var $ul=jQuery('#ul-'+tocId);if($caret.length==1&&(!$caret.hasClass('down')||(jQuery.toc.globalLiSelected.length&&$selectedLi.data('toc-id')==jQuery.toc.globalLiSelected.data('toc-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){var $globalCaret=jQuery('#caret-for-'+jQuery.toc.globalExpandedId);if(jQuery.toc.globalCollapsePrevUl&&jQuery.toc.globalExpandedId!=null&&jQuery.toc.globalExpandedId!=tocId&&$globalCaret.hasClass('down')){jQuery('#ul-'+jQuery.toc.globalExpandedId).slideToggle({'progress':updateTocScrolling});$globalCaret.toggleClass('down')} jQuery.toc.globalExpandedId=tocId} var $parentUl=$selectedLi.parent();if($parentUl.attr('id')!='toc-list'){$caret=$parentUl.prev().prev();if(!$caret.hasClass('down')){$caret.toggleClass('down');$parentUl.slideToggle({'progress':updateTocScrolling})}} 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('
        ')});if(jQuery('#toc-list').length&&jQuery('#toc-list > li').length>0) initTocHighlight();jQuery(window).scroll(tocHighlightByUserScroll)}catch(e){}}});var $stickyWindow=jQuery(window),$stickyEl=jQuery('#widgets'),elTop,wasPastTop,pastTop;tocNaver=document.getElementById('toc-naver');if(tocNaver){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);}