PageSourceSearch

https://www.wunderground.com/wu-static/views/footer.1ee88fec.js

js wunderground.com collected 2026-09-24 07:20:22 UTC 5,930 bytes, 1 lines download raw bytes

1import{BaseView as t}from"#views/base-view.8933a16d.js";import{SupportUrl as e}from"#utils/support-url.8d310682.js";import{PrivacyRegime as a}from"#utils/privacy-regime.4afe9f57.js";import{ensureDprSdk as r,findDprSdk as s}from"#utils/dpr-sdk.97e355ec.js";class n extends t{constructor(t){super(t)}connectedCallback(){e.bindLink(this.query("a.feedback-support-link")),this.hydratePrivacyRows()}hydratePrivacyRows(){if(this.privacyRowsHydrated)return;let t=this.query("section.company"),e=this.query("section.legal"),n=this.query("a.accessibility-statement");if(!t||!e||!n)return;this.privacyRowsHydrated=!0;let i=a.current();i.includes("usa")&&(t.insertAdjacentHTML("beforeend",this.weatherDataApisHtml),n.insertAdjacentHTML("beforebegin",this.adChoicesHtml)),"usa-ccpa"===i&&e.insertAdjacentHTML("beforeend",this.californiaHtml),r((t=>{let e=t?s():null;e&&Promise.resolve(e.isInitialized).then((()=>this.onDprSdkInitialized(e))).catch((()=>{}))}))}onDprSdkInitialized(t){this.fillConsentChoices(t),"function"==typeof t.isRestrictiveRegime&&t.isRestrictiveRegime()&&(this.query("section.legal").insertAdjacentHTML("beforeend",this.cookieSettingsHtml),this.query("button.cookie-settings").addEventListener("click",(()=>{if("function"==typeof t.showConsentManager)try{t.showConsentManager()}catch(t){}})))}fillConsentChoices(t){this.querySelectorAll(".consent-choice").forEach((e=>{let a=e.dataset.purpose,r=t.getUserConsent(a)??t.getRegimePurposeDefaultValue(a);e.textContent=r?"You opted in":"You opted out"})),this.querySelectorAll(".consent-choice-ad-free").forEach((t=>{t.textContent="You are opted out"}))}get html(){return`\n      <footer-view>\n        <div class="inner">\n          <div class="sections">\n            <section class="company">\n              ${this.firstSectionHtml}\n            </section>\n            <section class="community">\n              ${this.secondSectionHtml}\n            </section>\n            <section class="legal">\n              ${this.thirdSectionHtml}\n            </section>\n          </div>\n          <a href="https://www.levelaccess.com/a/the-weather-channel/?utm_source=theweatherchannelhomepage&utm_medium=iconlarge&utm_term=eachannelpage&utm_content=header&utm_campaign=theweatherchannel" target="_self" title="Accessibility" class="accessibility">Level Access</a>\n          <div class="logos">\n            <a href="https://www.weathercompany.com/" target="_blank" class="weather-company" title="The Weather Company">The Weather Company</a>\n            <a href="https://weather.com/" target="_blank" class="weather-channel" title="The Weather Channel">The Weather Channel</a>\n            <a href="/" class="weather-underground" title="Weather Underground">Weather Underground</a>\n            <a href="https://weather.com/storm-radar" target="_blank" class="storm-radar" title="Storm Radar">Storm Radar</a>\n          </div>\n          <div class="copyright">© The Weather Company, LLC ${(new Date).getFullYear()}</div>\n        </div>\n      </footer-view>\n    `}static linkHtml(t){let e=t.url.startsWith("/"),a=t.target||(e?"":"_blank"),r=[`href="${t.url}"`];return t.className&&r.push(`class="${t.className}"`),t.title&&r.push(`title="${t.title}"`),a&&r.push(`target="${a}"`),"_blank"===a&&r.push('rel="noopener"'),`<a ${r.join(" ")}>${t.html||t.text}</a>`}static linksHtml(t){return t.map((t=>n.linkHtml(t))).join("")}get firstSectionHtml(){return n.linksHtml([{text:"Our Apps",url:"/download",title:"Weather Underground Mobile Apps"},{text:"About Us",url:"/about/our-company",title:"About Weather Underground"},{text:"Contact",url:"/about/contact-us",title:"Contact Weather Underground"},{text:"Careers",url:"https://www.weathercompany.com/careers"}])}get secondSectionHtml(){return n.linksHtml([{text:"PWS Network",url:"/pws/overview",title:"Personal Weather Station Network"},{text:"WunderMap",url:"/wundermap",title:"Experience WunderMap"},{text:"Feedback & Support",url:e.fallbackUrl,title:"Customer Feedback for Weather Underground",className:"feedback-support-link"}])}get thirdSectionHtml(){return n.linksHtml([{text:"Trust Center",url:"https://trust.weather.com"},{text:"Terms of Use",url:"https://weather.com/privacy/terms-of-use"},{text:"Privacy Policy",url:"https://weather.com/privacy/privacy-policy"},{text:"Data Rights",url:"https://www.wunderground.com/data-rights",target:"_self"},{text:"Privacy Settings",url:"https://www.wunderground.com/privacy-settings",target:"_self"},{text:"Cookie Notice",url:"https://weather.com/privacy/privacy-policy#data-collection-technologies-and-consumer-c
1hoice"},{text:"Data Vendors",url:"https://www.wunderground.com/data-vendors",target:"_self"},{text:"Accessibility Statement",url:"/accessibility-statement",className:"accessibility-statement"}])}get weatherDataApisHtml(){return n.linkHtml({text:"Weather Data APIs",url:"https://www.weathercompany.com/weather-data-apis/"})}get adChoicesHtml(){return n.linkHtml({text:"Ad Choices",url:"/company/ad-choices",className:"ad-choices"})}get californiaHtml(){return n.linksHtml([{text:"California Notice",url:"https://weather.com/privacy/privacy-policy#2-california-consumer-privacy-act-ccpa-notice",className:"privacy-link"},{html:'<span>Do Not Sell or Share My Personal Information</span><span class="consent-choice" data-purpose="sale-of-data"></span><span class="consent-choice-ad-free"></span>',url:"https://www.wunderground.com/privacy-settings#do-not-sell",target:"_self",className:"privacy-link do-not-sell"},{html:'<span>Limit Use of My Sensitive Personal Information</span><span class="consent-choice" data-purpose="sensitive-data"></span>',url:"https://www.wunderground.com/privacy-settings#sensitive-data",target:"_self",className:"privacy-link sensitive-data"}])}get cookieSettingsHtml(){return'<button type="button" class="privacy-link cookie-sett
1ings" title="Cookie Settings">Cookie Settings</button>'}}export{n as FooterView};n.register("footer-view");

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.