traits in U.S. depression prevalence From 2015 to 2020: The Widening medicine gap - American Journal of Preventive medication

Open GPT ConsoleOpen Oracle key words

Refresh Values

Property price status version advert File Disable advertisements Flag environment Moat Init Moat ready Contextual in a position Contextual URL Contextual initial Segments Contextual Used Segments AdUnit SubAdUnit customized targeting advert routine Invalid advert Sizes "); } if (window.area.hostname.toLowerCase().indexOf('.literatumonline.') >= 0) gpt_IsProd = false; gptTestENV_Debug = 'check environment Detected'; else gptTestENV_Debug = 'production ambiance Detected'; spoil; default: //mobilephone gptContextualEnabled = false; if (window.place.hostname.toLowerCase().indexOf('.literatumonline.') >= 0) gpt_IsProd = false; gptTestENV_Debug = 'check ambiance Detected'; else gptTestENV_Debug = 'creation ambiance Detected'; wreck; } } //-------------------------------------------------------------------------- feature gpt_GetNonCMEArticle() var url; $('.articleCitation').every(characteristic (i, obj) if ($(obj).discover('.toc__item__detials').length > 0) var itemDetails = $(obj).first().discover('.toc__item__detials'); var x1 = $(itemDetails).find("img[title~='Education']").size; var x2 = $(itemDetails).discover("img[title~='CME']").length; if (x1 == 0 && x2 == 0) var itemLink = $(itemDetails).first().discover('.toc__item__title'); var linkCount = $(itemLink).first().discover("a:carries('CME')").size; if (linkCount == 0) url = $(itemLink).first().discover('a').attr('href'); return false; ); return url; //-------------------------------------------------------------------------- characteristic gpt_GetElapsedTime() var endTime = new Date(); var timeDiff = endTime - gpt_StartTime; //in ms // strip the ms timeDiff /= 1000; // get seconds return seconds = Math.round(timeDiff) + " seconds"; //-------------------------------------------------------------------------- feature gpt_CheckSSC() //examine for ScreenShot client var gpt_SSC = gpt_GetQuerystring('gpt_ssc', ''); if (gpt_SSC == '1') //it's the ScreenShotClient, disable MOAT IVT Detection $('#gpt-Variables').append(''); $('#gptm_data').val(0); gpt_Target("m_data"); //-------------------------------------------------------------------------- characteristic gpt_LocalSS(adTypeId) window.scrollTo(0, 0); gpt_Sleep(a thousand); gpt_ScrollToAd(adTypeId); gpt_PreTearsheet(adTypeId); //-------------------------------------------------------------------------- feature gpt_InitScripts() if (gpt_AdFile == "PU") if (gpt_IsProd) gpt_ContextualURL = gpt_CheckForNULL($('#canonicalurl').val()); if (gpt_ContextualURL === null) gpt_ContextualURL = window.region.href.split('?')[0].cut up('#')[0]; else gpt_ContextualURL = window.region.origin + gpt_ContextualURL; var useSSL = 'https:' == document.area.protocol; var gs = document.createElement('script'); gs.async = genuine; gs.type = 'text/javascript'; gs.src = (useSSL ? 'https:' : 'http:') + '//elsevier.gscontxt.net/multizone/channels.cgi?url=' + encodeURIComponent(gpt_ContextualURL); gs.onload = characteristic () gpt_ContextualReady = proper; ; doc.head.appendChild(gs); else //JBS-cellphone-Lancet var useSSL = 'https:' == doc.vicinity.protocol; var gads = document.createElement('script'); gads.async = actual; gads.class = 'text/javascript'; gads.src = (useSSL ? 'https:' : 'http:') + '//securepubads.g.doubleclick.web/tag/js/gpt.js'; doc.head.appendChild(gads); if (gpt_IsProd && gptContextualEnabled) gpt_ContextualURL = window.place.href.split('?')[0].split('#')[0]; var gs = document.createElement('script'); gs.async = proper; gs.classification = 'text/javascript'; gs.src = (useSSL ? 'https:' : 'http:') + '//elsevier.gscontxt.net/multizone/channels.cgi?url=' + encodeURIComponent(gpt_ContextualURL); gs.onload = function () gpt_ContextualReady = proper; ; document.head.appendChild(gs); var elsevierMoatHeader = doc.createElement('hyperlink'); elsevierMoatHeader.rel = 'preload'; elsevierMoatHeader.as = 'script'; elsevierMoatHeader.src = (useSSL ? 'https:' : 'http:') + '//z.moatads.com/elsevierheader150204004183/moatheader.js'; document.head.appendChild(elsevierMoatHeader); var elsevierMoatAds = document.createElement('link'); elsevierMoatAds.rel = 'preconnect'; elsevierMoatAds.src = (useSSL ? 'https:' : 'http:') + '//mb.moatads.com'; doc.head.appendChild(elsevierMoatAds); var moatHeader = doc.createElement('script'); moatHeader.async = proper; gads.classification = 'text/javascript'; moatHeader.src = (useSSL ? 'https:' : 'http:') + '//z.moatads.com/elsevierheader150204004183/moatheader.js'; doc.head.appendChild(moatHeader); //-------------------------------------------------------------------------- async function gpt_CheckForMOATInit() //determine every 1/10 of a second unless MOAT is Loaded or 1 2d timeout if (gpt_MOATInitAttempts gpt_CheckForMOATInit(); , one hundred); } else } //-------------------------------------------------------------------------- function gpt_CheckForMOATReady() //assess every 1/10 of a 2d except MOAT is capable or 1 2nd timeout if (gpt_MOATReadyAttempts gpt_CheckForMOATReady(); , one hundred); } else //TIMEOUT: MOAT now not capable gptMoatReady_Debug = 'Timeout Expired'; gpt_CheckForContextualReady(); } //-------------------------------------------------------------------------- feature gpt_CheckForContextualReady() //investigate every 1/10 of a 2nd except Contextual is competent or 2 2d timeout if (gpt_IsProd && gptContextualEnabled) //Enabled if (gpt_ContextualReadyAttempts gpt_CheckForContextualReady(); , one hundred); else //LOG TIMEOUT error //get rid of FOR NOW (may still LOG TO A DIFF region) //TIMEOUT: Contextual no longer competent $('#gpt_GrapeShotDebugBtn').eradicate(); gptContextualURL_Debug = gpt_ContextualURL; gptContextualReady_Debug = 'Timeout Expired'; gptContextualInit_Debug = ""; gpt_InitAds(); } else //not Enabled $('#gpt_GrapeShotDebugBtn').remove(); change (gpt_AdFile) case 'PU': case 'LANCET': case 'JBS': gptContextualURL_Debug = 'now not enabled outdoor of creation'; gptContextualReady_Debug = 'not enabled outside of construction'; gptContextualInit_Debug = 'not enabled outside of creation'; break; case "CELLJOURNAL": case "CELLBUCKET": gptContextualReady_Debug = 'not enabled on telephone'; gptContextualInit_Debug = 'no longer enabled on phone'; gptContextualURL_Debug = 'not enabled on telephone'; smash; gpt_InitAds(); } //-------------------------------------------------------------------------- function GPT_GetPageByURL() var host = window.region.host.toLocaleLowerCase() var localpath = window.location.pathname.toLocaleLowerCase(); ///verify for mobilephone.com if (host.indexOf('mobile.com') >= 0) return null; ///investigate for telephone.com (marlin-stag) if (host.indexOf('www-mobilephone-com') >= 0) return null; ///verify for Lancet if (host.indexOf('thelancet') >= 0) return null; if (localpath.indexOf('/article/') >= 0) return 'article.fulltext'; if (localpath.indexOf('/motion/dosearch') >= 0) return 'search.searchResults'; if (localpath.indexOf('/content material/') >= 0) return 'periodical.editorial'; return 'periodical.domestic'; //-------------------------------------------------------------------------- feature gpt_CheckForNULL(x, valueifnull) if (typeof valueifnull == "undefined") valueifnull = null; if (typeof x == 'undefined') return valueifnull; if (x == null) return valueifnull; if (x == "null") return valueifnull; if ($.trim(x) == '') return valueifnull; return x; //-------------------------------------------------------------------------- function gpt_GetAdditionalTargeting() //provides page stage focused on of customized variables //the id (minus gpt) and the value might be used as a key-value pair //eg: //eg: goal issuepii=x $(".gpt-target").each and every(function (index) var gptTargetId = $(this).attr('id'); gptTargetId = gptTargetId.replace('gpt', '').toLowerCase(); if (gptTargetId !== '') gpt_Target(gptTargetId); ) //-------------------------------------------------------------------------- function gpt_GetQuerystring(key, default_) //characteristic to study querystring variables if (default_ === null) default_ = ''; key = key.change(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^]*)"); var qs = regex.exec(window.region.href); if (qs === null) return default_; else return qs[1]; //-------------------------------------------------------------------------- characteristic gpt_GetDFPTestId() //Get any request for a examine id from querystring and set customized targeting parameter var gptDFPTestId = gpt_GetQuerystring('dfptestid', ''); if (gptDFPTestId !== '') $('#gpt-Variables').append(''); $('#gptDFPTestId').val(gptDFPTestId); gpt_Target("DFPTestId"); //-------------------------------------------------------------------------- characteristic gpt_Target(targetName) //Set page level target if price is found if ($('#gpt' + targetName).length > 0) var targetValue = $('#gpt' + targetName).val(); if (targetValue !== '') targetValue = targetValue.change(/[^-a-z0-9]/ig, ''); //only allow a-z, 0-9 googletag.pubads().setTargeting(targetName.toLowerCase(), targetValue.toLowerCase()); gptCustomTargeting_Debug = gptCustomTargeting_Debug + targetName.toLowerCase() + ' = ' + targetValue.toLowerCase() + ''; //-------------------------------------------------------------------------- feature gpt_TargetAccessType() var currentAccessType = $('#gptAccessType').val(); if (typeof currentAccessType == "undefined") currentAccessType = ""; if (currentAccessType.indexOf('ANON_IP') >= 0) googletag.pubads().setTargeting("loggedin", "yes"); else gpt_Target("LoggedIn"); //-------------------------------------------------------------------------- async characteristic gpt_PreTearsheet(adTypeId) if (typeof adTypeId === "undefined") adTypeId = 0; //eradicate Elsevier Cookie policy observe if ($("#onetrust-consent-sdk").length > 0) $("#onetrust-consent-sdk").remove(); //JBS Modals if ($('.leadinModal').length > 0) $('.leadinModal').eradicate(); if ($('.leadinModal').size > 0) $('.leadinModal').eradicate(); if ($('.usabilla__overlay').length > 0) $('.usabilla__overlay').remove(); //Pendo if ($('._pendo-step-container').length > 0) $('._pendo-step-container').eliminate(); if ($('._pendo-e book-tt_').length > 0) $('._pendo-e book-tt_').eradicate(); if ($('._pendo-graphic').length > 0) $('._pendo-graphic').get rid of(); if ($('._pendo-badge-graphic').size > 0) $('._pendo-badge-photograph').remove(); change (gpt_AdFile) case "CELLJOURNAL": case "CELLBUCKET": //mobile bug repair on cell if (parseInt(adTypeId) == 5) $('.widget-horizontalAd').css('position', 'static'); $('.body-horizontalAd').css('monitor', 'block'); destroy; case "JBS": case "LANCET": objLeaderboard = ".container-leaderboard"; offset = fifty three; switch (parseInt(adTypeId)) case 3: //MPU case four: //SkyScraper //BUGFIX: exhibit Sidebar ad for JBS //skyscraper & mpu if ($('.widget-verticalAd').size > 0) $('.widget-verticalAd').css('display', 'block'); $('#backgroundLayer').css('screen', 'none'); //hide any Prestitial destroy; case 6: //Prestitial $('#backgroundLayer').css('monitor', 'block'); wreck; default: $('#backgroundLayer').css('screen', 'none'); //conceal any Prestitial smash; smash; //-------------------------------------------------------------------------- characteristic gpt_Sleep(ms) return new Promise(unravel => setTimeout(get to the bottom of, ms)); //-------------------------------------------------------------------------- async function gpt_ScrollToAd(adTypeId) if (typeof adTypeId === "undefined") adTypeId = 0; var adId = ""; var offset = 0; var objLeaderboard = ""; var gpt_ScrollToAd = authentic; change (gpt_AdFile) case "PU": //PracticeUpdate var hideOtherAds = true; $('#modalPrestitial').modal('conceal'); $('.jumbotron-welcome').disguise(); objLeaderboard = ".container-leaderboard"; offset = fifty three; change (parseInt(adTypeId)) case 2: //LeaderBoard, no Scroll crucial gpt_ScrollToAd = false; adId = "adSlot1"; ruin; case three: //MPU adId = "adSlot2"; break; case four: //SkyScraper adId = "adSlot3"; $('.most-study').cover(); destroy; case 5: //mobile, no Scroll obligatory gpt_ScrollToAd = false; adId = "adSlot1"; spoil; case 6: //Interstitial gpt_ScrollToAd = false; adId = "adSlot15"; await gpt_Sleep(1000); $(objLeaderboard).cover(); $('#modalPrestitial').unbind(); $('#modalPrestitial').modal(); ruin; case 7: //Native ad smash; case 10: //master partner hideOtherAds = false; gpt_ScrollToAd = false; spoil; default: //Unknown advert class gpt_ScrollToAd = false; adId = "adSlot1"; spoil; if (hideOtherAds) //conceal all other advertisements $('.advert-container').each and every(characteristic (i, obj) if (this.id !== adId) var tempParent = this.identity; tempParent = tempParent.change("adSlot", "adParent"); $("#" + tempParent).addClass('cover'); ); smash; case "JBS": objLeaderboard = ".js__adToHide"; offset = 80; swap (parseInt(adTypeId)) case 2: //Leaderboard gpt_ScrollToAd = false; $(".widget-verticalAd").hide(); spoil; case 5: //mobile //Scroll to correct gpt_ScrollToAd = false; ruin; case three: //MPU case four: //SkyScraper $(objLeaderboard).cover(); adId = $('.gpt-advert-described[data-adsize="sidebar"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; case 13: //Phone - Portrait case 14: //Phone - Landscape $(objLeaderboard).hide(); offset = 60; adId = 'gpt-Interscroller'; gpt_ScrollToAd = true; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; break; case "CELLJOURNAL": case "CELLBUCKET": objLeaderboard = ".js__adToHide"; offset = 260; switch (parseInt(adTypeId)) case 2: //Leaderboard gpt_ScrollToAd = false; $('.body-verticalAd').hide(); break; case 5: //Mobile //Scroll to Top gpt_ScrollToAd = false; break; case 3: //MPU case 4: //SkyScraper $(objLeaderboard).hide(); adId = $('.gpt-ad-defined[data-adsize="boombox"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; //Hide the second ad if found var tCount = 0; $(".widget.literatumAd.none.GPT-ad-placeholder.widget-horizontalAd.widget-compact-all").each(function (index) tCount += 1; if (tCount !== 1) $(this).hide(); ); break; case "LANCET": objLeaderboard = ".js__adToHide"; offset = 80; switch (parseInt(adTypeId)) case 2: //Leaderboard gpt_ScrollToAd = false; $('.body-verticalAd').hide(); break; case 5: //Mobile //Scroll to Top gpt_ScrollToAd = false; break; case 3: //MPU case 4: //SkyScraper $(objLeaderboard).hide(); adId = $('.gpt-ad-defined[data-adsize="skyscraper"').attr('id'); break; case 10: //MasterCompanion gpt_ScrollToAd = false; break; default: //Unknown Ad Type gpt_ScrollToAd = false; break; break; //Scroll to Top var gpt_container = $("html,body"); gpt_container.animate( scrollTop: 0, scrollLeft: 0 ); if (gpt_ScrollToAd) //If Adexists, scroll to it var gpt_scrollTo = $('#' + adId); if (gpt_scrollTo.length > 0) //Scroll to the Ad var gpt_topPosition = gpt_scrollTo.offset().top - gpt_container.offset().top + gpt_container.scrollTop(); if (gpt_topPosition > 0) gpt_container.animate( scrollTop: gpt_topPosition, scrollLeft: 0 ); if (gpt_topPosition - offset > 0 && offset > 0) gpt_container.animate( scrollTop: gpt_topPosition - offset, scrollLeft: 0 ); //-------------------------------------------------------------------------- async function gpt_CheckForCookiePolicy() var returnVal = false; if ($('#onetrust-accept-btn-handler').length > 0) $('#onetrust-accept-btn-handler').click(); returnVal = true; return returnVal; //-------------------------------------------------------------------------- function gpt_InitAds() var gpt_ResponsiveHomepage = false; switch (gpt_AdFile) case "JBS": case "CELLJOURNAL": case "CELLBUCKET": //Responsive Check if ($('#hdrHomeBrand').length > 0) gpt_ResponsiveHomepage = true; break; //InterScroller Check if (gpt_AdFile === "JBS") var gpt_InterScrollerEnabled = false; var gpt_InterScrollerInsertObj; if ($("#articleHeader").length > 0) //It's an article Page if ($('.article__sections > section').length > 0) gpt_InterScrollerEnabled = true; gpt_InterScrollerInsertObj = $(".article__sections > section"); else if ($('.toc__section').length > 0) //It's a TOC Page gpt_InterScrollerEnabled = true; gpt_InterScrollerInsertObj = $(".toc__section").first(); //Add the Interscroller if (gpt_InterScrollerEnabled) gpt_InterScrollerInsertObj.first().append($("#gpt-Interscroller").clone()); $("#gpt-Interscroller").remove(); $(".gpt-adinterscroller").addClass("gpt-ad"); googletag.cmd.push(function () var gptBoomBoxSizeMapping; var gptFluidMapping; var gptHomePageSidebarMapping; var gptCellHomePageSidebarMapping; var gptInterscrollerMapping; var gptLeaderboardSizeMapping; var gptMobileSizeMapping; var gptPrestitialMapping; var gptRectangleShortSizeMapping; var gptRectangleSizeMapping; var gptSideBarSizeMapping; var gptTallSizeMapping; var gptWideSizeMapping; var gptWideRectangleSizeMapping; //*********************************************** //Start Define Size mapping based on client Viewport //*********************************************** if (gpt_AdFile === 'PU') gptTallSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 600], [160, 600], [120, 600]]). addSize([0, 0], []). build(); gptRectangleSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 250]]). addSize([0, 0], []). build(); gptRectangleShortSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[300, 250], [320, 50], [300, 50]]). addSize([0, 0], [[300, 250], [320, 50], [300, 50]]). construct(); gptWideSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[728, 90]]). addSize([760, 0], [[728, 90], [320, 50], [300, 50]]). addSize([0, 0], [[320, 50], [300, 50]]). build(); gptWideRectangleSizeMapping = googletag.sizeMapping(). addSize([992, 0], []). addSize([760, 0], [[320, 50], [300, 50], [300, 250]]). addSize([0, 0], [[320, 50], [300, 50], [300, 250]]). build(); gptMobileSizeMapping = googletag.sizeMapping(). addSize([0, 0], [[320, 50], [300, 50]]). construct(); gptFluidMapping = googletag.sizeMapping(). addSize([0, 0], ['fluid']). construct(); gptPrestitialMapping = googletag.sizeMapping(). addSize([760, 0], [[1, 1]]). construct(); else //JBS-phone-LANCET gptLeaderboardSizeMapping = googletag.sizeMapping(). addSize([992, 0], [[728, 90]]). // desktop addSize([768, 0], [[728, 90]]). // tablet panorama addSize([0, 0], [[320, 50], [300, 50]]). // telephone & tablet Portrait construct(); gptHomePageSidebarMapping = googletag.sizeMapping(). addSize([2090, 795], [[300, 600], [300, 250], [160, 600], [120, 600]]). addSize([1910, 795], [[160, 600], [120, 600]]). addSize([0, 0], []). build(); gptCellHomePageSidebarMapping = googletag.sizeMapping(). addSize([2090, 795], [[300, 600], [300, 250], [336, 280], [160, 600], [120, 600]]). addSize([1910, 795], [[160, 600], [120, 600]]). addSize([0, 0], []). build(); gptSideBarSizeMapping = googletag.sizeMapping(). addSize([1140, 795], [[300, 600], [160, 600], [120, 600], [300, 250]]). // SkyScraper - computer (Require min 630 vertical) addSize([1140, 445], [[300, 250]]). // BoomBox Fall lower back - computing device (Require min 280 vertical) addSize([0, 0], []). // telephone construct(); gptBoomBoxSizeMapping = googletag.sizeMapping(). addSize([768, 0], [[300, 250], [336, 280]]). // laptop & tablet panorama addSize([0, 0], []). // mobilephone construct(); gptFluidMapping = googletag.sizeMapping(). addSize([0, 0], ['fluid']). construct(); gptPrestitialMapping = googletag.sizeMapping(). addSize([600, 700], [[1, 1]]). // desktop & tablet landscape addSize([0, 0], []). // telephone construct(); gptInterscrollerMapping = googletag.sizeMapping(). addSize([1140, 445], []). addSize([1024, 768], [[1024, 768]]). addSize([768, 1024], [[768, 1024]]). addSize([480, 320], [[480, 320]]). addSize([320, 480], [[320, 480]]). build(); //*********************************************** //end define size mapping in accordance with customer Viewport //*********************************************** //*********************************************** //start detection for advert slots on page //*********************************************** var gptMasterPage = gpt_CheckForNULL($('#gptPage').val()); var gptMasterSite; if (gpt_AdFile === 'PU') gptMasterSite = $('#gptSite').val(); else //JBS-phone-LANCET gptMasterSite = "dev"; if (gpt_IsProd) gptMasterSite = gpt_CheckForNULL($('#gptSite').val()); //If there is not any grasp web page, verify for a defaultsite if (gptMasterSite == null) gptMasterSite = gpt_CheckForNULL($('#gptDefaultSite').val()); else //Dev ENV //If the page has no gptSite price, expect no cost on the way to disable advertisements if (gpt_CheckForNULL($('#gptSite').val()) === null) gptMasterSite = null; //If there isn't any grasp page, investigate for a web page the use of the URL if (gptMasterPage === null) gptMasterPage = GPT_GetPageByURL(); $(".gpt-advert").each and every(characteristic (index) var gptPage = ''; var adSizeMapping = ''; var gptPOS; var gptTC; var gptNative; var adId; var gptSite; var tempSlot = null; if (gpt_IsProd) //verify if the advert slot has it be personal web page defined if (typeof $(this).information('web site') === 'undefined') gptSite = gptMasterSite; else gptSite = gpt_CheckForNULL($(this).records('web site')); else gptSite = gptMasterSite; if (gpt_AdFile === 'PU') adId = $(this).attr('id'); else //JBS-mobile-LANCET adId = 'gpt-ad-' + index + 1; if (gpt_CheckForNULL(gptSite) !== null) gptSite_Debug = gptSite; gptPOS = parseInt($(this).records('pos')) //Ignore any invalid adsizes that could be on the page if (adSizeMapping !== '') $(this).addClass('gpt-advert-described'); if (gpt_AdFile !== 'PU') $(this).attr('identity', adId); tempSlot.defineSizeMapping(adSizeMapping).addService(googletag.pubads()).setTargeting("pos", gptPOS); if (gptTC !== '') tempSlot.setTargeting("tc", gptTC); if (gptNative !== '') tempSlot.setTargeting("native", gptNative); gptEvent_Debug = gptEvent_Debug + $(this).facts('adsize') + ' Requested'; else gptInvalidAdSize_Debug = gptInvalidAdSize_Debug + "Invalid measurement found, identification: " + $(this).prop('identity') + ', adSize: ' + $(this).statistics('adsize') + ''; $(this).eliminate(); ); if (gpt_CheckForNULL(gptInvalidAdSize_Debug) === null) gptInvalidAdSize_Debug = "None Detected"; //*********************************************** //conclusion detection for advert slots on page //*********************************************** //*********************************************** //birth web page level focused on //*********************************************** if (gpt_AdFile !== 'PU') //Logged in or IP entry gpt_TargetAccessType(); //investigate for Screenshot client gpt_CheckSSC(); //assess for DFP verify gpt_GetDFPTestId(); //verify for further concentrated on gpt_GetAdditionalTargeting(); if (gpt_IsProd && gptContextualEnabled) var gpt_ContextualRetry = false; //check for Contextual targeting if (gs_channels !== "DEFAULT") var gpt_ContextualCategories = Array.from(gs_channels); for (var i = 0; i 0) googletag.pubads().setTargeting("gs_cat", gpt_ContextualCategories); else gpt_ContextualCategories = 'none'; if (gpt_ContextualRetry) gpt_ContextualCategories = "*Indexing*"; gptContextualResult_Debug = gpt_ContextualCategories; else gptContextualResult_Debug = 'No segments found'; else //no longer Prod gptContextualResult_Debug = 'no longer enabled'; var gpt_DevSite = gpt_CheckForNULL($('#gptSite').val(), "dev"); $('#gpt-Variables').append(''); gpt_Target("environment"); //*********************************************** //conclusion page stage focused on //*********************************************** //permit google dfp features if (parseInt($('#gptLazyLoading').val()) === 1) googletag.pubads().enableLazyLoad( fetchMarginPercent: 200, renderMarginPercent: 0, mobileScaling: 2.0 ); else googletag.pubads().enableSingleRequest(); //Add Listener for RenderEnded googletag.pubads().addEventListener('slotRenderEnded', characteristic (experience) if (!adventure.isEmpty) if (typeof LocalAdLoaded === "characteristic") LocalAdLoaded(adventure); if (gpt_ResponsiveHomepage) if (typeof positionAd === "characteristic") positionAd(); if (experience.measurement[0] == "480" ); if (gpt_AdFile !== 'PU') googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); //Populate described advert Slots $(".gpt-advert-defined").every(function (index) var adId = $(this).attr('identity'); googletag.cmd.push(function () googletag.monitor(adId); ); ); gptStatus_Debug = 'GPT complete'; ); //-------------------------------------------------------------------------- feature gpt_DisplayDebug() //Clone the template and append to physique $(document.body).append($('#gpt-DebugDiv').clone()); $('#gpt-DebugDiv').remove(); //Populate the Values gpt_LoadDebugValues(); //monitor and scroll to debug area $('.gpt-DebugDiv').css('reveal', 'block'); window.scrollTo(0, document.body.scrollHeight); //-------------------------------------------------------------------------- characteristic gpt_LoadDebugValues() $('.gpt-DebugBtn').blur(); $('.gptVersion_Debug').textual content(gpt_Version); $('.gptAdFile_Debug').html(gpt_AdFile); $('.gptEvent_Debug').html(gptEvent_Debug); $('.gptCustomTargeting_Debug').html(gptCustomTargeting_Debug); $('.gptSite_Debug').text(gptSite_Debug); $('.gptContextualResult_Debug').text(gptContextualResult_Debug); $('.gptContextualInit_Debug').textual content(gptContextualInit_Debug); $('.gptContextualURL_Debug').text(gptContextualURL_Debug); $('.gptContextualReady_Debug').text(gptContextualReady_Debug); $('.gptMoatReady_Debug').textual content(gptMoatReady_Debug); $('.gptMoatInit_Debug').text(gptMoatInit_Debug); $('.gptTestENV_Debug').textual content(gptTestENV_Debug); $('.gptDisableAds_Debug').textual content(gptDisableAds_Debug); $('.gptStatus_Debug').text(gptStatus_Debug); $('.gptPage_Debug').textual content(gptPage_Debug); $('.gptInvalidAdSize_Debug').html(gptInvalidAdSize_Debug); //-------------------------------------------------------------------------- characteristic gpt_GrapeShotDebug() $('.gpt-DebugBtn').blur(); window.open("http://admin-elsevier.grapeshot.co.uk/custom/bookmarklet.cgi?blocking off=1&vn=2&url=" + encodeURIComponent(document.region), "GRAPESHOT_POPUP", "width=650,top=600,scrollbars=sure,screenX=forty,screenY=50,menubar=no,toolbar=no,resizable=sure", "custom").focal point(); //-------------------------------------------------------------------------- feature gpt_ShowConsole() $('.gpt-DebugBtn').blur(); googletag.openConsole(); //-------------------------------------------------------------------------- //]]>

0/Post a Comment/Comments