/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s}); ; /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],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});; ! function(x) { "use strict"; x.breakingNews = function(e, t) { var s = { effect: "scroll", direction: "ltr", height: 40, fontSize: "default", themeColor: "default", background: "default", borderWidth: 1, radius: 2, source: "html", play: !0, delayTimer: 4e3, scrollSpeed: 2, stopOnHover: !0, position: "auto", zIndex: 99999 }, a = this; a.settings = {}; function l() { var e; "scroll" === a.settings.effect && (e = 0, p.each(function() { e += x(this).outerWidth() }), e += 10, f.css({ width: e })) } function i() { "rtl" === a.settings.direction ? f.stop().animate({ marginRight: -f.find("li:first-child").outerWidth() }, 300, function() { f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginRight: 0 }), w = !0 }) : f.stop().animate({ marginLeft: -f.find("li:first-child").outerWidth() }, 300, function() { f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginLeft: 0 }), w = !0 }) } function n() { "rtl" === a.settings.direction ? (0 <= parseInt(f.css("marginRight"), 10) && (f.css({ "margin-right": -f.find("li:last-child").outerWidth() }), f.find("li:last-child").insertBefore(f.find("li:first-child"))), f.stop().animate({ marginRight: 0 }, 300, function() { w = !0 })) : (0 <= parseInt(f.css("marginLeft"), 10) && (f.css({ "margin-left": -f.find("li:last-child").outerWidth() }), f.find("li:last-child").insertBefore(f.find("li:first-child"))), f.stop().animate({ marginLeft: 0 }, 300, function() { w = !0 })) } var c = x(e), e = e, d = c.children(".ticker-title"), f = c.children(".blog-tickers").children("ul"), p = f.children("li"), r = c.children(".blog-ticker-controls"), g = r.find(".blog-ticker-arrow-prev").parent(), u = r.find(".wpos-action").parent(), h = r.find(".blog-ticker-arrow-next").parent(), m = !1, w = !0, k = f.children("li").length, o = 0, v = !1, y = function() { var e = parseFloat(f.css("marginLeft")); e -= a.settings.scrollSpeed / 2, f.css({ marginLeft: e }), e <= -f.find("li:first-child").outerWidth() && (f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginLeft: 0 })), !1 === m && (window.requestAnimationFrame && requestAnimationFrame(y) || setTimeout(y, 16)) }, b = function() { var e = parseFloat(f.css("marginRight")); e -= a.settings.scrollSpeed / 2, f.css({ marginRight: e }), e <= -f.find("li:first-child").outerWidth() && (f.find("li:first-child").insertAfter(f.find("li:last-child")), f.css({ marginRight: 0 })), !1 === m && (window.requestAnimationFrame && requestAnimationFrame(b) || setTimeout(b, 16)) }, C = function() { switch (w = !0, a.settings.effect) { case "typography": f.find("li").hide(), f.find("li").eq(o).width(30).show(), f.find("li").eq(o).animate({ width: "100%", opacity: 1 }, 1500); break; case "fade": f.find("li").hide(), f.find("li").eq(o).fadeIn(); break; case "slide-down": f.find("li.blog-ticker-list-active").animate({ top: 30, opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ top: -30, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ top: 0, opacity: 1 }, 300); break; case "slide-up": f.find("li.blog-ticker-list-active").animate({ top: -30, opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ top: 30, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ top: 0, opacity: 1 }, 300); break; case "slide-left": f.find("li.blog-ticker-list-active").animate({ left: "50%", opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ left: -50, opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ left: 0, opacity: 1 }, 300); break; case "slide-right": f.find("li.blog-ticker-list-active").animate({ left: "-50%", opacity: 0 }, 300, function() { x(this).removeClass("blog-ticker-list-active").hide() }), f.find("li").eq(o).css({ left: "50%", opacity: 0 }).addClass("blog-ticker-list-active").show(), f.find("li").eq(o).animate({ left: 0, opacity: 1 }, 300); break; default: f.find("li").hide(), f.find("li").eq(o).show() } }, q = function() { if (m = !1, a.settings.play) switch (a.settings.effect) { case "scroll": ("rtl" === a.settings.direction ? b : y)(); break; default: a.pause(), v = setInterval(function() { a.next() }, a.settings.delayTimer) } }; a.init = function() { if (a.settings = x.extend({}, s, t), c.addClass("blog-ticker-effect-" + a.settings.effect + " blog-ticker-direction-" + a.settings.direction), l()) { } else "html" === a.settings.source ? ("scroll" != a.settings.effect && C(), q()) : console.log('Please check your "source" parameter. Incorrect Value'); var r, o; a.settings.play ? u.find("span").removeClass("blog-ticker-play").addClass("blog-ticker-pause") : u.find("span").removeClass("blog-ticker-pause").addClass("blog-ticker-play"), c.on("mouseleave", function(e) { var t = x(document.elementFromPoint(e.clientX, e.clientY)).parents(".blog-ticker-breaking-news")[0]; x(this)[0] !== t && (!0 === a.settings.stopOnHover ? !0 === a.settings.play && a.play() : !0 === a.settings.play && !0 === m && a.play()) }), c.on("mouseenter", function() {!0 === a.settings.stopOnHover && a.pause() }), h.on("click", function() { w && (w = !1, a.pause(), a.next()) }), g.on("click", function() { w && (w = !1, a.pause(), a.prev()) }), u.on("click", function() { w && (u.find("span").hasClass("blog-ticker-pause") ? (u.find("span").removeClass("blog-ticker-pause").addClass("blog-ticker-play"), a.stop()) : (a.settings.play = !0, u.find("span").removeClass("blog-ticker-play").addClass("blog-ticker-pause"))) }), x(window).on("resize", function() { var e; "scroll" === a.settings.effect && (e = 0, p.each(function() { e += x(this).outerWidth() }), e += 10, f.css({ width: e })) }) }, a.pause = function() { m = !0, clearInterval(v) }, a.stop = function() { m = !0, a.settings.play = !1 }, a.play = function() { q() }, a.next = function() { ! function() { switch (a.settings.effect) { case "scroll": i(); break; default: k <= ++o && (o = 0), C() } }() }, a.prev = function() { ! function() { switch (a.settings.effect) { case "scroll": n(); break; default: --o < 0 && (o = k - 1), C() } }() }, a.init() }, x.fn.breakingNews = function(t) { return this.each(function() { var e; null == x(this).data("breakingNews") && (e = new x.breakingNews(this, t), x(this).data("breakingNews", e)) }) } }(jQuery);; jQuery(document).ready(function ($) { if (jQuery('.masonry').length > 0) { setTimeout(function () { jQuery('.masonry').imagesLoaded(function () { jQuery('.masonry').masonry({ columnWidth: 0, itemSelector: '.blog_masonry_item', isResizable: true }); }); }, 500); } $(document).on('click', '.social-component .bd-social-share', function (e) { e.preventDefault(); if($(this).data('share') == 'facebook') { var $href = $(this).data('href'); var $url = $(this).data('url'); var $link = $href + '?u=' + $url; window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes'); } if($(this).data('share') == 'linkedin') { var $href = $(this).data('href'); var $url = $(this).data('url'); var $link = $href + '?url=' + $url; window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes'); } if($(this).data('share') == 'twitter') { var $href = $(this).data('href'); var $text = $(this).data('text'); var $url = $(this).data('url'); var $link = $href + '?text=' + $text + '&url=' + $url; window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes'); } if($(this).data('share') == 'pinterest') { var $href = $(this).data('href'); var $url = $(this).data('url'); var $media = $(this).data('media'); var $description = $(this).data('description'); var $link = $href + '?url=' + $url + '&media=' + $media + '&description=' + $description; window.open($link,'targetWindow', 'width=800, height=400', 'toolbar=no', 'location=0', 'status=no', 'menubar=no', 'scrollbars=yes', 'resizable=yes'); } }); //For load more functionality jQuery(".bdp-load-more-btn").click(function () { var $data = jQuery(this).closest('.bdp_wrapper').find('form#bdp-load-more-hidden').serialize(); console.log($data); bdp_load_more_ajax($data); }); bd_get_boxy_clean_height(); wpspw_pro_post_ticker_init(); }); jQuery(window).resize(function () { bd_get_boxy_clean_height(); }); function bdp_load_more_ajax($data) { var layout_id_class = ".bdp_wrapper"; var paged = parseInt(jQuery(layout_id_class + ' #bdp-load-more-hidden #paged').val()); var this_year = jQuery(layout_id_class + ' #bdp-load-more-hidden #this_year').val(); var $timeline_year = jQuery(layout_id_class + ' #bdp-load-more-hidden #timeline_previous_year').val(); paged = paged + 1; var max_num_pages = parseInt(jQuery(layout_id_class + ' #bdp-load-more-hidden #max_num_pages').val()); jQuery(layout_id_class + ' .bdp-load-more-btn').addClass('loading'); jQuery(layout_id_class + ' .bdp-load-more-btn').fadeOut(); if (paged <= max_num_pages) { jQuery(layout_id_class + ' .loading-image').fadeIn(); jQuery.ajax({ url: ajaxurl, type: 'POST', data: 'action=get_loadmore_blog&' + $data, cache: false, success: function (response) { console.log(response); var jsmasonry = jQuery(layout_id_class + " .bdp-load-more-pre").find("div"); // loop through each item to check when it animates if (jsmasonry.hasClass('timeline_bg_wrap')) { jQuery(layout_id_class + ' div.timeline_back').append(response); var only_year = jQuery(layout_id_class + ' div.timeline_back').find('.timeline_year .only_year'); jQuery(only_year).each(function () { $timeline_year = jQuery(this).text(); }); jQuery(layout_id_class + ' #bdp-load-more-hidden #timeline_previous_year').val(jQuery.trim($timeline_year)); } else if (jsmasonry.hasClass('glossary_cover')) { jQuery(layout_id_class + ' div.glossary_cover .bdp_glossary').append(response); jQuery('.masonry').imagesLoaded(function () { jQuery('.masonry').masonry( 'reloadItems' ); jQuery('.masonry').masonry( 'layout' ); }) } else if (jsmasonry.hasClass('boxy-clean')) { jQuery(layout_id_class + ' .blog_template.boxy-clean > ul').append(response); bd_get_boxy_clean_height(); } else if (jsmasonry.hasClass('media-grid')) { jQuery(layout_id_class + ' .media-grid-wrapper').append(response); } else if (jsmasonry.hasClass('blog-grid-box')) { jQuery(layout_id_class + ' .blog_template.blog-grid-box').append(response); } else { jQuery(layout_id_class + ' div.bdp-load-more-pre').append(response); } jQuery(layout_id_class + ' .bdp-load-more-btn').removeClass('loading'); jQuery(layout_id_class + ' .loading-image').fadeOut(); jQuery(layout_id_class + ' .bdp-load-more-btn').fadeIn(); jQuery(layout_id_class + ' #bdp-load-more-hidden #paged').val(paged); jQuery(layout_id_class + ' .edd-no-js').hide(); if (paged == max_num_pages) jQuery(layout_id_class + ' .bdp-load-more-btn').fadeOut(); } }); } return false; } function bd_get_boxy_clean_height() { var divs = jQuery(".boxy-clean li.blog_wrap").not('.first_post'); if (jQuery(window).width() > 980) { var column = 4; if (divs.hasClass('three_column')) { column = 3; } else if (divs.hasClass('two_column')) { column = 2; } else if (divs.hasClass('one_column')) { column = 1; } } else if (jQuery(window).width() <= 980 && jQuery(window).width() > 720) { var column = 4; if (divs.hasClass('three_column_ipad')) { column = 3; } else if (divs.hasClass('two_column_ipad')) { column = 2; } else if (divs.hasClass('one_column_ipad')) { column = 1; } } else if (jQuery(window).width() <= 720 && jQuery(window).width() > 480) { var column = 4; if (divs.hasClass('three_column_tablet')) { column = 3; } else if (divs.hasClass('two_column_tablet')) { column = 2; } else if (divs.hasClass('one_column_tablet')) { column = 1; } } else if (jQuery(window).width() <= 480) { var column = 4; if (divs.hasClass('one_column_mobile')) { column = 3; } else if (divs.hasClass('two_column_mobile')) { column = 2; } else if (divs.hasClass('three_column_mobile')) { column = 1; } } jQuery(".boxy-clean li.blog_wrap").removeAttr('style'); for (var i = 0; i < divs.length; i += column) { var heights = jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).map(function () { return jQuery(this).height(); }).get(); var maxHeight = Math.max.apply(null, heights); if (screen.width > 640) { jQuery(".boxy-clean li.blog_wrap").not('.first_post').slice(i, i + column).css('height', maxHeight + 30); } } } function wpspw_pro_post_ticker_init() { jQuery(".blog-ticker-wrapper").each(function() { var bdsc = { "is_rtl": "0", "no_post_msg": "Sorry, No more post to display." }; var s = jQuery(this).attr("id"), t = JSON.parse(jQuery(this).attr("data-conf")); void 0 !== s && "" != s && "undefined" != t && ("italic" == t.font_style && jQuery(this).addClass("blog-ticker-italic"), "bold" == t.font_style && jQuery(this).addClass("bd-bold"), "bold-italic" == t.font_style && jQuery(this).addClass("bd-bold blog-ticker-italic"), jQuery("#" + s).breakingNews({ direction: 1 == bdsc.is_rtl ? "rtl" : "ltr", effect: t.ticker_effect, delayTimer: parseInt(t.speed), scrollSpeed: parseInt(t.scroll_speed), borderWidth: "false" == t.border ? "0px" : "2px", radius: "2px", play: "false" != t.autoplay, stopOnHover: !0 })) }) } jQuery(document).ready(function() { var icon_element = jQuery('.slides.design2 .mauthor .author'); var date_element = jQuery('.slides.design2 .post-date .mdate'); icon_element.each(function() { if(jQuery(this).find('i')) { jQuery(this).find('i').remove(); jQuery(this).prepend('By'); } }); date_element.each(function() { if(jQuery(this).find('i')) { jQuery(this).find('i').remove(); jQuery(this).prepend('/'); } }) }); jQuery(document).ready(function() { var element = jQuery('.blog_template.blog-carousel'); if(element) { element.parent().addClass('blog-carousel'); } var element_grid_box = jQuery('.blog_template.blog-grid-box'); var parent_element = jQuery('.bdp_wrapper'); if(element_grid_box.length > 0) { parent_element.addClass('blog-grid-box'); } });;