‘});t.prototype=n.extend(,n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function()return t.DEFAULTS;t.prototype.setContent=function()n.find(“.popover-title”).hide();t.prototype.hasContent=function()this.getContent();t.prototype.getContent=function();t.prototype.arrow=function()return this.$arrow=this.$arrow;t.prototype.tip=function()(this.$tip=n(this.options.template)),this.$tip;i=n.fn.popover;n.fn.popover=function(i)return this.each(function());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)var u,f=n.proxy(this.process,this);this.$element=n(i).is(“body”)?n(window):n(i);this.$body=n(“body”);this.$scrollElement=this.$element.on(“scroll.bs.scroll-spy.data-api”,f);this.options=n.extend(,t.DEFAULTS,r);this.selector=(this.options.targett.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()this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);if(u&&i=t[n]&&(!t[n+1]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());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)this.hasErrors())&&a.preventDefault(),d.prototype.toggleSubmit=function()this.hasErrors()),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)return/(([^()[]\.,;:s@”]+(.[^()[]\.,;:s@”]+)*)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”))))$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”))i.indexOf(“https://”)>-1)&&-1===i.indexOf(o);if($j.trim($j(this).text()),i)if(0===i.indexOf(“#”))return!0;”_self”===a&&-1===i.indexOf(“javascript:”)&&-1===i.indexOf(“#”)&&(t.preventDefault(),setTimeout(“window.location='”+i+”‘”,100)),TrackModule(this,e,”Link Clicked”,n,r?1:0))),$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())””===n)&&(n=$j(this).val()),(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),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)[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;oe;e++)var i=h[e];t[i]=0return tfunction n(t)function o()if(!d)d=!0;var e=document.createElement(“div”);e.style.width=”200px”,e.style.padding=”1px 2px 3px 4px”,e.style.borderStyle=”solid”,e.style.borderWidth=”1px 2px 3px 4px”,e.style.boxSizing=”border-box”;var i=document.bodyfunction 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()


    September 22, 2022

    1 min read


    ACOG CEO Maureen G. Phipps, MD, MPH, FACOG, wrote a letter addressed to President Joe Biden and Vice President Kamala Harris in opposition to a recently proposed 15-week abortion ban.

    The proposed legislation was introduced by Sen. Lindsey Graham of South Carolina on Sept. 13, who aims to prohibit abortions after 15 weeks’ gestation “when an unborn child can feel pain,” according to a press release on Graham’s website. The law would put the United States in line with most European nations that prohibit abortion beyond 15 weeks’ gestation, the release said.

    Maureen G. Phipps

    “This arbitrary gestational age limit is not grounded in science and medical evidence and would dramatically interfere with the ability of patients to receive timely medical care, including prenatal care, miscarriage management and abortion care,” Phipps wrote on behalf of ACOG.

    In the letter, Phipps called on the White House to “resolutely and definitively” reject federal abortion bans such as the one proposed by Graham, as patients have already experienced delays and denials of medical care in the wake of the Supreme Court’s decision in Dobbs v. Jackson Women’s Health Organization.

    “As bans continue to take effect in states across the country, we are increasingly hearing from our members about the heartbreaking realities of closing clinics and turning patients away from needed care, and of delays in care due to lack of clarity in laws,” Phipps wrote. “We fear that these bans will have deadly consequences, further exacerbating the worsening maternal mortality crisis, within which 80% of deaths are preventable.”

    References:


    // ReSharper disable PossiblyUnassignedProperty
    // ReSharper disable Html.EventNotResolved
    window.adRenderDocumentItemId = “374E666C-9B30-4E8F-A444-E9F56CCE3EA9”;
    function isInView(thisAd, posBuffer, isMobile) bounding.bottom >= -(posBuffer))));

    function displayAd(adslot)
    if (window.browsitag && adslot.id !== “Healio5Interstitial”)
    window.browsitag.cmd.push(function ()
    var sizes = adslot.id === “TopLeaderboard” ? [ w: 728, h: 90 ] : [ w: 300, h: 600 , w: 300, h: 250 ];
    if (isMobile.any())
    sizes = [ w: 300, h: 250 ];
    var position = isMobile.any() ? “in-content” : (adslot.id === “TopLeaderboard” ? “top” : “right-rail”);
    window.browsitag.display(adslot.id,

    sizes: sizes,
    adUnit: adslot.adUnitPath,
    disableViewabilityOptimization: false,
    positionTag: position
    );
    );
    else
    var googleSlot = window.googletag.defineSlot(adslot.adUnitPath, adslot.dimensions, adslot.id).addService(window.googletag.pubads());
    window.googletag.display(googleSlot);

    function tryRenderAdSlot(ads, mobileAd) {
    if (mobileAd === undefined || mobileAd === null)
    mobileAd = false;
    var thisAd = (Array.isArray(ads) ? ads.pop() : ads);
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(‘Trying to render ad ‘ + thisAd.id + ‘ | Is mobile? ‘ + mobileAd);
    if (thisAd.getAttribute(“data-adrendered”) !== “0”)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(“ad already rendered, skipping”);
    if (Array.isArray(ads) && ads.length > 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()
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(‘Moving ad slots…’);

    var currentIssues = document.querySelectorAll(“.current-issue”);
    var isCurrentIssue = currentIssues !== null && currentIssues.length > 0;

    // need to include the “article” tag here
    var acArr = document.querySelectorAll(isCurrentIssue ? “.news-page__left-col” : “.article__content, article”);
    if (acArr === undefined

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

    var goodeles = [];
    eArr.forEach(function (ele)
    //only include naked p tags and brightcove video p tags and definitely not intense debate p tags
    if (ele.tagName === “VIDEO-JS”)
    if (ele.parentElement.tagName !== “P”)
    goodeles.push(ele);

    else if (ele.tagName === “P”) ele.classList.contains(“BodyCxSpMiddle”)
    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) nextAd === null)
    if (console.log && window.queryString.verbose === ‘1’)
    console.log(‘nextAd is undefined or null’);
    return false;

    var space = 200;
    if(“Women’s Health & OB/GYN”===”Infectious Disease”)
    space = space + 200;
    /* parseInt((nextAd.getAttribute(“data-distance”) );

    // 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)
    $j.cookie(‘page_view_count’) === undefined , 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)
    //mobile
    if (isMobile)
    $j(“.article__content > p”).first().after(“”);

    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)

    if (window.Visitor.isbot
    */
    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.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