if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.carousel"),o=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;n||s.data("bs.carousel",n=new i(this,o)),"number"==typeof e?n.to(e):a?n[a]():o.interval&&n.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),s="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(s&&!this.options.wrap)return e;var n="prev"==t?-1:1,o=(i+n)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,s){var n=this.$element.find(".item.active"),o=s||this.getItemForDirection(e,n),a=this.interval,r="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var h=o[0],f=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(f),!f.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(o)]);c&&c.addClass("active")}var u=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,n.addClass(r),o.addClass(r),n.one("bsTransitionEnd",function(){o.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(u)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(u)),a&&this.cycle(),this}};var s=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=s,this};var n=function(i){var s,n=t(this),o=t(n.attr("data-target")||(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),n.data()),r=n.attr("data-slide-to");r&&(a.interval=!1),e.call(o,a),r&&o.data("bs.carousel").to(r),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.affix"),o="object"==typeof e&&e;n||s.data("bs.affix",n=new i(this,o)),"string"==typeof e&&n[e]()})}var i=function(e,s){this.options=t.extend({},i.DEFAULTS,s),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,s){var n=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return i>n?"top":!1;if("bottom"==this.affixed)return null!=i?n+this.unpin<=o.top?!1:"bottom":t-s>=n+a?!1:"bottom";var r=null==this.affixed,l=r?n:o.top,h=r?a:e;return null!=i&&i>=n?"top":null!=s&&l+h>=t-s?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),s=this.options.offset,n=s.top,o=s.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof s&&(o=n=s),"function"==typeof n&&(n=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var r=this.getState(a,e,n,o);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-e-o})}};var s=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=s,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),s=i.data();s.offset=s.offset||{},null!=s.offsetBottom&&(s.offset.bottom=s.offsetBottom),null!=s.offsetTop&&(s.offset.top=s.offsetTop),e.call(i,s)})})}(jQuery); !function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document); function stickTo(a, b, c, d) { var e = jQuery(a), f = jQuery(b); if (e.length && f.length) { var c = jQuery(c).height(), g = f.offset().left, h = f.height() - e.height() - 170 + f.offset().top, i = e.height() + "px"; jQuery(window).scroll(function() { var a = jQuery(this).scrollTop(); a + c < f.offset().top ? e.css({ position: "absolute", top: "0", left: "16px" }) : a > h ? e.css({ position: "absolute", bottom: "50px", top: "auto", left: "16px" }) : e.css({ position: "fixed", left: g - 5, top: c + 50, height: i }) }).scroll() } } jQuery(function() { jQuery("#fbbox1").hover(function() { jQuery(this).toggleClass("is-active") }), jQuery(".grid-item .post").hover(function() { jQuery(this).toggleClass("is-active") }) }); var APP = {} || APP; ! function(a) { function d() { var b = a(".search"), c = b.find("a"), d = a("body"), e = !1; c.on("click", function(a) { e ? (b.blur(), d.removeClass("search-open"), e = !1) : (b.focus(), d.addClass("search-open"), e = !0) }); a("a.search-close").on("click", function() { e && (d.removeClass("search-open"), e = !1) }) } a(".primary-menu").affix({ offset: { top: function() { return a(".top-header .container > .row").outerHeight(!0) } } }); var c = (a(".sidebar-stick").affix({ offset: { top: function() { return a(".fixed-sidebar").offset().top } }, target: a(".fixed-sidebar") }), -1); a("section.container.fixed-sidebar article").each(function() { c = c > a(this).height() ? c : a(this).height() }), a("section.container.fixed-sidebar article").each(function() { a(this).height(c) }), d() }(jQuery), (jQuery), jQuery(window).load(function() { jQuery("#fbbox1").hover(function() { jQuery(this).toggleClass("is-active") }) }), (jQuery), jQuery(window).on('load resize', function () { // if (jQuery(window).width() > 768 && jQuery("body").hasClass("single")) { // jQuery('.container').stickem({ // offset: 100, // }); // var stickleft = jQuery('.stickem-container').offset().left; // jQuery('.stickem').css('left', stickleft + 25); // } if (jQuery(window).width() < 768 && jQuery("body").hasClass("single")) { jQuery('.container').stickem({ offset: 100, }); } }), function() { jQuery.fn.JoySlider = function(a) { function u() { r = d.width(), e.width(r * k); var a = jQuery(d).find(".slides-main-contanier").width(); if (f.width(r), m = r, b.preview) { if (l = (a + b.gutter) / 3, g.width(l * k), h.width(l - b.gutter), h.css({ "margin-right": b.gutter + "px" }), p > 0) var c = 1; p === f.size() - 1 && (c = 2), g.css({ left: l * (p - c) * -1 + "px" }, b.speed), x() } f.css({ left: p * m * -1 + "px" }) } function w() { b.auto && t && z(), f.size() > 3 && (q === k - 1 && 0 === p && b.preview ? g.animate({ left: "0" }, b.speed) : 0 === q && p === k - 1 && b.preview && g.animate({ left: (k - 3) * l * -1 + "px" }, b.speed), q <= p ? p !== k - 1 && p > 1 && b.preview && g.animate({ left: "+=" + l * -1 + "px" }, b.speed) : q >= p && p > 0 && p < k - 2 && b.preview && g.animate({ left: "-=" + l * -1 + "px" }, b.speed)), f.animate({ left: p * m * -1 + "px" }, { queue: !1, duration: b.speed, complete: function() { s = !0 } }), b.preview && x(), b.auto && t && y(), q = p } function x() { h.removeClass("slide-preview-active"), h.eq(p).addClass("slide-preview-active") } function y() { n = setInterval(function() { p === k - 1 && (p = -1), p++, w() }, b.timeout), b.preview && b.auto && j.eq(p).animate({ width: "100%" }, b.timeout) } function z() { b.preview && b.auto && j.stop().width(0), clearInterval(n), n = null } var g, h, b = jQuery.extend({ auto: !0, nav: !0, loop: !0, preview: !0, speed: 400, timeout: 7e3, gutter: 40, previewTimeout: 7e3 }, a), c = jQuery(this), d = c.find(".slider-container"), e = d.find(".slides-container"), f = e.children(".slide"), i = null, j = null, k = f.size(), l = 0, m = 0, n = 0, p = 0, q = 0, r = 0, s = !0, t = !0; ! function() { if (b.nav) { var c = '
'; i = d.append(c).find(".slider-controls li") } if (b.preview) { var e = ' ", h = d.append(e).find(".slide-preview"), g = h.parent(".slides-preview-container"), j = h.find(".progress") } u() }(); var v = null; jQuery(window).resize(function() { z(), clearInterval(v), v = setTimeout(function() { u(), b.auto && t && y() }, 400) }), b.preview && h.on("click", function() { jQuery(this).index() != p && (p = jQuery(this).index(), w()) }), b.nav && i.on("click", "a", function(a) { a.preventDefault(); var c = jQuery(this); if ("stop" === c.data("stop") && (c.hasClass("stop") ? (c.removeClass("stop"), c.children().removeClass().addClass("icon-pause"), t = !0, y()) : (c.addClass("stop"), c.children().removeClass().addClass("icon-play"), t = !1, s = !0, z())), s) if ("previous" === jQuery(this).data("direction")) { if (0 === p) { if (!b.loop) return; p = k - 1, w() } else p--, w(); s = !1 } else if ("next" === jQuery(this).data("direction")) { if (p === k - 1) { if (!b.loop) return; p = 0, w() } else p++, w(); s = !1 } }), b.auto && t && w() } }(jQuery); ;