PageSourceSearch

https://investorplace.com/wp-content/themes/InvestorPlaceV2/dist/js/ipmSwipeUpDOE.js?ver=af81d07785215188c7cd

js investorplace.com collected 2026-10-02 02:23:46 UTC 5,712 bytes, 1 lines download raw bytes

1!function(){"use strict";const e=document.getElementById("js-swipe-up-doe-wrapper"),t=document.getElementById("js-swipe-up-doe-close-btn"),o=document.querySelector(".js-swipe-up-doe__toggle"),i="IPMSwipeUpDOE=hide";let n="",r=!1;const p=(e,t=400)=>{e.style.transitionProperty="height",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},d=(e,t=400)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;let i=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.transitionProperty="height",e.style.transitionDuration=t+"ms",e.style.height=i+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},l=t=>{t.preventDefault(),e.hidden=!0,document.cookie=`${i}; path=/; secure; SameSite=Strict`},s=e=>{if(e.preventDefault(),o.classList.contains("--collapsed")){if(o.classList.remove("--collapsed"),o.classList.add("--expanded"),p(document.querySelector(".swipe-up-doe__collapsed"),0),d(document.querySelector(".swipe-up-doe__expanded")),!r){r=!0;let e="";const t=(new Date).getTime();n&&(e=t-n<3e4?"-Under30":"-30Up"),dataLayer.push({event:"doe",doeType:"Mobile Swipe Up DOE",doeAction:`Expanded${e}`})}}else o.classList.remove("--expanded"),o.classList.add("--collapsed"),p(document.querySelector(".swipe-up-doe__expanded")),d(document.querySelector(".swipe-up-doe__collapsed"),0)},a={submitForm(e,o={}){e.preventDefault();const i=e.target.querySelector('input[type="email"]').value;let n="undefined"===typeof o.exceptionDOEURL?"":o.exceptionDOEURL;/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(i).toLowerCase())&&""!==n&&window.open(n);const r=o;r.email=i,r.isSwipeUpDOE="true",fetch(ipmSwipeUpDOEData.apiSubmitURL,{method:"POST",body:JSON.stringify(r),headers:{"Content-type":"application/json; charset=UTF-8"}}).then((e=>e.json())).then((o=>{"error"===o.type?e.target.querySelector(".js-swipe-up-doe__error").textContent=o.message:("undefined"!==typeof window.marfeel&&"undefined"!==typeof window.marfeel.cmd&&window.marfeel.cmd.push(["compass",function(e){e.trackConversion("Free")}]),t&&t.click())}))}};window.ipmInsertSwipeUpDOE=function(r={}){if(!e)return;if(!(window.innerWidth<768))return;if(document.cookie.split(";").filter((function(e){return 0<=e.indexOf(`${i}`)})).length)return void(e.hidden=!0);if(!ipmSwipeUpDOEData)return;e.hidden=!1;const p=e.querySelector(".js-swipe-up-doe__form");if(p){let t="undefined"===typeof r.collapsedHighlightText?"":r.collapsedHighlightText;""!==t?e.querySelector(".swipe-up-doe__collapsed .highlight").textContent=t:e.querySelector(".swipe-up-doe__collapsed .highlight").remove();let o="undefined"===typeof r.collapsedNormalText?"":r.collapsedNormalText;""!==o?e.querySelector(".swipe-up-doe__collapsed .normal").textContent=o:e.querySelector(".swipe-up-doe__collapsed .normal").remove();let i="undefined"===typeof r.expandedHighlightText?"":r.expandedHighlightText;""!==i?e.querySelector(".swipe-up-doe__expanded .highlight").textContent=i:e.querySelector(".swipe-up-doe__expanded .highlight").remove();let n="undefined"===typeof r.expandedNormalText?"":r.expandedNormalText;""!==n?e.querySelector(".swipe-up-doe__expanded .normal").textContent=n:e.querySelector(".swipe-up-doe__expanded .normal").remove();let d="undefined"===typeof r.imageURL?"":r.imageURL;""!==d?e.querySelector(".swipe-up-doe__title img").src=d:e.querySelector(".swipe-up-doe__title img").remove();let l="undefined"===typeof r.imageAltText?"":r.imageAltText;""!==l&&(e.querySelector(".swipe-up-doe__title img").alt=l);let s="undefined"===typeof r.expandedDescription?"":r.expandedDescription;""!==s?e.querySelector(".swipe-up-doe__description").textContent=s:e.querySelector(".swipe-up-doe__description").remove();let u="undefined"===typeof r.pubCode?"":r.pubCode;""!==u&&(p.querySelector('input[name="pubCode"]').value=u);let y="undefined"===typeof r.effortId?"":r.effortId;""!==y&&(p.querySelector('input[name="source"]').value=y);let c="undefined"===typeof r.campaignId?"":r.campaignId;""!==c&&(p.querySelector('input[name="campaignId"]').value=c);let m="undefined"===typeof r.buttonText?"":r.buttonText;""!==m&&(p.querySelector("button").textContent=m),p.addEventListener("submit",(function(e){a.submitForm(e,r)}),!1)}dataLayer.push({event:"doe",doeType:"Mobile Swipe Up DOE",doeAction:"Inserted"}),n=(new Date).getTime(),"undefined"!==typeof window.ipmCheckForEIDs&&window.ipmCheckForEIDs(".js-swipe-up-doe__wrapper:not([hidden]) .js-swipe-up-doe"),t&&t.addEventListener("click",l),o.addEventListener("click",
1s);e.querySelector(".swipe-up-doe__collapsed h4").addEventListener("touchend",(function(e){e.preventDefault(),o.dispatchEvent(new Event("click"))}),!1)}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.