PageSourceSearch

https://www.landsend.co.uk/on/demandware.static/-/Sites/en_GB/v1790312408344/wbp/js/euMain-20260820.js

js landsend.co.uk collected 2026-09-25 22:54:39 UTC 11,856 bytes, 1 lines download raw bytes

1(()=>{var e={884(){window.wbp.initAccordion=()=>{for(var e=document.getElementsByClassName("euAccordion"),t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.classList.toggle("active");var e=this.nextElementSibling;"block"===e.style.display?e.style.display="none":e.style.display="block"});console.log("Accordion script initialized")}},93(){window.wbp.testTrack=()=>{console.clear(),hrefArray=new Array,statuscodes=new Array,result=new Array,reportArr=new Array,linkCheck=async()=>{for(linkNodeList=document.querySelectorAll(".euOuterWrapper a"),i=0;i<linkNodeList.length;i++)link=linkNodeList[i].getAttribute("href"),hrefArray.push(link);console.log(hrefArray.length+" links detected, checkup has started, please wait..."),await fetchStatus(hrefArray)},fetchStatus=async e=>{for(j=0;j<e.length;j++)try{const t=await fetch(e[j]);statuscodes.push(t.status),console.log("link no. "+(j+1)+": "+t.url+" wird überprüft...");const n=await t.text(),r=(new DOMParser).parseFromString(n,"text/html").querySelectorAll(".nohits");200===t.status&&0===r.length?console.log("L_ status: OK"):r.length>0&&200==t.status?reportArr.push({link:e[j],error:"empty MA"}):reportArr.push({link:e[j],error:"http: "+t.status})}catch(e){console.error("Error checking link:",e)}console.log(statuscodes.length+" of "+e.length+" link checked.\nLink Checkup completed"),null!=reportArr.length&&console.table(reportArr)},linkCheck(),console.log("THE FOLLOWING IMG DO NOT HAVE AN ALT ATTRIBUTE"),console.table(document.getElemntsByTagName("img").filter(e=>!e.alt),["src"]),console.table(performance.timing)},window.wbp.listTrackingSuffixes=()=>{let e=document.querySelectorAll(".euOuterWrapper a");Array.from(e).forEach(e=>{console.log(e.getAttribute("href").split("cm_re=")[1]),console.log(e.getAttribute("href"))})},window.wbp.findTrackingSuffix=e=>{let t=document.querySelector(`.euOuterWrapper a[href="${e}"]`);return t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),t},window.wbp.listAltAttributes=e=>{let t=document.querySelectorAll(".euOuterWrapper img");Array.from(t).forEach(e=>{console.log(e.getAttribute("alt"),e)})},window.wbp.listTitleAttributes=e=>{let t=document.querySelectorAll(".euOuterWrapper a");Array.from(t).forEach(e=>{console.log(e.getAttribute("title")),console.log(e)})},window.wbp.listLinks=()=>{for(linkNodeList=document.querySelectorAll(".euOuterWrapper a"),i=0;i<linkNodeList.length;i++)link=linkNodeList[i].getAttribute("href"),link.match("cgid=")||link.match("cid=")||link.match("pid=")?console.warn(`PROBABLY BROKEN: ${link}`):console.log(link)}},629(){var e=window.location.href,t="_",n="",r="";function o(e,o,a,s,l,i={}){if(!(e instanceof Element))return;checkImg="",thisImgDate="";const c=e.querySelector("img");if(c){checkImg="_img";const e=c.getAttribute("src")||c.getAttribute("data-src")||"";if(e)if(/\d{8}/.test(e)){const t=e.match(/\/(\d{8})-([a-z]{3})/);if(t&&t[1])thisImgDate=t[1];else{const t=e.match(/(\d{8})/);thisImgDate=t&&t[1]?t[1]:""}}else/_permanent-assets|bubble-nav/.test(e)&&(thisImgDate="");else console.error("tracking script can't find thisImgSrc")}const d=e.querySelector("p")?"_txt":"",m=e.classList.contains("euButton")||e.querySelector(".euButton")?"_cta":"";let u="",h="";if(e.id){u=`_id-${e.id}-`;const t=globalThis.getComputedStyle?getComputedStyle(e).order:"";null!=t&&""!==t&&(h=`_pos-${t}`)}let p="";e.classList.contains("euButton")&&(p="_"+(e.textContent||"").toLowerCase().replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"-"));const g=e.getAttribute("href")||"";if(!g)return;if(g.includes("#"))return;let w="";try{w="cm_re="+n+t+r+t+o+a+t+s+"-"+l+t+thisImgDate+checkImg+d+m+p+u+h,w=w.replace(/_+/g,"_")}catch(e){return console.error(e),void console.warn(" ⓘ euMain.js: Image paths might not match the necessary conventions. Check app_param.")}let b="";b=g.includes("?")?g+"&"+w:g+"?"+w,e.setAttribute("href",b)}function a(e,t){e instanceof Element&&(e=[e]);var n=0;e.forEach(function(e){if(n++,"a"!==e.tagName.toLowerCase()){var r=e.querySelectorAll("a"),a=r.length;r.forEach(function(e,r){var s=r+1;e.getAttribute("href"),o(e,t,n,s,a)})}else e.getAttribute("href"),o(e,t,n,1,1)})}e.match(/www\.landsend\.de|LandsEndGermany|de_DE/g)&&(n="de"),e.match(/\.co\.uk|LandsEndUK/g)&&(n="uk"),e.match(/fr\..*.\.com|LandsEndFrance/g)&&(n="fr"),e.match(/^https:\/\/www\.landsend\.co\.uk\/$|^https:\/\/www\.landsend\.de\/$|^https:\/\/www\.fr\.landsend\.com\/$|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndFrance-Site\?.*|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndUK-Site\?.*|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndGermany-Site\?.*|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndFrance-Site$|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndUK-Site$|https:\/\/staging-web-landsend\.demandware\.net\/on\/demandware\.store\/Sites-LandsEndGermany-Site$|https:\/\/staging\.landsend\.co\.uk\/on\/demandware\.store\/Sites-LandsEndUK-Site\?*|https:\/\/staging\.landsend\.de\/on\/demandware\.store\/Sites-LandsEndGermany-Site\?*/g)&&(r="hp"),e.match(/Women|Damen|femme/g)&&(r="wmn"),e.match(/Men|Herren|homme/g)&&(r="mn"),e.match(/Kids|enfants/g)&&(r="kids"),e.match(/Swim
1wear|Bademode|maillots-de-bain/g)&&(r="swim"),e.match(/Sale|bonnes-affaires|soldes/g)&&(r="sale"),e.match(/Shoes_Boots|Schuhe-Stiefel|chaussures/g)&&(r="ftw"),e.match(/Jackets|Jacken|vestes/g)&&(r="otw"),e.match(/New|Neu|tab_23/g)&&(r="new"),e.match(/Gift|Geschenkideen|Cadeaux/g)&&(r="gift"),e.match(/sport-knit\.html/g)&&(r="spkn"),e.match(/comfy-loungewear\.html/g)&&(r="lw"),e.match(/american-classics\.html/g)&&(r="ac"),e.match(/blueprint-down\.html/g)&&(r="blpr"),e.match(/welcome\.html|welcome-2025\.html|willkommen\.html|willkommen-2025\.html/g)&&(r="nca"),e.match(/activewear\.html/g)&&(r="alp"),e.match(/Sustainability|Nachhaltigkeit|Developpement-Durable\.html/g)&&(r="sus"),e.match(/Unsere-Mission|Our-Mission|Notre-Mission\.html/g)&&(r="omi"),e.match(/Explore|Jetzt-entdecken|Tab_33\.html/g)&&(r="exp"),e.match(/mothers-day\.html/g)&&(r="mday"),e.match(/mothers-day-competition\.html/g)&&(r="mdayc"),e.match(/tote-bag\.html/g)&&(r="totes"),e.match(/denim-guide|denim|\.html/g)&&(r="dg"),e.match(/linen-care|leinen-pflege/g)&&(r="lc"),e.match(/linen\.html|leinen\.html/g)&&(r="lg"),e.match(/holiday-shop|holiday-shop-preview|Holiday_Shop/g)&&(r="hs"),e.match(/baden-baden/g)&&(r="bb"),e.match(/royal-ascot/g)&&(r="ra"),e.match(/ibiza/g)&&(r="ib"),e.match(/frankfurt/g)&&(r="ff"),e.match(/hamburg/g)&&(r="bb"),e.match(/edit-berlin/g)&&(r="ber"),e.match(/berlin-beach-party/g)&&(r="bbpa"),document.addEventListener("DOMContentLoaded",function(){a(document.querySelectorAll(".euHero"),"hr"),a(document.querySelectorAll(".euBanner"),"bnr"),a(document.querySelectorAll(".euHeroBanner"),"bnr"),a(document.querySelectorAll(".euSub"),"sb"),a(document.querySelectorAll(".euItem"),"prd"),a(document.querySelectorAll(".euNewsletter"),"nlb"),a(document.querySelectorAll(".euSale"),"slb"),a(document.querySelectorAll(".euBubbleNav"),"bbl"),a(document.querySelectorAll(".euHero__mod"),"mod"),a(document.querySelectorAll(".euMod"),"mod"),a(document.querySelectorAll(".euSection"),"sec")})},907(){document.addEventListener("DOMContentLoaded",()=>{const e=Array.from(document.querySelectorAll(".euVideo"));if(!e.length)return;!function(){if("object"!=typeof window.specBreak||null===window.specBreak)return;if(document.querySelector('style[data-specbreak-injected="true"]'))return;const e=document.createElement("style");e.type="text/css",e.setAttribute("data-specbreak-injected","true");let t="";for(const[e,n]of Object.entries(window.specBreak)){const r=n?.label||"";r&&(t+=n?.max?`\n        @media (min-width: ${e}) and (max-width:${n.max}){\n          html body::before { content: "${r}"; }\n        }\n      `:`\n        @media (min-width: ${e}){\n          html body::before { content: "${r}"; }\n        }\n      `)}e.appendChild(document.createTextNode(t)),document.head.appendChild(e)}();const t=e.map(e=>function(e){const t=function(e){const t=e.parentNode.nextElementSibling;if(t&&t.classList.contains("euVidControl"))return t;const n=document.createElement("div");return n.className="euVidControl",e.parentNode.insertAdjacentElement("afterend",n),n}(e),n=e.querySelector("source"),r=n?.getAttribute("src")||e.getAttribute("src")||"",o=e.getAttribute("poster")||"",a=function(e){if(!e)return"";let t=e.lastIndexOf("/")+1,n=e.slice(0,t),r=e.substr(t).split(".")[0].slice(0,-3);return r.match("-mobile")&&(lastHyphen=r.lastIndexOf("-"),r=r.substr(0,lastHyphen)),vidPath=`${n}${r}`,vidPath}(r),s=function(e){if(!e)return"";let t=e.lastIndexOf("/")+1,n=e.slice(0,t),r=e.slice(t,e.length).split(".")[0];return r.match("@")&&(r=r.split("@")[0]),r.match(/-medium|-large|-small|-smallest|-tiny/g)&&(lastHyphen=r.lastIndexOf("-"),r=r.substr(0,lastHyphen)),posterPath=`${n}${r}`,posterPath}(o);console.log(s);let l=null;const i=()=>{const n=window.getComputedStyle(document.body,":before").content.replace(/\"/g,"").trim();let r="",o="";if(["tiny","smallest"].includes(n)?(r=`${a}-mobile-s1.mp4`,o=`${s}[email protected]`):"small"===n?(r=`${a}-mobile-l1.mp4`,o=`${s}[email protected]`):"medium"===n||"large"===n?(r=`${a}-s1.mp4`,o=`${s}[email protected]`):"xlarge"===n&&(r=`${a}-l1.mp4`,o=`${s}[email protected]`),"object"==typeof window.specBreak&&null!==window.specBreak)for(const[,e]of Object.entries(window.specBreak))if(e?.label===n){e.context&&(r=`${e.context}`),e.poster&&(o=`${e.poster}`);break}const l=e.currentTime||0,i=e.paused;(t=>{const n=e.querySelector("source");
1n?(n.setAttribute("src",t),e.load()):e.src=t})(r),o&&(e.poster=o);const c=()=>{try{e.currentTime=l}catch(e){}t.classList.contains("paused")&&e.pause(),!i&&t.classList.contains("play")&&e.play().catch(()=>{}),e.removeEventListener("loadedmetadata",c)};e.readyState>=1?c():e.addEventListener("loadedmetadata",c)};return t.classList.add("play"),t.addEventListener("click",()=>{e.paused?(e.play().catch(()=>{}),t.classList.remove("paused"),t.classList.add("play")):(e.pause(),t.classList.remove("play"),t.classList.add("paused"))}),{video:e,control:t,onResize:()=>{l&&window.cancelAnimationFrame(l),l=window.requestAnimationFrame(()=>{i(),l=null})},switchVideoSources:i}}(e));let n=window.innerWidth;window.addEventListener("resize",()=>{const e=window.innerWidth;if(e!==n){n=e;for(const e of t)e.onResize()}});for(const e of t)e.switchVideoSources()})},36(){window.wbp.initExpander=function(e,t,n){let r=document.querySelectorAll(e);t&&n&&document.body.insertAdjacentHTML("beforeend",`\n    <style type="text/css">\n      ${e}__more::before {\n        content: '${t}';\n      }\n      ${e}.is-expanded .euMobileExpander__more::before {\n        content: '${n}';\n      }\n    </style>\n    `);for(let e=0;e<r.length;e++)r[e].addEventListener("click",function(){this.classList.toggle("is-expanded")})}},955(){window.wbp=window.wbp||{},window.wbp.gimmeFunc=()=>{console.log("GRATULATIONS! You've got the funk! Oh yeah!"),console.log("More funk!")},window.wbp.ilog=(e,t)=>
1{console.log(`%c${e}`,`color: ${t||"default"};`)}}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],a=t[r++];n.o(e,o)?0===a&&r++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(629),n(907),n(955),n(884),n(93),n(36)})()})();

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.