window.widgetPaths = [ "40-things-never-knew-burt-reynolds", "women-changing-world", "celebrity-lookalikes-around-world", "ultimate-list-best-college-football-coaches-time", "list-best-college-football-coaches-time", "best-christmas-films-time", "post485549613", "facts-behind-scenes-ncis", "facts-thatll-make-andy-griffith-show-expert", "post228644764", "post819692719", "post945684818", "post838092671", "post721508401", "post485549613", "post518810790", "post199804624", "post226346219", "post613161719", "post232064590", "post636762207", "post864673047", "post546811606", "post232458440", "post375091434", "post148796179", "post760091865", "post396899923", "post971356760", "post947169353", "post771389187", "post896865936", "post646920927", "post751871846", "post591147180", "post346733047", "post305871532", "post773370960", "post303743910", "article-459107672", "article-154444949", "article-944976934", "article-607024696", "article-id-423282115", "article-id-974001429", "article-id-622596726" ]; if (document.location.href.indexOf("localtest=true") !== -1 || document.location.pathname.indexOf("/these-photos-couldnt-have-been-more-perfectly-timed-new/") === 0 || document.location.pathname.indexOf("/top-news-broadcast/") === 0 || widgetPaths.indexOf(document.location.pathname.split("/")[1]) !== -1 ) { /*jshint ignore:start*/ (function(dmn){ function getShinezTag() { function getQueryParam(param){var regexS = "[\?&]" + (param ? param.replace(/[[]/, "\[").replace(/[]]/, "\]") : "") + "=([^&#]*)", regex = new RegExp(regexS), results = regex.exec(document.location.href);return (results === null || (results && typeof(results[1]) !== 'string' && results[1].length)) ? '' : decodeURIComponent(results[1]);}; if (getQueryParam("dev")) return "https://dev-js.shinez.io/build/js/common" + (getQueryParam("min") === "true" ? "-min" : "") + ".js" + ((getQueryParam("rnd") || getQueryParam("debug")) ? "?rnd=" + new Date().getTime() : ""); return dmn + "/js/common-min.js" + ((getQueryParam("rnd") || getQueryParam("debug")) ? "?rnd=" + new Date().getTime() : ""); } (function() { var a = document.createElement("script"); a.async = true; a.src = getShinezTag(); a.id = "shz-loader"; var m = document.getElementsByTagName("script")[0]; m.parentNode.insertBefore(a, m);})(); })("https://js.omgcheckitout.com"); /*jshint ignore:end*/ throw "Moving to new version"; } try { // Mixpanel /*jshint ignore:start*/ (function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments, 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "); for(h=0;h" + cssStr + ""); } // Utils - END // Mobile Detection - START window.mobilecheck = function() { var check = false; (function(a){ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera); return check; }; window.mobileAndTabletcheck = function() { var check = false; (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera); return check; }; window.is_desktop = !window.mobileAndTabletcheck(); window.is_tablet = (window.mobileAndTabletcheck() && !window.mobilecheck()); window.is_mobile = (window.mobilecheck() && !window.is_tablet); // Mobile Detection - END // Cookies - START /*jshint ignore:start*/ !function(e){if("function"==typeof define&&define.amd)define(e);else if("object"==typeof exports)module.exports=e();else{var n=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function e(){for(var e=0,n={};e1){if(r=e({path:"/"},t.defaults,r),"number"==typeof r.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a}try{c=JSON.stringify(i),/^[\{\[]/.test(c)&&(i=c)}catch(s){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f').attr('src', imgSrc).load(function() { jQuery(this).remove(); // prevent memory leaks }); } function animateLoadImg(src, timeout) { if (timeout === 0) { jQuery("img[src$='" + src + "']").css({opacity: 1.0}).show(); return; } setTimeout(function() { jQuery("img[src$='" + src + "']").css({opacity: 0.0}).animate({opacity: 1}, 500); }, timeout); } function getAndSetCookieNumber(cookieName, min, max, multiplier) { var val = parseFloat(Cookies.get(cookieName)); if (typeof val !== "number" || isNaN(val)) { val = randomBetweenMinAndMax(min, max); if (typeof multiplier === "number") { val = val*multiplier; val = (Math.round(1000*val))/1000; // To avoid things like 0.7000000000000001 } Cookies.set(cookieName, val, { expires: 7 }); } return val; } function inIframe() { try { return window.self !== window.top; } catch (e) { return true; } } function getPageIframeId(page) { return 'next_page_content_iframe_' + page; } function isPageIframeVisible(page) { if (typeof page === "undefined") page = parseInt(getPage()); try { return parent.document.getElementById(getPageIframeId(page)).style.display !== "none"; } catch(e) {} return false; } function createPageIframe(page) { setTimeout(function() { jQuery(document).ready(function() { var iframeId = getPageIframeId(page); var iframe = ""; jQuery(iframe).appendTo("body"); }); }, window.iTestFrameDelay); } var keyValues = []; var mpGlobalProps = {}; function trackPageLevelKeyValue(key, value, niceName) { var mpProp = {}; mpProp[niceName] = value; mpGlobalProps = mergeObjects(mpGlobalProps, mpProp); keyValues.push({key: key, value: value}); } function trackPageLevelTest(key, niceName, min, max, multiplier) { var value = getAndSetCookieNumber(key, min, max, multiplier); var urlValue = parseFloat(getQueryParam(document.location.href, key)); if (urlValue && typeof urlValue === "number" && !isNaN(urlValue)) { value = urlValue; } trackPageLevelKeyValue(key, value, niceName); return value; } function getArticleName() { var path = document.location.pathname.replace("/",""); var end = path.indexOf("/"); return path.substr(0, end); } function getPage() { if (typeof window.curPage === "number" && !isNaN(window.curPage)) return ("" + window.curPage); var page = document.location.pathname.replace(getArticleName(),"").replace(/\//ig,""); if (isNaN(parseInt(page))) { page = getQueryParam("cur_page"); if (isNaN(parseInt(page))) { try { page = null; var anchorPage = document.location.href.split("#")[1].split("_")[1]; if(!isNaN(parseInt(anchorPage))) { page = anchorPage; } } catch(e) {} } } if (!page) page = "1"; window.curPage = parseInt(page); return page; } function rawSourceToShortSource(source) { if (source === "outbrain") return "ob"; if (source === "revcontent") return "rc"; if (source === "taboola") return "tb"; if (source === "facebook") return "fb"; if (source === "snips") return "sn"; return "na"; } function setCampaignParams() { var campaign_keywords = 'utm_source utm_medium utm_campaign'.split(' '), kw = '', params = null, first_params = {}; var index; for (index = 0; index < campaign_keywords.length; ++index) { kw = getQueryParam(document.URL, campaign_keywords[index]); if (kw.length) { if (!params) { params = {}; } params[campaign_keywords[index]] = kw; } } if (params) { Cookies.set("last_utms", params, { expires: 7 }); if (!Cookies.get("first_utms")) { Cookies.set("first_utms", params, { expires: 7 }); } if (params.utm_source) { Cookies.set("last_utm_source", params.utm_source, { expires: 7 }); if (!Cookies.get("first_utm_source")) { Cookies.set("first_utm_source", params.utm_source, { expires: 7 }); } } if (params.utm_campaign) { Cookies.set("last_utm_campaign", params.utm_campaign, { expires: 7 }); if (!Cookies.get("first_utm_campaign")) { Cookies.set("first_utm_campaign", params.utm_campaign, { expires: 7 }); } } if (params.utm_medium) { Cookies.set("last_utm_medium", params.utm_medium, { expires: 7 }); if (!Cookies.get("first_utm_medium")) { Cookies.set("first_utm_medium", params.utm_medium, { expires: 7 }); } } } try { window.last_utms = params || JSON.parse(Cookies.get("last_utms")); if (window.last_utms) { if (window.last_utms.utm_campaign) { window.last_utm_campaign = window.last_utms.utm_campaign; } if (window.last_utms.utm_medium) { window.last_utm_medium = window.last_utms.utm_medium; } if (window.last_utms.utm_source) { window.last_utm_source = window.last_utms.utm_source; } } } catch(e) { } } setCampaignParams(); function isNewsArticle() { if (typeof window.postCategoryList !== "string") return false; return (window.postCategoryList.toLowerCase().indexOf("news") !== -1); } function getArticleCategory() { var metaTags = document.getElementsByTagName("meta"); var category = ""; for (var i = 0; i < metaTags.length; i++) { if (metaTags[i].getAttribute("property") == "article:section") { return metaTags[i].getAttribute("content"); } } return ""; } function getPageType() { var pathname = document.location.pathname; if (pathname === "/") { return "Home"; } if (pathname.indexOf("/category/") !== -1) { return "Category"; } if (pathname.indexOf("/about-us/") !== -1) { return "About Us"; } if (pathname.indexOf("/terms-and-conditions/") !== -1) { return "Terms and Conditions"; } if (pathname.indexOf("/privacy-policy/") !== -1) { return "Privacy Policy"; } return "Post"; } function getCategoryPageName() { var pathname = document.location.pathname; if (pathname.indexOf("/category/") === -1) { return ""; } return capitalizeFirstLetter(pathname.replace("/category/","").replace("/","")); } var articleName = null; var categoryName = null; if (getPageType() === "Post") { articleName = getArticleName(); categoryName = getArticleCategory(); } else { if (getPageType() === "Category") { categoryName = getCategoryPageName(); } } var mpInitToken = '645fb4e90fd17fa36f735f17f091feab';//'36ac1257bd0b79d11e60be67cfda7683'; // DEF if (typeof window.last_utm_source === "string" && window.last_utm_source === "outbrain") { //mpInitToken = '645fb4e90fd17fa36f735f17f091feab'; // OB //mpInitToken = '36ac1257bd0b79d11e60be67cfda7683'; //mpInitToken = 'ccb7c6e579c5cf042c85c3dc900780e6'; // TB } if (typeof window.last_utm_source === "string" && window.last_utm_source === "facebook") { //mpInitToken = '3d533348f270ad9f994a7ef4019b3d93'; mpInitToken = 'fe77141f9535996d30e9ac69c78e8f42'; //mpInitToken = '0e29f88bc16f3490d6caedab8b953897'; } //if (typeof window.last_utm_source === "string" && window.last_utm_source === "taboola") { //if (typeof window.last_utm_campaign === "string" && window.last_utm_campaign.indexOf("-note-") !== -1) { // mpInitToken = '0e29f88bc16f3490d6caedab8b953897'; //} else { // mpInitToken = '645fb4e90fd17fa36f735f17f091feab'; // OB //mpInitToken = 'ccb7c6e579c5cf042c85c3dc900780e6'; // TB //} //} var isAaTraffic = false; if (typeof window.last_utm_source === "string" && (window.last_utm_source.indexOf("aa-") === 0 || window.last_utm_source.indexOf("is-") === 0)) { mpInitToken = '2c4dc576ddb33c55865fabead8d92d1a'; //mpInitToken = 'd22ca4b9cd855b0ef6cd01a70cb27394'; //mpInitToken = '36ac1257bd0b79d11e60be67cfda7683'; isAaTraffic = true; } try { mixpanel.init(mpInitToken); //ga('create', 'UA-88696866-1', 'auto'); fbq('init', '825103440970780'); if (isAaTraffic) { fbq('init', '798226806907325'); } } catch(e) {console.error(e);} // try { // mixpanel.track("Init", { // "Device Platform": (is_desktop ? "Desktop" : (is_tablet ? "Tablet" : "Mobile")), // "Page Type": getPageType(), // "Article Name": articleName, // "Category": categoryName, // "Page": (getPageType() === "Post" ? getPage() : null), // "Page Number": (getPageType() === "Post" ? getPage() : null), // "Local Hour": new Date().getHours(), // "Last UTM Source": window.last_utm_source, // "Last UTM Medium": window.last_utm_medium, // "Last UTM Campaign": window.last_utm_campaign // }); // } catch(e) { // console.error(e); // } window.startPageLoad = new Date(); window.test_group = trackPageLevelTest("test_group", "Test Group", 1, 10); window.test_group_section = (window.test_group >= 1 && window.test_group <= 5 ? "A" : "B"); window.bouncingSlideshowButton = false;//is_desktop && (trackPageLevelTest("bounce_start_button", "Bouncing Start Button", 1, 5) === 1); window.bouncingNextButton = false;//is_desktop && (trackPageLevelTest("bounce_next_button", "Bouncing Next Button", 1, 5) === 1); window.user_page_views = parseInt(Cookies.get("page_views")); if (isNaN(window.user_page_views)) { window.user_page_views= 1; } else { window.user_page_views = window.user_page_views + 1; } Cookies.set("page_views", window.user_page_views, { expires: 30 }); window.user_first_visit_time = new Date(Cookies.get("first_visit_time")); if (!isValidDate(window.user_first_visit_time)) { window.user_first_visit_time = new Date(); Cookies.set("first_visit_time", window.user_first_visit_time, { expires: 30 }); } // ouibounce /*jshint ignore:start*/ try { !function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n(require,exports,module):e.ouibounce=n()}(this,function(){return function(e,n){function o(e,n){return"undefined"==typeof e?n:e}function t(e){var n=24*e*60*60*1e3,o=new Date;return o.setTime(o.getTime()+n),"; expires="+o.toUTCString()}function i(){L.addEventListener("mouseleave",u),L.addEventListener("mouseenter",r),L.addEventListener("keydown",c)}function u(e){e.clientY>v||d(T,"true")&&!l||(w=setTimeout(m,p))}function r(){w&&(clearTimeout(w),w=null)}function c(e){g||d(T,"true")&&!l||e.metaKey&&76===e.keyCode&&(g=!0,w=setTimeout(m,p))}function d(e,n){return a()[e]===n}function a(){for(var e=document.cookie.split("; "),n={},o=e.length-1;o>=0;o--){var t=e[o].split("=");n[t[0]]=t[1]}return n}function m(){f(),y()}function f(){e&&(e.style.display="block"),s()}function s(e){var e=e||{};"undefined"!=typeof e.cookieExpire&&(E=t(e.cookieExpire)),e.sitewide===!0&&(b=";path=/"),"undefined"!=typeof e.cookieDomain&&(x=";domain="+e.cookieDomain),"undefined"!=typeof e.cookieName&&(T=e.cookieName),document.cookie=T+"=true"+E+x+b,L.removeEventListener("mouseleave",u),L.removeEventListener("mouseenter",r),L.removeEventListener("keydown",c)}var n=n||{},l=n.aggressive||!1,v=o(n.sensitivity,20),k=o(n.timer,1e3),p=o(n.delay,0),y=n.callback||function(){},E=t(n.cookieExpire)||"",x=n.cookieDomain?";domain="+n.cookieDomain:"",T=n.cookieName?n.cookieName:"viewedOuibounceModal",b=n.sitewide===!0?";path=/":"",w=null,L=document.documentElement;setTimeout(i,k);var g=!1;return{fire:f,disable:s}}}); } catch(e) {} /*jshint ignore:end*/ /*jshint ignore:start*/ window.upInit = false; function initUp() { if (window.upInit) return; window.upInit = true; } /* window.use_up = (trackPageLevelTest("use_up", "Use Up", 1, 10) !== 2); if (window.use_up === 1 || document.location.href.indexOf("uponit=test") !== -1) { initUp(); } */ /*jshint ignore:end*/ (function(window) { /*jshint ignore:start*/ var FAB=function(a){this._options={checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",baitStyle:"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",debug:!1};this._var={version:"3.2.1",bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}};void 0!==a&&this.setOption(a);var b=this; a=function(){setTimeout(function(){!0===b._options.checkOnLoad&&(!0===b._options.debug&&b._log("onload->eventCallback","A check loading is launched"),null===b._var.bait&&b._creatBait(),setTimeout(function(){b.check()},1))},1)};void 0!==window.addEventListener?window.addEventListener("load",a,!1):window.attachEvent("onload",a)};FAB.prototype._options=null;FAB.prototype._var=null;FAB.prototype._bait=null;FAB.prototype._log=function(a,b){console.log("[FAB]["+a+"] "+b)}; FAB.prototype.setOption=function(a,b){if(void 0!==b){var c=a;a={};a[c]=b}for(var d in a)this._options[d]=a[d],!0===this._options.debug&&this._log("setOption",'The option "'+d+'" he was assigned to "'+a[d]+'"');return this}; FAB.prototype._creatBait=function(){var a=document.createElement("div");a.setAttribute("class",this._options.baitClass);a.setAttribute("style",this._options.baitStyle);this._var.bait=window.document.body.appendChild(a);this._var.bait.offsetParent;this._var.bait.offsetHeight;this._var.bait.offsetLeft;this._var.bait.offsetTop;this._var.bait.offsetWidth;this._var.bait.clientHeight;this._var.bait.clientWidth;!0===this._options.debug&&this._log("_creatBait","Bait has been created")}; FAB.prototype._destroyBait=function(){window.document.body.removeChild(this._var.bait);this._var.bait=null;!0===this._options.debug&&this._log("_destroyBait","Bait has been removed")}; FAB.prototype.check=function(a){void 0===a&&(a=!0);!0===this._options.debug&&this._log("check","An audit was requested "+(!0===a?"with a":"without")+" loop");if(!0===this._var.checking)return!0===this._options.debug&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0;null===this._var.bait&&this._creatBait();var b=this;this._var.loopNumber=0;!0===a&&(this._var.loop=setInterval(function(){b._checkBait(a)},this._options.loopCheckTime));setTimeout(function(){b._checkBait(a)}, 1);!0===this._options.debug&&this._log("check","A check is in progress ...");return!0}; FAB.prototype._checkBait=function(a){var b=!1;null===this._var.bait&&this._creatBait();if(null!==window.document.body.getAttribute("abp")||null===this._var.bait.offsetParent||0==this._var.bait.offsetHeight||0==this._var.bait.offsetLeft||0==this._var.bait.offsetTop||0==this._var.bait.offsetWidth||0==this._var.bait.clientHeight||0==this._var.bait.clientWidth)b=!0;if(void 0!==window.getComputedStyle){var c=window.getComputedStyle(this._var.bait,null);!c||"none"!=c.getPropertyValue("display")&&"hidden"!= c.getPropertyValue("visibility")||(b=!0)}!0===this._options.debug&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(!0===b?"positive":"negative"));!0===a&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop());if(!0===b)this._stopLoop(),this._destroyBait(),this.emitEvent(!0),!0===a&&(this._var.checking=!1);else if(null=== this._var.loop||!1===a)this._destroyBait(),this.emitEvent(!1),!0===a&&(this._var.checking=!1)};FAB.prototype._stopLoop=function(a){clearInterval(this._var.loop);this._var.loop=null;this._var.loopNumber=0;!0===this._options.debug&&this._log("_stopLoop","A loop has been stopped")}; FAB.prototype.emitEvent=function(a){!0===this._options.debug&&this._log("emitEvent","An event with a "+(!0===a?"positive":"negative")+" detection was called");a=this._var.event[!0===a?"detected":"notDetected"];for(var b in a)if(!0===this._options.debug&&this._log("emitEvent","Call function "+(parseInt(b)+1)+"/"+a.length),a.hasOwnProperty(b))a[b]();!0===this._options.resetOnEnd&&this.clearEvent();return this}; FAB.prototype.clearEvent=function(){this._var.event.detected=[];this._var.event.notDetected=[];!0===this._options.debug&&this._log("clearEvent","The event list has been cleared")};FAB.prototype.on=function(a,b){this._var.event[!0===a?"detected":"notDetected"].push(b);!0===this._options.debug&&this._log("on",'A type of event "'+(!0===a?"detected":"notDetected")+'" was added');return this};FAB.prototype.onDetected=function(a){return this.on(!0,a)}; FAB.prototype.onNotDetected=function(a){return this.on(!1,a)}; window.FAB = FAB;if(window.fab === undefined) {window.fab = new FAB({checkOnLoad: true,resetOnEnd: true});} /*jshint ignore:end*/ })(window); window.fab_check = null; fab.onDetected(function(){ window.fab_check = true; if (!window.upInit && typeof initUp === "function") { initUp(); } }); fab.onNotDetected(function(){ window.fab_check = false; }); function replaceFeatureImage() { if (window.rnkWidget) return; if (window.settings.blocksPerPage > 1) return; if (typeof window.newFeaturedImage === "undefined" || !window.newFeaturedImage || window.newFeaturedImage.length <= 0) return; jQuery(".td-post-featured-image > img").remove(); jQuery(".td-post-featured-image").append(""); jQuery(".td-post-featured-image").css({ "text-align": "center" }); jQuery(".td-post-featured-image > img").show(); } function getMaxNumberOfPages() { if (nextPages.length === 0) return window.nextButtonMaxPage; else return Math.min(window.nextButtonMaxPage, nextPages.length); } window.slideshowButtonCreated = false; function createSlideShowButton(btnInfo) { if (window.rnkWidget) return; if (window.settings.blocksPerPage > 1) return; if (window.slideshowButtonCreated) return; window.slideshowButtonCreated = true; if (!btnInfo) { btnInfo = {}; } var imgSelector = ".td-post-featured-image > img"; var imgSrc = jQuery(imgSelector).attr("src"); if (!imgSrc) { imgSelector = ".td-post-featured-image > figure > img"; imgSrc = jQuery(imgSelector).attr("src"); } if (!jQuery("#acp_paging_menu").length || !jQuery(".td-post-featured-image").length || getPage() != 1 || window.location.href.indexOf("single_page=1") !== -1 || window.location.href.indexOf("/9999") !== -1 || !imgSrc) { return; } var rand = 0; rand = parseInt(Cookies.get("test_slideshow_button_color")); if (typeof rand !== "number" || isNaN(rand) || rand < 1 || rand > 10) { rand = randomBetweenMinAndMax(1, 10); // Override for now: rand = 10; // Cookies.set("test_slideshow_button_color", rand, { expires: 1 }); } var colorTest = null; if (rand === 1 || rand === 2) { colorTest = "Orange"; btnInfo.color = "#f5ae0f"; btnInfo.hoverColor = "#f3bf4a"; } else if (false && (rand === 3 || rand === 4)) { colorTest = "Blue"; btnInfo.color = "#3b1bef"; btnInfo.hoverColor = "#5754fd"; } else if (rand === 5 || rand === 6) { colorTest = "Green"; btnInfo.color = "#00b50e"; btnInfo.hoverColor = "#07dc17"; } else if (rand === 7 || rand === 8) { colorTest = "Yellow"; btnInfo.color = "#decd33"; btnInfo.hoverColor = "#f1de36"; } else { colorTest = "Red"; // Default } if (colorTest) { mixpanel.register({ "Slideshow Button Color": colorTest }); } rand = parseInt(Cookies.get("test_slideshow_button_text")); if (typeof rand !== "number" || isNaN(rand) || rand < 1 || rand > 10) { rand = randomBetweenMinAndMax(1, 10); Cookies.set("test_slideshow_button_text", rand, { expires: 1 }); } if (rand === 1 || rand === 2) { btnInfo.text = "START SLIDESHOW >>"; } else if (rand === 3 || rand === 4) { btnInfo.text = "CLICK TO BEGIN >>"; } else if (rand === 5 || rand === 6) { btnInfo.text = ">> BEGIN >>"; } else if (rand === 7 || rand === 8) { btnInfo.text = "CLICK TO START >>"; } else { btnInfo.text = "BEGIN SLIDESHOW >>"; // Default } // Override for now: btnInfo.text = ">> BEGIN >>"; if (document.location.href.indexOf("greatest-female-icons-of-the-70s80s-gr") !== -1) { btnInfo.text = ">> START >>"; } if (window.nextButtonCounter && (parseInt(getPage()) <= window.nextButtonMaxPage)) { btnInfo.text = " BEGIN (" + getPage() + "/" + window.nextButtonMaxPage + ") >>"; } if (btnInfo.text) { mixpanel.register({ "Slideshow Button Text": btnInfo.text }); } jQuery('').attr('src', imgSrc).load(function() { jQuery(this).remove(); // prevent memory leaks var imgWidth = jQuery(imgSelector).width(); var imgHeight = jQuery(imgSelector).height(); var width = imgWidth * 0.9; var height = imgHeight * 0.2; var padding = (btnInfo.padding ? btnInfo.padding : 25); var text = (btnInfo.text ? btnInfo.text : "BEGIN SLIDESHOW >>"); var color = (btnInfo.color ? btnInfo.color : "#BC2025"); var hoverColor = (btnInfo.hoverColor ? btnInfo.hoverColor : "#EB2A31"); jQuery(".td-post-featured-image").append("
" + text + "
"); jQuery("#begin-slideshow-div").css({ "height": height, "width": width, "font-size": (30 * (width/400)) + "px" }); jQuery("#begin-slideshow-div").click(function() { if ((!window.notSinglePageGallery && window.monetizedUtm && window.isSinglePageGallery && nextPages && nextPages.length > 0) || window.iTest) return; var nextUrl = jQuery(".acp_next_page > a").attr("href"); document.location = nextUrl; }); jQuery("#begin-slideshow-div").mouseenter(function() { jQuery(this).css({ "background": hoverColor }); }).mouseleave(function() { jQuery(this).css({ "background": color }); }); if (window.bouncingSlideshowButton) { jQuery("#begin-slideshow-div").addClass("bounce"); } }); } function createNextButton() { var nextButtonText = "NEXT"; if (document.location.href.indexOf("greatest-female-icons-of-the-70s80s-gr") !== -1) { nextButtonText = "Weiter"; } if (window.nextButtonCounter && (parseInt(getPage()) <= window.nextButtonMaxPage)) { nextButtonText += " (" + getPage() + "/" + window.nextButtonMaxPage + ")"; } jQuery(".acp_title").html(nextButtonText); jQuery("#acp_paging_menu").show(); if (window.bouncingNextButton) { jQuery("").appendTo("body"); jQuery(".acp_next_page").addClass("bounce"); } } function getNextArticle() { var possibleNextArticles = [ "/greatest-female-icons-of-the-70s80s/" ]; if (document.location.href.indexOf("beautiful-women-around-world") !== -1) { return "/beautiful-woodstock-facts-photos/"; } if (document.location.href.indexOf("icons-of-the-70s80s") !== -1) { return "/childhood-heroines-then-now/"; } if (document.location.href.indexOf("notes-left-windshields") !== -1) { return "/photos-couldnt-perfectly-timed/"; } if (document.location.href.indexOf("photos-couldnt-perfectly-timed") !== -1) { return /meanest-notes-left-windshields-terrible-drivers-parkers/; } if (document.location.href.indexOf("childhood-heroines-then-now") !== -1) { return (window.test_group_section === "A" ? "/greatest-female-icons-of-the-70s80s/" : "/15-child-stars-who-are-now-adult-millionaires/"); } if (typeof test_group === "number" && !isNaN(test_group) && test_group >= 1 && test_group <= 10) { return possibleNextArticles[(test_group - 1) % possibleNextArticles.length]; } else { return "/childhood-heroines-then-now/"; } } function setNextArticle() { jQuery(".acp_last_page").click(function() { document.location.href = getNextArticle(); }); } function sendTaboolaPixel(account) { jQuery("body").append(''.replace("{encoded_page_url}", encodeURIComponent(document.location.href))); } function sendOutbrainPixel() { (function(_window, _document, _OB_ADV_ID) { var OB_ADV_ID = _OB_ADV_ID; if (_window.obApi) { var toArray = function(object) { return Object.prototype.toString.call(object) === '[object Array]' ? object : [object];}; _window.obApi.marketerId = toArray(_window.obApi.marketerId).concat(toArray(OB_ADV_ID)); return; } /*jshint ignore:start*/ var api = window.obApi = function() {api.dispatch ? api.dispatch.apply(api, arguments) : api.queue.push(arguments);}; /*jshint ignore:end*/ api.version = '1.1'; api.loaded = true; api.marketerId = OB_ADV_ID; api.queue = []; var tag = document.createElement('script'); tag.async = true; tag.src = '//amplify.outbrain.com/cp/obtp.js'; tag.type = 'text/javascript'; var script = _document.getElementsByTagName('script')[0]; script.parentNode.insertBefore(tag, script); }(window, document, window.outbrainPixelIds)); obApi('track', 'PAGE_VIEW'); } window.geminiLoaded = false; window.sendGeminiPixel = function() { function pushGeminiPixelEvent(projectId, pixelId) { if (geminiLoaded && window.dotq && window.dotq.push) { window.dotq.push({ 'projectId': projectId, 'properties': { 'pixelId': pixelId, 'qstrings': { 'et': 'custom', 'ec': 'PageLoad', 'ev': '0.01' } } }); return; } /*jshint ignore:start*/ (function(w,d,t,r,u){w[u]=w[u]||[];w[u].push({'projectId':projectId,'properties':{'pixelId':pixelId}});var s=d.createElement(t);s.src=r;s.async=true;s.onload=s.onreadystatechange=function(){var y,rs=this.readyState,c=w[u];if(rs&&rs!="complete"&&rs!="loaded"){return}try{y=YAHOO.ywa.I13N.fireBeacon;w[u]=[];w[u].push=function(p){y([p])};y(c)}catch(e){}};var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr)})(window,document,"script","https://s.yimg.com/wi/ytc.js","dotq"); /*jshint ignore:end*/ geminiLoaded = true; } function getGeiminiPixelId() { if (typeof last_utm_source === "string" && last_utm_source === "gemini") return '10041507'; if (typeof last_utm_source === "string" && last_utm_source === "is-yg") return '10036089'; if (typeof last_utm_source === "string" && last_utm_source === "aa-yg") return '10036089'; return ""; } var pixelId = getGeiminiPixelId(); if (!pixelId) return; pushGeminiPixelEvent("10000", pixelId); }; window.timeSinceLastPv = null; window.firstPageViewEvent = true; function sendPV() { var timeSinceLastPvInSeconds = null; if (window.timeSinceLastPv) { timeSinceLastPvInSeconds = Math.round((new Date() - window.timeSinceLastPv)/1000); } window.timeSinceLastPv = new Date(); // MP mixpanel.track("Page view", mergeObjects({ "Test Group Section" : window.test_group_section, "AB Check": window.fab_check, "First User Page View Time": (window.user_first_visit_time ? window.user_first_visit_time.toISOString() : null), "Total User Page Views": window.user_page_views, "Device Platform": (is_desktop ? "Desktop" : (is_tablet ? "Tablet" : "Mobile")), "Page Type": getPageType(), "Article Name": articleName, "Category": categoryName, "Page": (getPageType() === "Post" ? getPage() : null), "Page Number": (getPageType() === "Post" ? getPage() : null), "Local Hour": new Date().getHours(), "Last UTM Source": window.last_utm_source, "Last UTM Medium": window.last_utm_medium, "Last UTM Campaign": window.last_utm_campaign, "Enough Time For Ad Request": (typeof timeSinceLastPvInSeconds === "number" ? window.minTimeBetweenAdRequests < timeSinceLastPvInSeconds*1000 : null), "Time From Last Page View": timeSinceLastPvInSeconds, "Time From Page Load To Ready": window.fromPageLoadToReady, "Time From Page Load": 100*Math.round((new Date().getTime() - startPageLoad.getTime())/100), "Is Last Page": !!jQuery(".acp_last_page").length, "Ads Rendered": window.adsRendered, "Ads Empty": window.adsRenderedEmpty, "Pbjs Version": (window.pbjs && window.pbjs.version ? window.pbjs.version : null), "Forensiq Status Code": window.forensiqStatusCode, "Forensiq Response Time": window.forensiqResponseTime }, mergeObjects(mpGlobalProps, window.pb_data))); // FB if (!window.fab_check && !window.isInIframe) { // Keywee if (!window.keyweeAdded) { window.keyweeAdded = true; //jQuery("body").append(''); } else { fbq('track', 'PageView'); if (isAaTraffic) { try { fbq('trackCustom', last_utm_source.split("-")[1] + '-Page', { page: getPage(), article_id: getArticleName() }); } catch(e) {} } } } else { if (window.fab_check) { fbq('trackCustom', 'PageViewWithAB', { page: getPage(), article_id: getArticleName() }); } } try {FB.AppEvents.logPageView();} catch(e) {} // GA if (window.gaFirstPageViewSent) { ga('send', 'pageview'); } else { window.gaFirstPageViewSent = true; } // Taboola if (window.last_utm_source === "taboola") { if (typeof window.last_utm_campaign === "string" && window.last_utm_campaign.indexOf("ct") === 0) { sendTaboolaPixel("l8contentabt-sc"); } else { sendTaboolaPixel("gingertrading-sc"); } } // Outbrain // if (window.last_utm_source === "outbrain") { // window.OB_ADV_ID = [74281, 77945]; // window.OBPixel = null; // var scheme = (("https:" == document.location.protocol) ? "https://" : "http://"); // var str = ''); } else { fbq('track', 'PageView'); if (isAaTraffic) { try { fbq('trackCustom', last_utm_source.split("-")[1] + '-Page', { page: getPage(), article_id: getArticleName() }); } catch(e) {} } } } else { if (window.fab_check) { fbq('trackCustom', 'PageViewWithAB', { page: getPage(), article_id: getArticleName() }); } } try {FB.AppEvents.logPageView();} catch(e) {} // GA if (window.gaFirstPageViewSent) { ga('send', 'pageview'); } else { window.gaFirstPageViewSent = true; } // Taboola if (window.last_utm_source === "taboola") { if (typeof window.last_utm_campaign === "string" && window.last_utm_campaign.indexOf("ct") === 0) { sendTaboolaPixel("l8contentabt-sc"); } else { sendTaboolaPixel("gingertrading-sc"); } } // Outbrain // if (window.last_utm_source === "outbrain") { // window.OB_ADV_ID = [74281, 77945]; // window.OBPixel = null; // var scheme = (("https:" == document.location.protocol) ? "https://" : "http://"); // var str = '