1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2"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)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x 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 o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","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__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?: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 R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(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=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["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")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[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===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); 3; 4( function( $ ) { 5 6 $( document ).ready(function( $ ) { 7 8 $(".pfc-posts-main .pfc-post.layout-one").each(function(){ 9
10 var thumbHeight = $(this).find('.news-thumb img').height(); 11 12 var infoHeight = $(this).find('.news-text-wrap').height(); 13 14 if( thumbHeight != null && infoHeight != null && thumbHeight > infoHeight ){ 15 16 $(this).find('.news-text-wrap').css( 'min-height', thumbHeight+'px'); 17 18 } 19 20 }); 21 22 }); 23 24} )( jQuery );; 25var CLI_ACCEPT_COOKIE_NAME = (typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy'); 26var CLI_PREFERENCE_COOKIE = (typeof CLI_PREFERENCE_COOKIE !== 'undefined' ? CLI_PREFERENCE_COOKIE : 'CookieLawInfoConsent'); 27var CLI_ACCEPT_COOKIE_EXPIRE = (typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365); 28var CLI_COOKIEBAR_AS_POPUP = (typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false); 29var CLI_Cookie = { 30 set: function (name, value, days) { 31 var secure = ""; 32 if (true === Boolean(Cli_Data.secure_cookies)) { 33 secure = ";secure"; 34 } 35 if (days) { 36 var date = new Date(); 37 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 38 var expires = "; expires=" + date.toGMTString(); 39 } else { 40 var expires = ""; 41 } 42 document.cookie = name + "=" + value + secure + expires + "; path=/"; 43 if (days < 1) { 44 let host_name = window.location.hostname; 45 document.cookie = name + "=" + value + expires + "; path=/; domain=." + host_name + ";"; 46 if (host_name.indexOf("www") != 1) { 47 var host_name_withoutwww = host_name.replace('www', ''); 48 document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";"; 49 } 50 host_name = host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1)); 51 document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";"; 52 } 53 }, 54 read: function (name) { 55 var nameEQ = name + "="; 56 var ca = document.cookie.split(';'); 57 for (var i = 0; i < ca.length; i++) { 58 var c = ca[i]; 59 while (c.charAt(0) == ' ') { 60 c = c.substring(1, c.length); 61 } 62 if (c.indexOf(nameEQ) === 0) { 63 return c.substring(nameEQ.length, c.length); 64 } 65 } 66 return null; 67 }, 68 erase: function (name) { 69 this.set(name, "", -10); 70 }, 71 exists: function (name) { 72 return (this.read(name) !== null); 73 }, 74 getallcookies: function () { 75 var pairs = document.cookie.split(";"); 76 var cookieslist = {}; 77 for (var i = 0; i < pairs.length; i++) { 78 var pair = pairs[i].split("="); 79 cookieslist[(pair[0] + '').trim()] = unescape(pair[1]); 80 } 81 return cookieslist; 82 } 83} 84var CLI = 85{ 86 bar_config: {}, 87 showagain_config: {}, 88 allowedCategories: [], 89 js_blocking_enabled: false, 90 set: function (args) { 91 if (typeof JSON.parse !== "function") { 92 console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); 93 return; 94 } 95 if (typeof args.settings !== 'object') { 96 this.settings = JSON.parse(args.settings); 97 } else { 98 this.settings = args.settings; 99 } 100 this.js_blocking_enabled = Boolean(Cli_Data.js_blocking); 101 this.settings = args.settings; 102 this.bar_elm = jQuery(this.settings.notify_div_id); 103 this.showagain_elm = jQuery(this.settings.showagain_div_id); 104 this.settingsModal = jQuery('#cliSettingsPopup'); 105 106 /* buttons */ 107 this.main_button = jQuery('.cli-plugin-main-button'); 108 this.main_link = jQuery('.cli-plugin-main-link'); 109 this.reject_link = jQuery('.cookie_action_close_header_reject'); 110 this.delete_link = jQuery(".cookielawinfo-cookie-delete"); 111 this.settings_button = jQuery('.cli_settings_button'); 112 this.accept_all_button = jQuery('.wt-cli-accept-all-btn'); 113 if (this.settings.cookie_bar_as == 'popup') { 114 CLI_COOKIEBAR_AS_POPUP = true; 115 } 116 this.mayBeSetPreferenceCookie(); 117 this.addStyleAttribute(); 118 this.configBar(); 119 this.toggleBar(); 120 this.attachDelete(); 121 this.attachEvents(); 122 this.configButtons(); 123 this.reviewConsent(); 124 var cli_hidebar_on_readmore = this.hideBarInReadMoreLink(); 125 if (Boolean(this.settings.scroll_close) === true && cli_hidebar_on_readmore === false) { 126 window.addEventListener("scroll", CLI.closeOnScroll, false); 127 } 128 129 }, 130 hideBarInReadMoreLink: function () { 131 if (Boolean(CLI.settings.button_2_hidebar) === true && this.main_link.length > 0 && this.main_link.hasClass('cli-minimize-bar')) { 132 this.hideHeader(); 133 cliBlocker.cookieBar(false); 134 this.showagain_elm.slideDown(this.settings.animate_speed_show); 135 return true; 136 } 137 return false;
138 }, 139 attachEvents: function () { 140 jQuery(document).on( 141 'click', 142 '.wt-cli-privacy-btn', 143 function (e) { 144 e.preventDefault(); 145 CLI.accept_close(); 146 CLI.settingsPopUpClose(); 147 } 148 ); 149 150 jQuery('.wt-cli-accept-btn').on( 151 "click", 152 function (e) { 153 e.preventDefault(); 154 CLI.acceptRejectCookies(jQuery(this)); 155 }); 156 jQuery('.wt-cli-accept-all-btn').on( 157 "click", 158 function (e) { 159 e.preventDefault(); 160 CLI.acceptRejectCookies(jQuery(this), 'accept'); 161 }); 162 jQuery('.wt-cli-reject-btn').on( 163 "click", 164 function (e) { 165 e.preventDefault(); 166 CLI.acceptRejectCookies(jQuery(this), 'reject'); 167 }); 168 this.settingsPopUp(); 169 this.settingsTabbedAccordion(); 170 this.toggleUserPreferenceCheckBox(); 171 this.hideCookieBarOnClose(); 172 this.cookieLawInfoRunCallBacks(); 173 174 }, 175 acceptRejectCookies(element, action = 'custom') { 176 var open_link = element[0].hasAttribute("href") && element.attr("href") != '#' ? true : false; 177 var new_window = false; 178 if (action == 'accept') { 179 this.enableAllCookies(); 180 this.accept_close(); 181 new_window = CLI.settings.button_7_new_win ? true : false; 182 183 } else if (action == 'reject') { 184 this.disableAllCookies(); 185 this.reject_close(); 186 new_window = Boolean(this.settings.button_3_new_win) ? true : false; 187 } else { 188 this.accept_close(); 189 new_window = Boolean(this.settings.button_1_new_win) ? true : false; 190 } 191 if (open_link) { 192 if (new_window) { 193 window.open(element.attr("href"), '_blank'); 194 } else { 195 window.location.href = element.attr("href"); 196 } 197 } 198 }, 199 toggleUserPreferenceCheckBox: function () { 200 201 jQuery('.cli-user-preference-checkbox').each( 202 function () { 203 204 const categoryCookie = 'cookielawinfo-' + jQuery(this).attr('data-id'); 205 const categoryCookieValue = CLI_Cookie.read(categoryCookie); 206 if (categoryCookieValue == null) { 207 if (jQuery(this).is(':checked')) { 208 CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 209 } else { 210 CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 211 } 212 } else { 213 if (categoryCookieValue == "yes") { 214 jQuery(this).prop("checked", true); 215 } else { 216 jQuery(this).prop("checked", false); 217 } 218 219 } 220 221 } 222 ); 223 jQuery('.cli-user-preference-checkbox').on( 224 "click", 225 function (e) { 226 var dataID = jQuery(this).attr('data-id'); 227 var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']'); 228 if (jQuery(this).is(':checked')) { 229 CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 230 currentToggleElm.prop('checked', true); 231 } else { 232 CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 233 currentToggleElm.prop('checked', false); 234 } 235 CLI.checkCategories(); 236 CLI.generateConsent(); 237 } 238 ); 239 240 }, 241 settingsPopUp: function () { 242 jQuery(document).on( 243 'click', 244 '.cli_settings_button', 245 function (e) { 246 e.preventDefault(); 247 CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 }); 248 CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup"); 249 jQuery('body').addClass("cli-modal-open"); 250 jQuery(".cli-settings-overlay").addClass("cli-show"); 251 jQuery("#cookie-law-info-bar").css({ 'opacity': .1 }); 252 if (!jQuery('.cli-settings-mobile').is(':visible')) { 253 CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click"); 254 } 255 } 256 ); 257 jQuery('#cliModalClose').on( 258 "click", 259 function (e) { 260 CLI.settingsPopUpClose(); 261 } 262 ); 263 CLI.settingsModal.on( 264 "click", 265 function (e) { 266 if (!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) { 267 CLI.settingsPopUpClose(); 268 } 269 } 270 ); 271 jQuery('.cli_enable_all_btn').on( 272 "click", 273 function (e) { 274 var cli_toggle_btn = jQuery(this); 275 var enable_text = cli_toggle_btn.attr('data-enable-text'); 276 var disable_text = cli_toggle_btn.attr('data-disable-text'); 277 if (cli_toggle_btn.hasClass('cli-enabled')) { 278 CLI.disableAllCookies(); 279 cli_toggle_btn.html(enable_text); 280 } else { 281 CLI.enableAllCookies(); 282 cli_toggle_btn.html(disable_text); 283 284 } 285 jQuery(this).toggleClass('cli-enabled'); 286 } 287 ); 288 289 this.privacyReadmore(); 290 }, 291 settingsTabbedAccordion: function () { 292 jQuery(".cli-tab-header").on( 293 "click", 294 function (e) { 295 if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) { 296 if (jQuery(this).hasClass("cli-tab-active")) { 297 jQuery(this).removeClass("cli-tab-active"); 298 jQuery(this) 299 .siblings(".cli-tab-content") 300 .slideUp(200); 301 302 } else { 303 jQuery(".cli-tab-header").removeClass("cli-tab-active"); 304 jQuery(this).addClass("cli-tab-active"); 305 jQuery(".cli-tab-content").slideUp(200); 306 jQuery(this) 307 .siblings(".cli-tab-content") 308 .slideDown(200); 309 } 310 } 311 } 312 ); 313 }, 314 settingsPopUpClose: function () { 315 this.settingsModal.removeClass('cli-show'); 316 this.settingsModal.addClass('cli-out'); 317 jQuery('body').removeClass("cli-modal-open"); 318 jQuery(".cli-settings-overlay").removeClass("cli-show"); 319 jQuery("#cookie-law-info-bar").css({ 'opacity': 1 }); 320 }, 321 privacyReadmore: function () { 322 var el = jQuery('.cli-privacy-content .cli-privacy-content-text'); 323 if (el.length > 0) { 324 var clone = el.clone(), 325 originalHtml = clone.html(), 326 originalHeight = el.outerHeight(), 327 Trunc = { 328 addReadmore: function (textBlock) { 329 if (textBlock.html().length > 250) { 330 jQuery('.cli-privacy-readmore').show(); 331 } else { 332 jQuery('.cli-privacy-readmore').hide(); 333 } 334 }, 335 truncateText: function (textBlock) { 336 var strippedText = jQuery('<div />').html(textBlock.html()); 337 strippedText.find('table').remove(); 338 textBlock.html(strippedText.html()); 339 const currentText = textBlock.text(); 340 if (currentText.trim().length > 250) { 341 var newStr = currentText.substring(0, 250); 342 textBlock.empty().html(newStr).append('...'); 343 } 344 }, 345 replaceText: function (textBlock, original) { 346 return textBlock.html(original); 347 } 348 349 }; 350 Trunc.addReadmore(el); 351 Trunc.truncateText(el); 352 jQuery('a.cli-privacy-readmore').on( 353 "click", 354 function (e) { 355 e.preventDefault(); 356 if (jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) { 357 Trunc.truncateText(el); 358 jQuery('.cli-privacy-overview').removeClass('cli-collapsed'); 359 el.css('height', '100%'); 360 } else { 361 jQuery('.cli-privacy-overview').addClass('cli-collapsed'); 362 Trunc.replaceText(el, originalHtml); 363 } 364 365 } 366 ); 367 } 368 369 }, 370 attachDelete: function () { 371 this.delete_link.on( 372 "click", 373 function (e) { 374 CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); 375 for (var k in Cli_Data.nn_cookie_ids) { 376 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 377 } 378 CLI.generateConsent(); 379 return false;
380 } 381 ); 382 383 }, 384 configButtons: function () { 385 /*[cookie_button] */ 386 this.main_button.css('color', this.settings.button_1_link_colour); 387 if (Boolean(this.settings.button_1_as_button)) { 388 this.main_button.css('background-color', this.settings.button_1_button_colour); 389 390 this.main_button.on( 391 'mouseenter', 392 function () { 393 jQuery(this).css('background-color', CLI.settings.button_1_button_hover); 394 } 395 ) 396 .on( 397 'mouseleave', 398 function () { 399 jQuery(this).css('background-color', CLI.settings.button_1_button_colour); 400 } 401 ); 402 } 403 404 /* [cookie_link] */ 405 this.main_link.css('color', this.settings.button_2_link_colour); 406 if (Boolean(this.settings.button_2_as_button)) { 407 this.main_link.css('background-color', this.settings.button_2_button_colour); 408 409 this.main_link.on( 410 'mouseenter', 411 function () { 412 jQuery(this).css('background-color', CLI.settings.button_2_button_hover); 413 } 414 ) 415 .on( 416 'mouseleave', 417 function () { 418 jQuery(this).css('background-color', CLI.settings.button_2_button_colour); 419 } 420 ); 421 422 } 423 /* [cookie_reject] */ 424 this.reject_link.css('color', this.settings.button_3_link_colour); 425 if (Boolean(this.settings.button_3_as_button)) { 426 427 this.reject_link.css('background-color', this.settings.button_3_button_colour); 428 this.reject_link.on( 429 'mouseenter', 430 function () { 431 jQuery(this).css('background-color', CLI.settings.button_3_button_hover); 432 } 433 ) 434 .on( 435 'mouseleave', 436 function () { 437 jQuery(this).css('background-color', CLI.settings.button_3_button_colour); 438 } 439 ); 440 } 441 /* [cookie_settings] */ 442 this.settings_button.css('color', this.settings.button_4_link_colour); 443 if (Boolean(this.settings.button_4_as_button)) { 444 this.settings_button.css('background-color', this.settings.button_4_button_colour); 445 this.settings_button.on( 446 'mouseenter', 447 function () { 448 jQuery(this).css('background-color', CLI.settings.button_4_button_hover); 449 } 450 ) 451 .on( 452 'mouseleave', 453 function () { 454 jQuery(this).css('background-color', CLI.settings.button_4_button_colour); 455 } 456 ); 457 } 458 /* [cookie_accept_all] */ 459 this.accept_all_button.css('color', this.settings.button_7_link_colour); 460 if (this.settings.button_7_as_button) { 461 this.accept_all_button.css('background-color', this.settings.button_7_button_colour); 462 this.accept_all_button.on( 463 'mouseenter', 464 function () { 465 jQuery(this).css('background-color', CLI.settings.button_7_button_hover); 466 } 467 ) 468 .on( 469 'mouseleave', 470 function () { 471 jQuery(this).css('background-color', CLI.settings.button_7_button_colour); 472 } 473 ); 474 } 475 }, 476 toggleBar: function () { 477 if (CLI_COOKIEBAR_AS_POPUP) { 478 this.barAsPopUp(1); 479 } 480 if (CLI.settings.cookie_bar_as == 'widget') { 481 this.barAsWidget(1); 482 } 483 if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { 484 this.displayHeader(); 485 } else { 486 this.hideHeader(); 487 } 488 if (Boolean(this.settings.show_once_yn)) { 489 setTimeout( 490 function () { 491 CLI.close_header(); 492 }, 493 CLI.settings.show_once 494 ); 495 } 496 if (CLI.js_blocking_enabled === false) { 497 if (Boolean(Cli_Data.ccpaEnabled) === true) { 498 if (Cli_Data.ccpaType === 'ccpa' && Boolean(Cli_Data.ccpaBarEnabled) === false) { 499 cliBlocker.cookieBar(false); 500 } 501 } else { 502 jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); 503 } 504 } 505 506 this.showagain_elm.on( 507 "click", 508 function (e) { 509 e.preventDefault(); 510 CLI.showagain_elm.slideUp( 511 CLI.settings.animate_speed_hide, 512 function () { 513 CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); 514 if (CLI_COOKIEBAR_AS_POPUP) { 515 CLI.showPopupOverlay(); 516 } 517 } 518 ); 519 } 520 ); 521 }, 522 configShowAgain: function () { 523 this.showagain_config = { 524 'background-color': this.settings.background, 525 'color': this.l1hs(this.settings.text), 526 'position': 'fixed', 527 'font-family': this.settings.font_family 528 }; 529 if (Boolean(this.settings.border_on)) { 530 var border_to_hide = 'border-' + this.settings.notify_position_vertical; 531 this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border); 532 this.showagain_config[border_to_hide] = 'none'; 533 } 534 var cli_win = jQuery(window); 535 var cli_winw = cli_win.width(); 536 var showagain_x_pos = this.settings.showagain_x_position; 537 if (cli_winw < 300) { 538 showagain_x_pos = 10; 539 this.showagain_config.width = cli_winw - 20; 540 } else { 541 this.showagain_config.width = 'auto'; 542 } 543 var cli_defw = cli_winw > 400 ? 500 : cli_winw - 20; 544 if (CLI_COOKIEBAR_AS_POPUP) { /* cookie bar as popup */ 545 var sa_pos = this.settings.popup_showagain_position; 546 var sa_pos_arr = sa_pos.split('-'); 547 if (sa_pos_arr[1] == 'left') { 548 this.showagain_config.left = showagain_x_pos; 549 } else if (sa_pos_arr[1] == 'right') { 550 this.showagain_config.right = showagain_x_pos; 551 } 552 if (sa_pos_arr[0] == 'top') { 553 this.showagain_config.top = 0; 554 555 } else if (sa_pos_arr[0] == 'bottom') { 556 this.showagain_config.bottom = 0; 557 } 558 this.bar_config['position'] = 'fixed'; 559 560 } else if (this.settings.cookie_bar_as == 'widget') { 561 this.showagain_config.bottom = 0; 562 if (this.settings.widget_position == 'left') { 563 this.showagain_config.left = showagain_x_pos; 564 } else if (this.settings.widget_position == 'right') { 565 this.showagain_config.right = showagain_x_pos; 566 } 567 } else { 568 if (this.settings.notify_position_vertical == "top") { 569 this.showagain_config.top = '0'; 570 } else if (this.settings.notify_position_vertical == "bottom") { 571 this.bar_config['position'] = 'fixed'; 572 this.bar_config['bottom'] = '0'; 573 this.showagain_config.bottom = '0'; 574 } 575 if (this.settings.notify_position_horizontal == "left") { 576 this.showagain_config.left = showagain_x_pos; 577 } else if (this.settings.notify_position_horizontal == "right") { 578 this.showagain_config.right = showagain_x_pos; 579 } 580 } 581 this.showagain_elm.css(this.showagain_config); 582 }, 583 configBar: function () { 584 this.bar_config = { 585 'background-color': this.settings.background, 586 'color': this.settings.text, 587 'font-family': this.settings.font_family 588 }; 589 if (this.settings.notify_position_vertical == "top") { 590 this.bar_config['top'] = '0'; 591 if (Boolean(this.settings.header_fix) === true) { 592 this.bar_config['position'] = 'fixed'; 593 } 594 } else { 595 this.bar_config['bottom'] = '0'; 596 } 597 this.configShowAgain(); 598 this.bar_elm.css(this.bar_config).hide(); 599 }, 600 l1hs: function (str) { 601 if (str.charAt(0) == "#") { 602 str = str.substring(1, str.length); 603 } else { 604 return "#" + str; 605 } 606 return this.l1hs(str); 607 }, 608 close_header: function () { 609 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 610 this.hideHeader(); 611 }, 612 accept_close: function () { 613 this.hidePopupOverlay(); 614 this.generateConsent(); 615 this.cookieLawInfoRunCallBacks(); 616 617 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 618 if (Boolean(this.settings.notify_animate_hide)) { 619 if (CLI.js_blocking_enabled === true) { 620 this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); 621 } else { 622 this.bar_elm.slideUp(this.settings.animate_speed_hide); 623 } 624 625 } else { 626 if (CLI.js_blocking_enabled === true) { 627 this.bar_elm.hide(0, cliBlocker.runScripts); 628 629 } else { 630 this.bar_elm.hide(); 631 } 632 } 633 if (Boolean(this.settings.showagain_tab)) { 634 this.showagain_elm.slideDown(this.settings.animate_speed_show); 635 } 636 if (Boolean(this.settings.accept_close_reload) === true) { 637 this.reload_current_page(); 638 } 639 return false;
640 }, 641 reject_close: function () { 642 this.hidePopupOverlay(); 643 this.generateConsent(); 644 this.cookieLawInfoRunCallBacks(); 645 for (var k in Cli_Data.nn_cookie_ids) { 646 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 647 } 648 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 649 650 if (Boolean(this.settings.notify_animate_hide)) { 651 if (CLI.js_blocking_enabled === true) { 652 653 this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); 654 655 } else { 656 657 this.bar_elm.slideUp(this.settings.animate_speed_hide); 658 } 659 660 } else { 661 if (CLI.js_blocking_enabled === true) { 662 663 this.bar_elm.hide(cliBlocker.runScripts); 664 665 } else { 666 667 this.bar_elm.hide(); 668 669 } 670 671 } 672 if (Boolean(this.settings.showagain_tab)) { 673 this.showagain_elm.slideDown(this.settings.animate_speed_show); 674 } 675 if (Boolean(this.settings.reject_close_reload) === true) { 676 this.reload_current_page(); 677 } 678 return false; 679 }, 680 reload_current_page: function () { 681 682 window.location.reload(true); 683 }, 684 closeOnScroll: function () { 685 if (window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) { 686 CLI.accept_close(); 687 if (Boolean(CLI.settings.scroll_close_reload) === true) { 688 window.location.reload(); 689 } 690 window.removeEventListener("scroll", CLI.closeOnScroll, false); 691 } 692 }, 693 displayHeader: function () { 694 if (Boolean(this.settings.notify_animate_show)) { 695 this.bar_elm.slideDown(this.settings.animate_speed_show); 696 } else { 697 this.bar_elm.show(); 698 } 699 this.showagain_elm.hide(); 700 if (CLI_COOKIEBAR_AS_POPUP) { 701 this.showPopupOverlay(); 702 } 703 }, 704 hideHeader: function () { 705 if (Boolean(this.settings.showagain_tab)) { 706 if (Boolean(this.settings.notify_animate_show)) { 707 this.showagain_elm.slideDown(this.settings.animate_speed_show); 708 } else { 709 this.showagain_elm.show(); 710 } 711 } else { 712 this.showagain_elm.hide(); 713 } 714 this.bar_elm.slideUp(this.settings.animate_speed_show); 715 this.hidePopupOverlay(); 716 }, 717 hidePopupOverlay: function () { 718 jQuery('body').removeClass("cli-barmodal-open"); 719 jQuery(".cli-popupbar-overlay").removeClass("cli-show"); 720 }, 721 showPopupOverlay: function () { 722 if (this.bar_elm.length) { 723 if (Boolean(this.settings.popup_overlay)) { 724 jQuery('body').addClass("cli-barmodal-open"); 725 jQuery(".cli-popupbar-overlay").addClass("cli-show"); 726 } 727 } 728 729 }, 730 barAsWidget: function (a) { 731 var cli_elm = this.bar_elm; 732 cli_elm.attr('data-cli-type', 'widget'); 733 var cli_win = jQuery(window); 734 var cli_winh = cli_win.height() - 40; 735 var cli_winw = cli_win.width(); 736 var cli_defw = cli_winw > 400 ? 300 : cli_winw - 30; 737 cli_elm.css( 738 { 739 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box' 740 } 741 ); 742 if (this.checkifStyleAttributeExist() === false) { 743 cli_elm.css({ 'padding': '25px 15px' }); 744 } 745 if (this.settings.widget_position == 'left') { 746 cli_elm.css( 747 { 748 'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto' 749 } 750 ); 751 } else { 752 cli_elm.css( 753 { 754 'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto' 755 } 756 ); 757 } 758 if (a) { 759 this.setResize(); 760 } 761 }, 762 barAsPopUp: function (a) { 763 if (typeof cookie_law_info_bar_as_popup === 'function') { 764 return false; 765 } 766 var cli_elm = this.bar_elm; 767 cli_elm.attr('data-cli-type', 'popup'); 768 var cli_win = jQuery(window); 769 var cli_winh = cli_win.height() - 40; 770 var cli_winw = cli_win.width(); 771 var cli_defw = cli_winw > 700 ? 500 : cli_winw - 20; 772 773 cli_elm.css( 774 { 775 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto' 776 } 777 ).addClass('cli-bar-popup cli-modal-content'); 778 if (this.checkifStyleAttributeExist() === false) { 779 cli_elm.css({ 'padding': '25px 15px' }); 780 } 781 const cli_h = cli_elm.height(); 782 cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 }); 783 setTimeout( 784 function () { 785 cli_elm.css( 786 { 787 'bottom': '' 788 } 789 ); 790 }, 791 100 792 ); 793 if (a) { 794 this.setResize(); 795 } 796 }, 797 setResize: function () { 798 var resizeTmr = null; 799 jQuery(window).resize( 800 function () { 801 clearTimeout(resizeTmr); 802 resizeTmr = setTimeout( 803 function () { 804 if (CLI_COOKIEBAR_AS_POPUP) { 805 CLI.barAsPopUp(); 806 } 807 if (CLI.settings.cookie_bar_as == 'widget') { 808 CLI.barAsWidget(); 809 } 810 CLI.configShowAgain(); 811 }, 812 500 813 ); 814 } 815 ); 816 }, 817 enableAllCookies: function () { 818 819 jQuery('.cli-user-preference-checkbox').each( 820 function () { 821 var cli_chkbox_elm = jQuery(this); 822 var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 823 if (cli_chkbox_data_id != 'checkbox-necessary') { 824 cli_chkbox_elm.prop('checked', true); 825 CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 826 } 827 } 828 ); 829 }, 830 disableAllCookies: function () { 831 jQuery('.cli-user-preference-checkbox').each( 832 function () { 833 834 var cli_chkbox_elm = jQuery(this); 835 var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 836 const cliCategorySlug = cli_chkbox_data_id.replace('checkbox-', ''); 837 if (Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) { 838 cli_chkbox_elm.prop('checked', false); 839 CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 840 } 841 } 842 ); 843 }, 844 hideCookieBarOnClose: function () { 845 jQuery(document).on( 846 'click',
847 '.cli_cookie_close_button', 848 function (e) { 849 e.preventDefault(); 850 var elm = jQuery(this); 851 if (Cli_Data.ccpaType === 'ccpa') { 852 CLI.enableAllCookies(); 853 } 854 CLI.accept_close(); 855 } 856 ); 857 }, 858 checkCategories: function () { 859 var cliAllowedCategories = []; 860 var cli_categories = {}; 861 jQuery('.cli-user-preference-checkbox').each( 862 function () { 863 var status = false; 864 const cli_chkbox_elm = jQuery(this); 865 let cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 866 cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); 867 const cli_chkbox_data_id_trimmed = cli_chkbox_data_id.replace('-', '_') 868 if (jQuery(cli_chkbox_elm).is(':checked')) { 869 status = true; 870 cliAllowedCategories.push(cli_chkbox_data_id); 871 } 872 873 cli_categories[cli_chkbox_data_id_trimmed] = status; 874 } 875 ); 876 CLI.allowedCategories = cliAllowedCategories; 877 }, 878 cookieLawInfoRunCallBacks: function () { 879 this.checkCategories(); 880 if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes') { 881 if ("function" == typeof CookieLawInfo_Accept_Callback) { 882 CookieLawInfo_Accept_Callback(); 883 } 884 } 885 }, 886 generateConsent: function () { 887 var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); 888 let cliConsent = {}; 889 if (preferenceCookie !== null) { 890 cliConsent = window.atob(preferenceCookie); 891 cliConsent = JSON.parse(cliConsent); 892 } 893 cliConsent.ver = Cli_Data.consentVersion; 894 jQuery('.cli-user-preference-checkbox').each( 895 function () { 896 let categoryVal = ''; 897 let cli_chkbox_data_id = jQuery(this).attr('data-id'); 898 cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); 899 if (jQuery(this).is(':checked')) { 900 categoryVal = true; 901 } else { 902 categoryVal = false;
903 } 904 cliConsent[cli_chkbox_data_id] = categoryVal; 905 } 906 ); 907 cliConsent = JSON.stringify(cliConsent); 908 cliConsent = window.btoa(cliConsent); 909 CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE); 910 }, 911 addStyleAttribute: function () { 912 var bar = this.bar_elm; 913 var styleClass = ''; 914 if (jQuery(bar).find('.cli-bar-container').length > 0) { 915 styleClass = jQuery('.cli-bar-container').attr('class'); 916 styleClass = styleClass.replace('cli-bar-container', ''); 917 styleClass = styleClass.trim(); 918 jQuery(bar).attr('data-cli-style', styleClass); 919 } 920 }, 921 getParameterByName: function (name, url) { 922 if (!url) { 923 url = window.location.href; 924 } 925 name = name.replace(/[\[\]]/g, '\\$&'); 926 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 927 results = regex.exec(url); 928 if (!results) { 929 return null; 930 } 931 if (!results[2]) { 932 return ''; 933 } 934 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 935 }, 936 CookieLawInfo_Callback: function (enableBar, enableBlocking) { 937 enableBar = typeof enableBar !== 'undefined' ? enableBar : true; 938 enableBlocking = typeof enableBlocking !== 'undefined' ? enableBlocking : true; 939 if (CLI.js_blocking_enabled === true && Boolean(Cli_Data.custom_integration) === true) { 940 cliBlocker.cookieBar(enableBar); 941 cliBlocker.runScripts(enableBlocking); 942 } 943 }, 944 checkifStyleAttributeExist: function () { 945 var exist = false; 946 var attr = this.bar_elm.attr('data-cli-style'); 947 if (typeof attr !== typeof undefined && attr !== false) { 948 exist = true; 949 } 950 return exist; 951 }, 952 reviewConsent: function () { 953 jQuery(document).on( 954 'click', 955 '.cli_manage_current_consent,.wt-cli-manage-consent-link', 956 function () { 957 CLI.displayHeader(); 958 } 959 ); 960 }, 961 mayBeSetPreferenceCookie: function () { 962 if (CLI.getParameterByName('cli_bypass') === "1") { 963 CLI.generateConsent(); 964 } 965 } 966} 967var cliBlocker = 968{ 969 blockingStatus: true, 970 scriptsLoaded: false, 971 ccpaEnabled: false, 972 ccpaRegionBased: false, 973 ccpaApplicable: false, 974 ccpaBarEnabled: false, 975 cliShowBar: true, 976 isBypassEnabled: CLI.getParameterByName('cli_bypass'), 977 checkPluginStatus: function (callbackA, callbackB) { 978 this.ccpaEnabled = Boolean(Cli_Data.ccpaEnabled); 979 this.ccpaRegionBased = Boolean(Cli_Data.ccpaRegionBased); 980 this.ccpaBarEnabled = Boolean(Cli_Data.ccpaBarEnabled); 981 982 if (Boolean(Cli_Data.custom_integration) === true) { 983 callbackA(false); 984 } else { 985 if (this.ccpaEnabled === true) { 986 this.ccpaApplicable = true; 987 if (Cli_Data.ccpaType === 'ccpa') { 988 if (this.ccpaBarEnabled !== true) { 989 this.cliShowBar = false; 990 this.blockingStatus = false; 991 } 992 } 993 } else { 994 jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); 995 } 996 if (cliBlocker.isBypassEnabled === "1") { 997 cliBlocker.blockingStatus = false; 998 } 999 callbackA(this.cliShowBar); 1000 callbackB(this.blockingStatus); 1001 } 1002 1003 }, 1004 cookieBar: function (showbar) { 1005 showbar = typeof showbar !== 'undefined' ? showbar : true; 1006 cliBlocker.cliShowBar = showbar; 1007 if (cliBlocker.cliShowBar === false) { 1008 CLI.bar_elm.hide(); 1009 CLI.showagain_elm.hide(); 1010 CLI.settingsModal.removeClass('cli-blowup cli-out'); 1011 CLI.hidePopupOverlay(); 1012 jQuery(".cli-settings-overlay").removeClass("cli-show"); 1013 } else { 1014 if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { 1015 CLI.displayHeader(); 1016 } else { 1017 CLI.hideHeader(); 1018 } 1019 } 1020 }, 1021 removeCookieByCategory: function () { 1022 1023 if (cliBlocker.blockingStatus === true) { 1024 if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) { 1025 var non_necessary_cookies = Cli_Data.non_necessary_cookies; 1026 for (var key in non_necessary_cookies) { 1027 const currentCategory = key; 1028 if (CLI.allowedCategories.indexOf(currentCategory) === -1) {
1029 var nonNecessaryCookies = non_necessary_cookies[currentCategory]; 1030 for (var i = 0; i < nonNecessaryCookies.length; i++) { 1031 if (CLI_Cookie.read(nonNecessaryCookies[i]) !== null) { 1032 CLI_Cookie.erase(nonNecessaryCookies[i]); 1033 } 1034 1035 } 1036 } 1037 } 1038 } 1039 } 1040 }, 1041 runScripts: function (blocking) { 1042 blocking = typeof blocking !== 'undefined' ? blocking : true; 1043 cliBlocker.blockingStatus = blocking; 1044 var genericFuncs = 1045 { 1046 1047 renderByElement: function (callback) { 1048 cliScriptFuncs.renderScripts(); 1049 callback(); 1050 cliBlocker.scriptsLoaded = true; 1051 }, 1052 1053 }; 1054 var cliScriptFuncs = 1055 { 1056 // trigger DOMContentLoaded 1057 scriptsDone: function () { 1058 if (typeof Cli_Data.triggerDomRefresh !== 'undefined') { 1059 if (Boolean(Cli_Data.triggerDomRefresh) === true) { 1060 var DOMContentLoadedEvent = document.createEvent('Event') 1061 DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true) 1062 window.document.dispatchEvent(DOMContentLoadedEvent); 1063 } 1064 } 1065 }, 1066 seq: function (arr, callback, index) { 1067 // first call, without an index 1068 if (typeof index === 'undefined') { 1069 index = 0 1070 } 1071 1072 arr[index]( 1073 function () { 1074 index++ 1075 if (index === arr.length) { 1076 callback() 1077 } else { 1078 cliScriptFuncs.seq(arr, callback, index) 1079 } 1080 } 1081 ) 1082 }, 1083 /* script runner */ 1084 insertScript: function ($script, callback) { 1085 var s = ''; 1086 var scriptType = $script.getAttribute('data-cli-script-type'); 1087 var elementPosition = $script.getAttribute('data-cli-element-position'); 1088 var isBlock = $script.getAttribute('data-cli-block'); 1089 var s = document.createElement('script'); 1090 var ccpaOptedOut = cliBlocker.ccpaOptedOut(); 1091 s.type = 'text/plain'; 1092 if ($script.async) { 1093 s.async = $script.async; 1094 } 1095 if ($script.defer) { 1096 s.defer = $script.defer; 1097 } 1098 if ($script.src) { 1099 s.onload = callback 1100 s.onerror = callback 1101 s.src = $script.src 1102 } else { 1103 s.textContent = $script.innerText 1104 } 1105 var attrs = jQuery($script).prop("attributes"); 1106 for (var ii = 0; ii < attrs.length; ++ii) { 1107 if (attrs[ii].nodeName !== 'id') { 1108 s.setAttribute(attrs[ii].nodeName, attrs[ii].value); 1109 } 1110 } 1111 if (cliBlocker.blockingStatus === true) { 1112 1113 if ((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes' && CLI.allowedCategories.indexOf(scriptType) !== -1)) { 1114 s.setAttribute('data-cli-consent', 'accepted'); 1115 s.type = 'text/javascript'; 1116 } 1117 if (cliBlocker.ccpaApplicable === true) { 1118 if (ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null) { 1119 s.type = 'text/plain'; 1120 } 1121 } 1122 } else { 1123 s.type = 'text/javascript'; 1124 } 1125 1126 if ($script.type != s.type) { 1127 if (elementPosition === 'head') { 1128 document.head.appendChild(s); 1129 } else { 1130 document.body.appendChild(s); 1131 } 1132 if (!$script.src) { 1133 callback() 1134 } 1135 $script.parentNode.removeChild($script); 1136 1137 } else { 1138 1139 callback(); 1140 } 1141 }, 1142 renderScripts: function () { 1143 var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]'); 1144 if ($scripts.length > 0) { 1145 var runList = [] 1146 var typeAttr 1147 Array.prototype.forEach.call( 1148 $scripts, 1149 function ($script) { 1150 // only run script tags without the type attribute 1151 // or with a javascript mime attribute value 1152 typeAttr = $script.getAttribute('type') 1153 runList.push( 1154 function (callback) { 1155 cliScriptFuncs.insertScript($script, callback) 1156 } 1157 ) 1158 } 1159 ) 1160 cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone); 1161 } 1162 } 1163 }; 1164 genericFuncs.renderByElement(cliBlocker.removeCookieByCategory); 1165 }, 1166 ccpaOptedOut: function () { 1167 var ccpaOptedOut = false; 1168 var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); 1169 if (preferenceCookie !== null) { 1170 let cliConsent = window.atob(preferenceCookie); 1171 cliConsent = JSON.parse(cliConsent); 1172 if (typeof cliConsent.ccpaOptout !== 'undefined') { 1173 ccpaOptedOut = cliConsent.ccpaOptout; 1174 } 1175 } 1176 return ccpaOptedOut; 1177 } 1178} 1179jQuery(document).ready( 1180 function () { 1181 if (typeof cli_cookiebar_settings != 'undefined') { 1182 CLI.set( 1183 { 1184 settings: cli_cookiebar_settings 1185 } 1186 ); 1187 if (CLI.js_blocking_enabled === true) { 1188 cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts); 1189 } 1190 } 1191 } 1192); 1193; 1194/* ========= INFORMATION ============================ 1195 - document: Side Menu - provide any extra content and functionality with the attention-grabbing side menu! 1196 - author: Wow-Company 1197 - profile: https://wow-estore.com/author/admin/?author_downloads=true 1198 - version: 1.0 1199 - email: [email protected] 1200==================================================== */ 1201jQuery(document).ready(function($) { var hsidemenu = $('.wp-side-menu-item').outerHeight(); var lsidemenu = $(".wp-side-menu-item").length; $('.wp-side-menu').css({"margin-top": '-'+(hsidemenu*lsidemenu)/2+'px'}); topsidemenu = 0; for(i=1;i<=lsidemenu;i++){ $( ".wp-side-menu-item:nth-child("+i+")" ).css( {"top": topsidemenu+'px'} ); topsidemenu = topsidemenu+hsidemenu*1+1; } });;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.