‘});t.prototype=n.extend(,n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function()return t.DEFAULTS;t.prototype.setContent=function()var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(“.popover-title”)[this.options.html?”html”:”text”](i);n.find(“.popover-content”)[this.options.html?typeof t==”string”?”html”:”append”:”text”](t);n.removeClass(“fade top bottom left right in”);n.find(“.popover-title”).html();t.prototype.hasContent=function()return this.getTitle();t.prototype.getContent=function()var t=this.$element,n=this.options;return t.attr(“data-content”);t.prototype.arrow=function()return this.$arrow=this.$arrow;t.prototype.tip=function()return this.$tip;i=n.fn.popover;n.fn.popover=function(i)return this.each(function()u.data(“bs.popover”,r=new t(this,f)),typeof i==”string”&&r[i]()));n.fn.popover.Constructor=t;n.fn.popover.noConflict=function()return n.fn.popover=i,this}(jQuery);+function(n)”use strict”;function t(i,r)t.DEFAULTS=offset:10;t.prototype.refresh=function()var i=this.$element[0]==window?”offset”:”position”,t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function()).sort(function(n,t)return n[0]-t[0]).each(function()t.offsets.push(this[0]);t.targets.push(this[1]));t.prototype.process=function()var u=i.find(“> .active”),f=r&&n.support.transition&&u.hasClass(“fade”);f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass(“in”);i=n.fn.tab;n.fn.tab=function(i)return this.each(function()var u=n(this),r=u.data(“bs.tab”);r);n.fn.tab.Constructor=t;n.fn.tab.noConflict=function()return n.fn.tab=i,this;n(document).on(“click.bs.tab.data-api”,'[data-toggle=”tab”], [data-toggle=”pill”]’,function(t)t.preventDefault();n(this).tab(“show”))}(jQuery);+function(n){“use strict”;var t=function(i,r)this.options=n.extend(,t.DEFAULTS,r);this.$window=n(window).on(“scroll.bs.affix.data-api”,n.proxy(this.checkPosition,this)).on(“click.bs.affix.data-api”,n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition(),i;t.RESET=”affix affix-top affix-bottom”;t.DEFAULTS=offset:0;t.prototype.getPinnedOffset=function()if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass(“affix”);var n=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n;t.prototype.checkPositionWithEventLoop=function()setTimeout(n.proxy(this.checkPosition,this),1);t.prototype.checkPosition=function()var i,e,h;if(this.$element.is(“:visible”))var c=n(document).height(),o=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(this.affixed==”top”&&(s.top+=o),typeof r!=”object”&&(u=f=r),typeof f==”function”&&(f=r.top(this.$element)),typeof u==”function”&&(u=r.bottom(this.$element)),i=this.unpin!=null&&o+this.unpin=c-u?”bottom”:f!=null&&o”).addClass(“list-unstyled”).append(a.map(d,function(b)return a(“
  • “)[c](b))),void 0===f.data(“bs.validator.originalContent”)&&f.data(“bs.validator.originalContent”,f.html()),f.empty().append(d),e.addClass(“has-error has-danger”),e.hasClass(“has-feedback”)&&g.removeClass(this.options.feedback.success)&&g.addClass(this.options.feedback.error)&&e.removeClass(“has-success”)),d.prototype.clearErrors=function(a)var c=a.closest(“.form-group”),d=c.find(“.help-block.with-errors”),e=c.find(“.form-control-feedback”);d.html(d.data(“bs.validator.originalContent”)),c.removeClass(“has-error has-danger has-success”),c.hasClass(“has-feedback”)&&e.removeClass(this.options.feedback.error)&&e.removeClass(this.options.feedback.success)&&b(a)&&e.addClass(this.options.feedback.success)&&c.addClass(“has-success”),d.prototype.hasErrors=function()function b()[]).lengthreturn!!this.$inputs.filter(b).length,d.prototype.isIncomplete=function()function c()var c=b(a(this));return!(“string”==typeof c?a.trim(c):c)return!!this.$inputs.filter(“[required]”).filter(c).length,d.prototype.onSubmit=function(a),d.prototype.toggleSubmit=function()this.options.disable&&this.$btn.toggleClass(“disabled”,this.isIncomplete(),d.prototype.defer=function(b,c)return c=a.proxy(c,this,b),this.options.delay?(window.clearTimeout(b.data(“bs.validator.timeout”)),void b.data(“bs.validator.timeout”,window.setTimeout(c,this.options.delay))):c(),d.prototype.reset=function()return this.$element.find(“.form-control-feedback”).removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData([“bs.validator.errors”,”bs.validator.deferred”]).each(function()var b=a(this),c=b.data(“bs.validator.timeout”);window.clearTimeout(c)&&b.removeData(“bs.validator.timeout”)),this.$element.find(“.help-block.with-errors”).each(function()var b=a(this),c=b.data(“bs.validator.originalContent”);b.removeData(“bs.validator.originalContent”).html(c)),this.$btn.removeClass(“disabled”),this.$element.find(“.has-error, .has-danger, .has-success”).removeClass(“has-error has-danger has-success”),this,d.prototype.destroy=function()return this.reset(),this.$element.removeAttr(“novalidate”).removeData(“bs.validator”).off(“.bs.validator”),this.$inputs.off(“.bs.validator”),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this;var e=a.fn.validator;a.fn.validator=c,a.fn.validator.Constructor=d,a.fn.validator.noConflict=function()return a.fn.validator=e,this,a(window).on(“load”,function()a(‘form[data-toggle=”validator”]’).each(function()var b=a(this);c.call(b,b.data())))(jQuery);

    /*module tracking-used on old education lab activities*/
    var urlmt = window.location.href;
    var lastPartMt = urlmt.substr(urlmt.lastIndexOf(‘/’) + 1);
    if (window.location.href.indexOf(“cmetest.healio.com”) 0 || window.location.href.indexOf(“gastroce”) > 0 || window.location.href.indexOf(“glaucomacme”) > 0 || window.location.href.indexOf(“hcvhyperguide”) > 0 || window.location.href.indexOf(“hivcurbside”) > 0 || window.location.href.indexOf(“lipidcme”) > 0 || window.location.href.indexOf(“mededtalks”) > 0 || window.location.href.indexOf(“melanomacme”) > 0 || window.location.href.indexOf(“neurocme”) > 0 || window.location.href.indexOf(“obesityce”) > 0 || window.location.href.indexOf(“oncologyce”) > 0 || window.location.href.indexOf(“osdcme”) > 0 || window.location.href.indexOf(“retinacme”) > 0 || window.location.href.indexOf(“rheumcme”) > 0)) {
    function TrackModule(t,e,i,n,a,o)if(void 0!==t)var r=$j(t).prop(“tagName”);if(void 0!==r)if(1===a&&(n+=” – External”),”undefined”!=typeof gtag)var d=event_category:e,event_action:i,event_label:n,non_interaction:!0,value:0;gtag(“event”,d.event_action,d),console.log(“e:”+r+” c:”+e+” a:”+i+” l:”+n)else console.log(“H4 Module Tracking: GTAG not defined. e:”+r+” c:”+e+” a:”+i+” l:”+n);else void 0!==console.log&&console.log(“!!Element is undefined!!”)else void 0!==console.log&&console.log(“!!Element is undefined!!”)function FullModuleName(t)var e=””,i=$j(t).parents(“[data-module]”);$j(i).each(function()return void 0!==$j(this).data(“module”)&&””!==$j(this).data(“module”)&&(e=$j(this).data(“module”)+” “+e),void 0===$j(this).data(“isroot”)&&void 0);var n=void 0!==$j(t).data(“module”)?$j(t).data(“module”):””;return e=$j.trim(e)+” “+n,$j.trim(e)function trackvis(t)var e=FullModuleName(t);window.tracked.push(e);var i=((new Date).getTime()-window.lt-window.viewmin).toString()+”ms”;TrackModule($j(““),e,”In View”,i,0)function isTracked(t)return-1!==window.tracked.indexOf(t)function upsert(t,e)return inArr(t,e)?t:(t.push(e),t)function inArr(t,e)return $j.grep(t,function(t)return t.key===e).length>0function remove(t,e)var i=$j.grep(t,function(t)return t.key===e);return i.length>0&&($j.each(i,function(t,e)window.clearTimeout(e.timer)),t=$j.grep(t,function(t)return t.key!==e)),tfunction checkVis(){$j(“[data-vpvis]”).each(function(){var t=FullModuleName(this);if(!isTracked(t))if($j(this).isOnScreen(1,.5)){if(!inArr(window.inview,t))var e=key:t,timer:window.setTimeout(function(t)return function()trackvis(t)(this),window.viewmin);window.inview=upsert(window.inview,e)}else window.inview=remove(window.inview,t)})}function doesStringContainEmail(t)(([a-zA-Z-0-9]+.)+[a-zA-Z]2,))/.test(t)function AjaxTrackLinks(t)var e=0;$j(t).not(“[data-notrack]”).each(function(t)e++,$j(this).data(“position”,e);var i=FullModuleName(this);$j(this).click(function(t)””!==$j(this).attr(“href”))d))$j(document).ready(function(){var t=new Date;window.lt=t.getTime(),$j(“a”).not(“[data-notrack]”).each(function(t)var e=FullModuleName(this);$j(this).click(function(t)if($j(this).is(“[href]”)&&””!==$j(this).attr(“href”)))),$j(“:input”).not(“[data-notrack]”).each(function(t)var e=$j(this).prop(“type”);if(void 0===e)return!0;var i=FullModuleName(this);switch(e.toLowerCase())case”text”:$j(this).change(function(t)var e=doesStringContainEmail($j(this).val()),n=void 0!==$j(this).attr(“id”)?$j(this).attr(“id”).replace(“input”,””).replace(“txt”,””):void 0!==$j(this).attr(“name”)?$j(this).attr(“name”).replace(“input”,””).replace(“txt”,””):””;!n.length>0&&(n=void 0!==$j(this).parents(“[id]”).first().attr(“id”)?$j(this).parents(“[id]”).first().attr(“id”):””),TrackModule(this,i,”Text Entered”,e?”Email Address Entered”:n,0));break;case”select-one”:case”select-multiple”:$j(this).change(function(t)var e=$j(this).val();TrackModule(this,i,”Selection Changed”,e,0,!0));break;case”button”:var n=$j(this).data(“name”);(void 0===n),window.modtrkloaded=!0,$j(window).trigger(“modtrkloaded”)});
    }
    /*jQuery Get Path*/
    jQuery.fn.getPath=function()if(1!=this.length)throw”Req one ele.”;for(var e,r=this;r.length;)var t=r[0],n=t.localName;if(!n)break;n=n.toLowerCase();var a=r.parent(),h=a.children(n);h.length>1&&(n+=”:eq(“+h.index(t)+”)”),e=n+(e?”>”+e:””),r=areturn e;
    /*registrationmodalfix*/
    $j(window).on(‘shown.bs.modal’, function() $j(‘.register-modal.show’).addClass(‘in’););
    /*disable $j event listeners*/
    if(typeof($j) === “function”)
    //$j(document).off();
    // Add back bs modal events?
    $j(document).on(“show.bs.modal”, “.modal”, function()
    $j(document.body).addClass(“modal-open”)
    ).on(“hidden.bs.modal”, “.modal”, function()
    $j(document.body).removeClass(“modal-open”)
    )

    /* Masonry PACKAGED v4.2.2 https://masonry.desandro.com*/
    !function(t,e)”function”==typeof define&&define.amd?define(“jquery-bridget/jquery-bridget”,[“jquery”],function(i)return e(t,i)):”object”==typeof module&&module.exports?module.exports=e(t,require(“jquery”)):t.jQueryBridget=e(t,t.jQuery)(window,function(t,e)t.jQuery),i),function(t,e)”function”==typeof define&&define.amd?define(“ev-emitter/ev-emitter”,e):”object”==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()(“undefined”!=typeof window?window:this,function(){function t()var e=t.prototype;return e.on=function(t,e)if(t&&e)var i=this._events=this._events,e.once=function(t,e)if(t&&e),e.off=function(t,e)var i=this._events&&this._events[t];if(i&&i.length)var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this,e.emitEvent=function(t,e)var i=this._events&&this._events[t];if(i&&i.length)function n(t)a(“Style returned “+e+”. Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1″),efunction o()if(!d)document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)function r(e)if(o(),”string”==typeof e&&(e=document.querySelector(e)),e&&”object”==typeof e&&e.nodeType)var r=n(e);if(“none”==r.display)return i();var a=;a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox=”border-box”==r.boxSizing,l=0;u>l;l++)var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:mvar p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,avar s,a=”undefined”==typeof console?e:function(t)console.error(t),h=[“paddingLeft”,”paddingRight”,”paddingTop”,”paddingBottom”,”marginLeft”,”marginRight”,”marginTop”,”marginBottom”,”borderLeftWidth”,”borderRightWidth”,”borderTopWidth”,”borderBottomWidth”],u=h.length,d=!1;return r),function(t,e)”use strict”;”function”==typeof define&&define.amd?define(“desandro-matches-selector/matches-selector”,e):”object”==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()(window,function(){“use strict”;var t=function(){var t=window.Element.prototype;if(t.matches)return”matches”;if(t.matchesSelector)return”matchesSelector”;for(var e=[“webkit”,”moz”,”ms”,”o”],i=0;is?”round”:”floor”;r=Math[a](r),this.cols=Math.max(r,1),n.getContainerWidth=function()var t=this._getOption(“fitWidth”),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth,n._getItemLayoutPosition=function(t)t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?”round”:”ceil”,n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?”_getHorizontalColPosition”:”_getTopColPosition”,r=this[o](n,t),s=x:this.columnWidth*r.col,y:r.y,a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s,n._getTopColPosition=function(t)var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);returncol:e.indexOf(i),y:i,n._getTopColGroup=function(t)if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e,n._getColGroupY=function(t,e)if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i),n._getHorizontalColPosition=function(t,e)var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,col:i,y:this._getColGroupY(i,t),n._manageStamp=function(t)var i=e(t),n=this._getElementOffset(t),o=this._getOption(“originLeft”),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption(“originTop”),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l]),n._getContainerSize=function()this.maxY=Math.max.apply(Math,this.colYs);var t=height:this.maxY;return this._getOption(“fitWidth”)&&(t.width=this._getContainerFitWidth()),t,n._getContainerFitWidth=function()for(var t=0,e=this.cols;–e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter,n.needsResizeLayout=function()var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth,i);
    function fireTrackingEvents(ec,ea,el,ni,v)
    if(ni === undefined)
    ni=true;

    if(v === undefined)
    v=0;

    var eventparams =
    ‘event_category’:ec,
    ‘event_action’: ea,
    ‘event_label’: el,
    ‘non_interaction’: ni,
    ‘value’: v
    ;
    if (typeof (gtag) !== “undefined”)
    gtag(‘event’, eventparams.event_action, eventparams);
    console.log(“fireTrackingEvents executed”);
    console.log(eventparams);

    /*ismobile*/
    var isMobile=Android:function()return navigator.userAgent.match(/Android/i)&&navigator.userAgent.match(/mobile/i),BlackBerry:function()return navigator.userAgent.match(/BlackBerry/i),iPhone:function()return navigator.userAgent.match(/iPhone/i),Nokia:function()return navigator.userAgent.match(/nokia/i),Opera:function()return navigator.userAgent.match(/Opera Mini/i),Palm:function()return navigator.userAgent.match(/palm/i),Phone:function()return navigator.userAgent.match(/phone/i),SchI800:function()return navigator.userAgent.match(/sch-i800/i),Windows:function()return navigator.userAgent.match(/IEMobile/i),WindowsCe:function()return navigator.userAgent.match(/windows ce/i),Xoom:function()return navigator.userAgent.match(/xoom/i),any:function()return(isMobile.Android()

    November 30, 2022

    1 min read


    Recent findings from the Women’s Health Initiative revealed that greater adherence to a plant-based Portfolio diet was associated with a lower risk for incident type 2 diabetes.

    Study coauthor Andrea Glenn, PhD, RD, highlighted two main takeaways from the study.

    Healio spoke with experts about how osteoporosis remains undiagnosed and untreated, despite new advancements in fracture risk assessments and treatments. Source: Adobe Stock

    “The first is that we saw all three dietary patterns (Portfolio, Dietary Approaches to Stop Hypertension [DASH] and Mediterranean) we assessed were similarly associated with a reduced risk of developing type 2 diabetes, highlighting that there are several combinations of plant predominant diets that may be beneficial for diabetes prevention,” she told Healio. “The second would be that we saw a linear dose-response with adherence to the Portfolio diet and type 2 diabetes risk, therefore emphasizing that adopting one or more of its components is better than none for diabetes prevention.”

    It was the top story in endocrinology last week.

    In another top story, experts discussed how osteoporosis remains undiagnosed and untreated, despite new advancements in fracture risk assessments and treatments.

    Read these and more top stories in endocrinology below:

    Greater adherence to plant-based Portfolio diet cuts risk for developing type 2 diabetes

    Women who adhered more to a plant-based Portfolio diet lowered their risk for developing type 2 diabetes, according to findings from the Women’s Health Initiative published in Diabetes Care. Read more.

    Despite effective new therapies, osteoporosis remains undiagnosed, untreated

    During the past 20 years, Endocrine Today has covered the latest advancements surrounding osteoporosis care. For its 20th year, the publication is taking a look back. Read more.

    Diabetes treatment as effective as gastric bypass in diabetic kidney disease

    Best diabetes medical treatment was just as effective in albuminuria remission as Roux-en-Y gastric bypass for adults with diabetic kidney disease and obesity, according to study results published in eClinical Medicine. Read more.

    Use of CGM metrics more common in diabetes care, but still limited

    With uptake of diabetes devices continuing to expand, more providers are shifting away from looking solely at HbA1c and toward analyzing continuous glucose monitoring data. Read more.

    Should time in range replace HbA1c as the primary outcome metric for diabetes?

    In this point-counter, experts debate whether time in range should replace HbA1c as the primary outcome metric for diabetes. Read more.


    // ReSharper disable PossiblyUnassignedProperty
    // ReSharper disable Html.EventNotResolved
    window.adRenderDocumentItemId = “3F8A1E3F-0A28-4ADE-BDC7-4F29AD14FF0B”;
    function isInView(thisAd, posBuffer, isMobile)
    return true;
    var bounding = thisAd.getBoundingClientRect();
    var windowHeight = (window.innerHeight

    function displayAd(adslot)
    if (window.browsitag && adslot.id !== “Healio5Interstitial” && window.location.pathname.indexOf(“clinical-guidance/”) 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;

    var posBuffer = -50;
    var distance = (parseInt(thisAd.getAttribute(“data-distance”), 10));
    if (distance > 49)
    distance = distance – 48; // account for fixed 48px margin

    //first mr on desktop
    if (distance === 0 && mobileAd === false)
    var classNameHolder = thisAd.className;
    thisAd.className = thisAd.getAttribute(“data-cssclass”);

    if (thisAd.classList.contains(“ad__medium-rectangle”))
    $j(“.sticky-ad”).removeClass(“sticky-ad”);
    thisAd.classList.add(“sticky-ad”);

    thisAd.setAttribute(“data-adrendered”, “2”);

    var adSlot =
    id: thisAd.getAttribute(‘id’),
    name: thisAd.getAttribute(‘data-slotname’),
    dimensions: eval(thisAd.getAttribute(‘data-slotdimensions’)),
    adUnitPath: ‘/136749668/’ + thisAd.getAttribute(‘data-slotname’)

    displayAd(adSlot);

    if (Array.isArray(ads) && ads.length > 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;
    else
    // We have a distance restriction
    // Find the previous sibling that is an ad
    var prevAd = thisAd.previousElementSibling;
    while (prevAd !== null && prevAd !== undefined && !prevAd.classList.contains(“ad-unit”))
    prevAd = prevAd.previousElementSibling;

    //wait until the previous ad has been considered viewable before loading the next ad
    if (mobileAd === false && prevAd !== undefined && prevAd !== null && !window.viewedAds.includes(prevAd.id))
    return false;

    var prevSibling = thisAd.previousElementSibling;
    var prevSiblingOffset = (prevSibling !== undefined && prevSibling !== null ? (prevSibling.offsetTop + prevSibling.offsetHeight) : 0);
    var diff = (prevSiblingOffset > 0 ? (prevSiblingOffset – (prevAd != undefined ? (prevAd.offsetTop + prevAd.offsetHeight) : 0)) : 0);
    var padding = ((diff = 410)
    if (padding > 0 && mobileAd === false)
    thisAd.style.setProperty(‘padding-bottom’, (padding + “px”));

    var classNameHolder2 = thisAd.className;
    thisAd.className = thisAd.getAttribute(“data-cssclass”);
    //check if ad is in view
    if (isInView(thisAd, posBuffer, mobileAd))
    thisAd.setAttribute(“data-adrendered”, “3”);

    if (!mobileAd)
    $j(“.sticky-ad”).removeClass(“sticky-ad”);
    thisAd.classList.add(“sticky-ad”);

    var slotid2 = thisAd.getAttribute(‘id’);
    var slotname2 = thisAd.getAttribute(‘data-slotname’);
    var slotdimensions2 = eval(thisAd.getAttribute(‘data-slotdimensions’));
    var slotpath2 = ‘/136749668/’ + slotname2;
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(
    slotDimensions: slotdimensions2
    );
    if (!Array.isArray(slotdimensions2) && slotdimensions2.length > 0)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(‘Slot Dimensions MUST be an array of [width,height] values’);
    if (Array.isArray(ads) && ads.length > 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;

    if (!Array.isArray(slotdimensions2[0]) && slotdimensions2[0].length === 2)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(‘Slot Dimensions MUST be an array of [width,height] values’);
    if (Array.isArray(ads) && ads.length > 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;

    if (console.log && window.queryString.verbose === ‘1’)
    console.log(
    slotpath: slotpath2,
    slotDimensions: slotdimensions2,
    slotid: slotid2
    );

    var adSlot2 =
    id: thisAd.getAttribute(‘id’),
    name: thisAd.getAttribute(‘data-slotname’),
    dimensions: eval(thisAd.getAttribute(‘data-slotdimensions’)),
    adUnitPath: ‘/136749668/’ + thisAd.getAttribute(‘data-slotname’)

    var diff = (contentBottom – projectedBottom);

    displayAd(adSlot2);

    if (Array.isArray(ads) && ads.length > 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;

    thisAd.setAttribute(“style”, null);
    thisAd.classList.add(“ad-unit-waiting”); // 0)
    return tryRenderAdSlot(ads, mobileAd);

    return true;
    }

    function adRender(mobileAd)
    if (mobileAd === undefined

    //mobile only
    function moveAds()

    var eArr = Array.prototype.slice.call(isLIs ? ul.querySelectorAll(“li”)
    : (isCurrentIssue ? currentIssues
    : articleContainer.querySelectorAll(“p, ul, video-js, [player_type=’brightcove’],[navigation_type=’collection’]”)));

    var goodeles = [];
    eArr.forEach(function (ele) ele.tagName === “UL”)
    else
    goodeles.push(ele);

    );

    eArr = goodeles;

    if (console.log && window.queryString.verbose === ‘1’)
    console.log(
    list: eArr
    );

    var adArr = Array.prototype.slice.call(document.getElementsByClassName(“ad-mobile-dyn”)).reverse();
    if (adArr === undefined || adArr === null || adArr.length 1 || e.innerText.length > 125 || e.classList.contains(“article__video-player”) || e.tagName === “VIDEO-JS” || e.getAttribute(“player_type”) !== null) && (e.closest(“.trust-box”) === null || e.closest(“.trust-box”) === undefined) || e.classList.contains(“video-page-nav__primary”))
    firstE = e;
    return true;

    }
    return true;
    });
    }
    if (firstE === undefined || firstE === null)
    adArr.forEach(function(e) $j(e).remove(); );
    return false;

    var firstAd = adArr.pop();
    var li0 = document.createElement(“LI”);
    li0.className = “ad-placeholder d-lg-none”;
    li0.appendChild(firstAd);
    firstE.parentNode.insertBefore(isLIs ? li0 : firstAd, firstE.nextSibling);
    var adPos = (firstE.getBoundingClientRect().bottom + 300);

    var nextAd = adArr.pop();
    eArr.forEach(function (e) );

    // cleanup
    if (nextAd !== undefined && nextAd !== null)
    nextAd.parentNode.removeChild(nextAd);
    adArr.forEach(function (a)
    a.parentNode.removeChild(a);
    );
    adRender(true);
    return true;
    }

    function lazyload() {
    if (window.adRenderRunning === true)
    return false;
    if (document.getElementsByClassName(“ad-unit-waiting”).length = 768) {
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: Device OK”);
    // trigger the popup ad if one exists and we meet the requirements
    if ($(‘.ad-modal’).length > 0 && $(‘.ad-modal’).find(‘.popup-ad’).length > 0) {
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: Found Modal”);
    var popupAd = $(‘.ad-modal’).find(‘.popup-ad’)[0];
    var loggedin = false;
    if ($j.jStorage.storageAvailable() === true) loggedin = $j.jStorage.get(“ContactID”, “00000000-0000-0000-0000-000000000000”).indexOf(“00000000-0000-0000-0000-000000000000”) > -1;
    if ($j.cookie(‘interstitial’) === undefined) {
    if (loggedin||
    $j.cookie(‘page_view_count’) === undefined ||
    parseInt(“4”) === 0 ||
    (!loggedin && ((parseInt($j.cookie(‘page_view_count’)) + 1) 0)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: Password Reset in Progress”);
    return false;

    if ($j(‘.modal’).is(“:visible”))
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: Another Modal is Currently Showing.”);
    $j(‘.modal:visible’).one(“hidden.bs.modal”, function ()
    tryRenderPopup();
    )
    return false;

    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: In focus”);
    // ok, we’ve met all of the requirements.
    googletag.pubads().addEventListener(‘slotOnload’, function (event) {
    if (!event.isEmpty) {
    window.setTimeout(function ()
    var slotElementId = event.slot.getSlotId().getDomId();
    var slotElement = document.getElementById(slotElementId);
    if (slotElement.classList.contains(‘popup-ad’) && $(slotElement).html().length > 0)
    $(“#modal” + slotElementId).on(‘shown.bs.modal’, function ()
    $j.cookie(‘interstitial’, ‘1’,
    domain: ”,
    path: ‘/’
    );
    window.setTimeout(function ()
    $(“#modal” + slotElementId).modal(‘hide’);
    , 15000);
    );
    $(“#modal” + slotElementId).modal(“show”);

    , adLoadDelay);
    }
    });

    popupAd.setAttribute(“data-adrendered”, “3”);
    var adSlot3 =
    id: popupAd.getAttribute(‘id’),
    name: popupAd.getAttribute(‘data-slotname’),
    dimensions: eval(popupAd.getAttribute(‘data-slotdimensions’)),
    adUnitPath: ‘/136749668/’ + popupAd.getAttribute(‘data-slotname’)

    try
    displayAd(adSlot3);
    catch (err3)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(err3);

    }
    }
    }
    } else
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“Try Render Popup: Device too narrow ( less than 768px )”);

    return true;
    }

    function firstLoad(isMobile, adLoadDelay)
    if (isMobile)
    window.setTimeout(function ()
    moveAds();
    , (adLoadDelay * 2));
    else
    adRender();

    return true;

    function adinit(retry) ;
    var url = window.location.href.toLowerCase();
    var referrer = document.referrer.toLowerCase();

    if ($j.cookie(‘tt’) !== undefined)
    window.trafficmedium = $j.cookie(‘tt’);
    else referrer.indexOf(“gbraid=”) > -1

    if ($j.cookie(‘ts’) !== undefined)
    window.trafficsource = $j.cookie(‘ts’);

    else if (window.trafficmedium === “Paid”)
    else
    if (referrer.indexOf(“google”) > -1)
    window.trafficsource = “google search”;

    if ($j.cookie(‘ts’) === undefined && window.trafficsource !== undefined && window.trafficsource !== null)
    $j.cookie(‘ts’, window.trafficsource, domain: ”, path: ‘/’ );

    window.Context.isMobile = ((window.Context.isMobile)
    //mobile
    if (isMobile)
    $j(“.article__content > p, .article__content > ul, .paywall > p”).first().after(“”);
    $j(“.related__container”).first().before(“”);

    if ($j(“#TopLeaderboard”).length > 0)
    $j(“#TopLeaderboard”).remove();
    if ($j(“#BottomLeaderboard”).length > 0)
    $j(“#BottomLeaderboard”).remove();

    if (screen.width 0)
    $j(“#modalHealio5Interstitial”).remove();

    }

    if (window.location.hostname.split(‘.’)[0] !== ‘www’ || window.queryString.notarget !== undefined) googletag.pubads().setTargeting(“usertype”, “slack”);

    //negatively target against bad words
    var bodyText = $j(‘body’).clone().find(‘script’).remove().end().find(‘style’).remove().end().text().trim();
    var badWords = [‘coronavirus’, ‘covid’, ‘covid19′,’covid 19’];
    var foundWords = [];
    badWords.forEach(function(value)
    var regex = new RegExp(value, ‘gi’);
    var res2=bodyText.match(regex);
    if (res2 && res2.length > 0)
    foundWords.push(value);
    );
    if (foundWords && foundWords.length > 0)
    console.log(‘Found bad words: ‘ + foundWords.join());
    googletag.pubads().setTargeting(“keyword”, foundWords.join());

    if (window.queryString.notarget === undefined || window.queryString.notarget === ”)

    /*
    if (window.Visitor !== undefined && window.Visitor !== “” && window.Visitor !== null) window.Visitor.type === “DC”)
    return false;

    var userisp = window.Visitor.isp;
    var badisps = [“XLHost.com Inc”,
    “GTHost”,
    “US Dedicated”,
    “Cybercon.com”,
    “LeaseWeb USA Inc.”,
    “CloudFlare Inc.”,
    “Nobis Technology Group LLC”,
    “Akamai Technologies Inc.”,
    “Secured Servers LLC”,
    “Joe’s Datacenter LLC”,
    “HostDime.com Inc.”,
    “Zscaler Inc.”,
    “NOC4HOSTS Inc.”,
    “Level 3 Communications Inc.”,
    “DirectSpace Networks LLC.”,
    “Host Virtual Inc”,
    “Microsoft Corporation”,
    “Amazon Technologies Inc.”,
    “Google LLC”,
    “Amazon.com Inc.”,
    “Ventelo Hosting AS”,
    “SurfControl Inc.”,
    “Total Server Solutions L.L.C.”
    ];
    if (badisps.includes(userisp))
    return false;

    */
    var specfunc = function()
    var specs = [];
    if (window.Visitor && window.Visitor.usercontentspecialty)
    specs.push(window.Visitor.usercontentspecialty.replace(/[^a-zA-Z&/s]/g, ”));

    if (window.localStorage)
    var specstorage = localStorage.getItem(“contentspecialties”);
    specstorage = specstorage ? specstorage.split(‘,’) : [];

    if (contentSpecialty && contentSpecialty !== ” && specstorage.indexOf(contentSpecialty) === -1)
    specstorage.splice(0,0,contentSpecialty.replace(/[^a-zA-Z&/s]/g, ”));

    if(specstorage.length > 3)
    specstorage.splice(2, 1);

    localStorage.setItem(“contentspecialties”, specstorage.toString());

    specs = specs.concat(specstorage);

    return specs.join();
    ;

    var specstring = specfunc();

    if (specstring) googletag.pubads().setTargeting(“specialty”, specstring);

    if (contentSpecialty !== ”)
    googletag.pubads().setTargeting(“contentspecialty”, contentSpecialty);

    // use collection name instead of subspec when available
    if ((“”).length > 0)
    googletag.pubads().setTargeting(“collection”, “”);
    else
    if (contentSubspecialty !== ”)
    googletag.pubads().setTargeting(“contentsubspecialty”, contentSubspecialty);

    if (contentType !== ”)
    googletag.pubads().setTargeting(“contenttype”, contentType);
    if (window.adRenderDocumentItemId !== ”)
    googletag.pubads().setTargeting(“documentid”, window.adRenderDocumentItemId);
    if (window.trafficmedium !== undefined)
    googletag.pubads().setTargeting(“trafficmedium”, window.trafficmedium);
    if (window.trafficsource !== undefined)
    googletag.pubads().setTargeting(“trafficsource”, decodeURI(window.trafficsource));

    window.viewedAds = [];
    googletag.pubads().addEventListener(‘impressionViewable’,
    function (event)
    var slotname = event.slot.getAdUnitPath();
    window.viewedAds.push(slotname.replace(“/136749668/Healio5_”, “”));

    var eventparams =
    ‘event_category’:’Viewability’,
    ‘event_action’: ‘Viewed’,
    ‘event_label’: slotname.replace(“//”, “/”),
    ‘non_interaction’: true,
    ‘value’: 0
    ;
    if (typeof (gtag) !== “undefined”)
    gtag(‘event’, eventparams.event_action, eventparams);

    );

    googletag.pubads().addEventListener(‘slotRenderEnded’, function(event) {
    if (navigator.userAgent.toLowerCase().indexOf(‘firefox’) > -1)
    var slotElementId = $j(“#” + event.slot.getSlotElementId()).parent().parent()[0].id;
    if (event.size.length > 1)
    console.group(‘Slot’, slotElementId, ‘finished rendering and its firefox’);
    console.log(‘Size:’, event.size);
    console.log(slotElementId);
    console.groupEnd();
    var h = event.size[1] + 8;
    if (slotElementId.toLowerCase().includes(“medium”))
    $j(“#” + slotElementId + ” div iframe”).css( “max-width”: “320px”, “width”: “308px”, “position”: “relative”, “right”: “8px”, “height”: h );

    else if (slotElementId.toLowerCase().includes(“topleaderboard”))
    $j(“#” + slotElementId + ” div iframe”).css( “max-width”: “744px”, “width”: “736px”, “height”: “99px”);

    });

    window.headerbid = false;
    if (window.headerbid && typeof (window.pbjs) !== ‘undefined’ && typeof (getPlatformUid) === ‘function’ && window.Visitor.location.country !== /*===*/ ‘US’ && contentSpecialty.length > 1) {
    window.headerbid = true;

    googletag.cmd.push(function ()
    googletag.pubads().disableInitialLoad();
    );

    var PREBID_TIMEOUT = 1000;
    var FAILSAFE_TIMEOUT = 3000;

    var pbjs = window.pbjs || ;
    pbjs.que = pbjs.que || [];

    pbjs.setBidderConfig({ bidders: [‘doceree’], config: doceree: context: data: , user: data: hashedEmail: “”, hashedNPI: “”, hashedGMC: “”, specialization: contentSpecialty, platformUid: getPlatformUid() });

    pbjs.que.push(function ()
    pbjs.addAdUnits(adUnits);
    pbjs.requestBids(
    bidsBackHandler: initAdserver,
    timeout: PREBID_TIMEOUT
    );
    );

    var adUnits = [

    code: ‘doceree’,
    sizes: [
    [728, 90]
    ],
    bids: [
    bidder: ‘doceree’,
    params: window.location.href,

    ]
    ,

    code: ‘doceree’,
    sizes: [
    [300, 250]
    ],
    bids: [
    bidder: ‘doceree’,
    params:
    placementId: ‘DOC_k72p6kkl9rfezmh’,
    publisherUrl: document.URL
    ]

    ];

    function initAdserver()
    if (pbjs.initAdserverSet) return;
    pbjs.initAdserverSet = true;
    googletag.cmd.push(function ()
    pbjs.que.push(function ()
    pbjs.setTargetingForGPTAsync();
    googletag.pubads().refresh();
    );
    );

    // in case PBJS doesn’t load
    setTimeout(function ()
    initAdserver();
    , FAILSAFE_TIMEOUT);
    }

    window.googletag.cmd.push(function ()
    //window.googletag.pubads().collapseEmptyDivs(true);
    window.googletag.enableServices();
    );

    firstLoad(isMobile, adLoadDelay);

    var efs = [“Central”, “Hot Topics”, “Awareness”, “Video Perspectives”, “Clinical Case Review”];
    var isEf = new RegExp(efs.join(“|”)).test(“”);

    if (!isEf)
    tryRenderPopup(adLoadDelay);

    googletag.pubads().addEventListener(‘slotOnload’, function (event)
    var slotElementId = event.slot.getSlotId().getDomId();
    var slotElement = document.getElementById(slotElementId);

    if (slotElement.classList.contains(‘popup-ad’))
    return false;

    if (!event.isEmpty)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(event.slot.getSlotId() + ‘ Ad placed, checking for content.’);
    if ($(“#” + event.slot.getSlotId().getDomId()).html().length > 0)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(event.slot.getSlotId() + ‘We seem to have content.’);
    // once we have a rendered ad slot it’s safe to remove all other stickiness
    /*document.getElementsByClassName(“sticky-ad”).forEach(function (e)
    if (e.id !== $j(“#” + slotElementId).parent().parent()[0].id)
    e.classList.remove(“sticky-ad”);
    );*/
    else
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(event.slot.getSlotId() + ‘We do not seem to have content.’);
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(event.slot.getSlotId() + ‘Ad empty, setting layout.’);
    $(“#” + event.slot.getSlotId().getDomId()).closest(‘.ad-unit’).remove();

    else
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(event.slot.getSlotId() + ‘ DFP error – Ad empty, setting layout.’);
    $(“#” + event.slot.getSlotId().getDomId()).closest(‘.ad-unit’).remove();

    return true;
    );

    if (!isMobile)
    var scrollTimeout;
    var throttle = 100;

    $(window).on(‘scroll’, function ()
    if (!scrollTimeout)
    scrollTimeout = setTimeout(function ()

    lazyload();
    scrollTimeout = null;
    , throttle);

    );

    return true;
    }

    $j(document).ready(function ()
    if (window.Visitor === undefined && window.sessionStorage)
    window.Visitor = JSON.parse(sessionStorage.getItem(“visitor”, “”));
    if (window.Visitor !== undefined && window.Visitor !== “” && window.Visitor !== null && !window.Visitor.isbot && window.Visitor.type !== “DC”)
    adinit();
    else
    window.addEventListener(“globalsloaded”,
    function ()
    //dont run if we’re a bot
    if (window.Visitor !== undefined && window.Visitor !== “”)
    if (window.sessionStorage)
    sessionStorage.setItem(“visitor”, JSON.stringify(window.Visitor), “sessionStorage”);
    if (window.Visitor !== undefined && window.Visitor !== “” && window.Visitor !== null && !window.Visitor.isbot && window.Visitor.type !== “DC”)
    adinit();

    );

    );

    window.queryString = (window.queryString || );
    window.location.search.substring(1).split(‘&’).forEach(function (param)
    var kvp = param.split(‘=’);
    if (kvp.length === 2 && kvp[0].length > 0 && kvp[1].length > 0 && !window.queryString.hasOwnProperty(kvp[0]))
    Object.defineProperty(window.queryString, kvp[0],
    value: kvp[1]
    );
    );

    if (window.queryString.forcemobile === ‘1’)
    window.orientation = window.orientation || ;

    function getUrlQueryStringValueByName(name)
    name = name.replace(/[[]/, ‘\[‘).replace(/[]]/, ‘\]’);
    var regex = new RegExp(‘[\?&]’ + name + ‘=([^]*)’);
    var results = regex.exec(location.search);
    return results === null ? ” : decodeURIComponent(results[1].replace(/+/g, ‘ ‘));
    ;

    ‘).text(response).attr(‘type’, ‘text/javascript’).attr(‘id’, i + ‘_head’).insertBefore($j(‘head’).find(‘script’).first()); else $j(‘head’).append($j(‘



    Source link

    By