1jQuery(document).ready(function ($) { 2 var header = document.getElementById("main-navigation-bar"); 3 var masthead = document.getElementById("masthead"); 4 5 if (!header || !masthead) return; 6 7 var stickyHeight = header.offsetHeight; 8 var sticky = header.offsetTop + stickyHeight; 9 var isStickyActive = false; 10 11 function applyStickyHeader() { 12 if (window.pageYOffset > sticky) { 13 if (!isStickyActive) { 14 header.classList.add("aft-sticky-navigation"); 15 masthead.style.paddingBottom = stickyHeight + "px"; 16 isStickyActive = true; 17 } 18 } else { 19 if (isStickyActive) { 20 header.classList.remove("aft-sticky-navigation"); 21 masthead.style.paddingBottom = "0px"; 22 isStickyActive = false; 23 } 24 } 25 } 26 27 $(window).on('scroll', applyStickyHeader); 28 applyStickyHeader(); // Run on load 29}); 30; 31/*! 32 * jQuery Cookie Plugin v1.4.1 33 * https://github.com/carhartl/jquery-cookie 34 * 35 * Copyright 2006, 2014 Klaus Hartl 36 * Released under the MIT license 37 */ 38(function (factory) { 39 if (typeof define === 'function' && define.amd) { 40 // AMD (Register as an anonymous module) 41 define(['jquery'], factory); 42 } else if (typeof exports === 'object') { 43 // Node/CommonJS 44 module.exports = factory(require('jquery')); 45 } else { 46 // Browser globals 47 factory(jQuery); 48 } 49}(function ($) { 50 51 var pluses = /\+/g; 52 53 function encode(s) { 54 return config.raw ? s : encodeURIComponent(s); 55 } 56 57 function decode(s) { 58 return config.raw ? s : decodeURIComponent(s); 59 } 60 61 function stringifyCookieValue(value) { 62 return encode(config.json ? JSON.stringify(value) : String(value)); 63 } 64 65 function parseCookieValue(s) { 66 if (s.indexOf('"') === 0) { 67 // This is a quoted cookie as according to RFC2068, unescape... 68 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); 69 } 70 71 try { 72 // Replace server-side written pluses with spaces. 73 // If we can't decode the cookie, ignore it, it's unusable. 74 // If we can't parse the cookie, ignore it, it's unusable. 75 s = decodeURIComponent(s.replace(pluses, ' ')); 76 return config.json ? JSON.parse(s) : s; 77 } catch(e) {} 78 } 79 80 function read(s, converter) { 81 var value = config.raw ? s : parseCookieValue(s); 82 return $.isFunction(converter) ? converter(value) : value; 83 } 84 85 var config = $.cookie = function (key, value, options) { 86 87 // Write 88 89 if (arguments.length > 1 && !$.isFunction(value)) { 90 options = $.extend({}, config.defaults, options); 91 92 if (typeof options.expires === 'number') { 93 var days = options.expires, t = options.expires = new Date(); 94 t.setMilliseconds(t.getMilliseconds() + days * 864e+5); 95 } 96 97 return (document.cookie = [ 98 encode(key), '=', stringifyCookieValue(value), 99 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 100 options.path ? '; path=' + options.path : '', 101 options.domain ? '; domain=' + options.domain : '', 102 options.secure ? '; secure' : '' 103 ].join('')); 104 } 105 106 // Read 107 108 var result = key ? undefined : {}, 109 // To prevent the for loop in the first place assign an empty array 110 // in case there are no cookies at all. Also prevents odd result when 111 // calling $.cookie(). 112 cookies = document.cookie ? document.cookie.split('; ') : [], 113 i = 0, 114 l = cookies.length; 115 116 for (; i < l; i++) { 117 var parts = cookies[i].split('='), 118 name = decode(parts.shift()), 119 cookie = parts.join('='); 120 121 if (key === name) { 122 // If second argument (value) is a function it's a converter... 123 result = read(cookie, value); 124 break; 125 } 126 127 // Prevent storing a cookie that we couldn't decode. 128 if (!key && (cookie = read(cookie)) !== undefined) { 129 result[name] = cookie; 130 } 131 } 132 133 return result; 134 }; 135 136 config.defaults = {}; 137 138 $.removeCookie = function (key, options) { 139 // Must not alter options, thus extending a fresh object... 140 $.cookie(key, '', $.extend({}, options, { expires: -1 })); 141 return !$.cookie(key); 142 }; 143 144}));;
vendor: 4,976 bytes, lines 145-197
145(function (e) { 146 "use strict"; 147 var n = window.AFTHRAMPES_JS || {}; 148 n.lightDarkToggle = function () { 149 jQuery('#aft-dark-light-mode-btn').on('click', function (event) { 150 event.preventDefault(); 151 var DefaultSiteModeAttr = e(this).data('site-mode'); 152 var DefaultSiteModeCls = e(this).attr('class'); 153 if (DefaultSiteModeAttr === DefaultSiteModeCls) { 154 n.lightDarkToggleFunction(DefaultSiteModeAttr); 155 } else { 156 n.lightDarkToggleFunction(DefaultSiteModeCls); 157 158 } 159 }); 160 }, 161 162 n.lightDarkToggleFunction = function (DefaultSiteModeAttr) { 163 jQuery.removeCookie('reviewnews-stored-site-mode', { expires: 7, path: '/' }); 164 var actualSiteModeAttr = e('#aft-dark-light-mode-btn').data('site-mode'); 165 var switchSiteModeAttr = ''; 166 if (DefaultSiteModeAttr === 'aft-dark-mode') { 167 switchSiteModeAttr = 'aft-default-mode'; 168 } else { 169 switchSiteModeAttr = 'aft-dark-mode'; 170 } 171 e('body').removeClass(DefaultSiteModeAttr); 172 e('body').addClass(switchSiteModeAttr); 173 e('#aft-dark-light-mode-btn').removeClass(DefaultSiteModeAttr); 174 e('#aft-dark-light-mode-btn').addClass(switchSiteModeAttr); 175 jQuery.cookie('reviewnews-stored-site-mode', switchSiteModeAttr, { expires: 7, path: '/' }); 176 177 178 }, 179 180 e(document).ready(function () { 181 n.lightDarkToggle(); 182 183 }); 184 185})(jQuery);; 186/* 187* jquery-match-height 0.7.2 by @liabru 188* http://brm.io/jquery-match-height/ 189* License MIT 190*/ 191!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={ 192byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null, 193r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0", 194"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={ 195display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)), 196this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i; 197}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});;
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.