PageSourceSearch

https://softmech.org/3t4/js/dist/gu-weather-alert.74840ebf.js

js softmech.org collected 2026-09-28 06:38:06 UTC 1,860 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuniversity_of_glasgow=self.webpackChunkuniversity_of_glasgow||[]).push([[1516,9777],{13739:function(e,t,s){s.r(t),s.d(t,{default:function(){return WeatherAlert}});var i=s(20973);class WeatherAlert extends i.default{constructor(e){super(e),this.getdata().then((e=>{this.appendDetails()}))}appendDetails(){console.log(this.data.rss.channel.item),this.data.rss.channel.item?this.appenddata({description:!0}):(this.el.insertAdjacentHTML("beforeend","<li>No weather alerts</li>"),this.el.style.display="initial")}}},20973:function(e,t,s){s.r(t),s.d(t,{default:function(){return Rssfeed}});var i=s(55498);class Rssfeed{constructor(e){this.el=e,this.feed=encodeURIComponent(this.el.dataset.feedurl),this.items=parseInt(this.el.dataset.items)||5,this.reversed=this.el.dataset.reversed&&"true"==this.el.dataset.reversed,this.tile=this.el.parentNode.classList.contains("tileText"),this.dataurl=`/feeds/rss/xml2json.html?url=${this.feed}`}getdata(){return fetch(this.dataurl).then((e=>e.json())).then((e=>{this.data=e}))}appenddata(e){!e&&(e={});const t=Array.isArray(this.data.rss.channel.item)?this.data.rss.channel.item:[this.data.rss.channel.item];this.reversed?t.slice().reverse().forEach(((e,t)=>{this.tile?t<=this.items&&this.el.insertAdjacentHTML("beforeend",`<li><a href="${e.link}">${e.title}</a></li>`):t<=this.items&&this.el.insertAdjacentHTML("beforeend",i.A.card({content:e.description,heading:e.title,link:e.link}))})):t.forEach(((t,s)=>{this.tile?s<=this.items&&this.el.insertAdjacentHTML("beforeend",`<li><a href="${t.link}">${e.description?`<strong>${t.title}</strong><br />${t.description}`:t.title}</a></li>`):s<=this.items&&this.el.insertAdjacentHTML("beforeend",i.A.card({content:t.description,heading:t.title,link:t.link}))})),this.el.style.display="block"}}}}]);
2//# sourceMappingURL=gu-weather-alert.74840ebf.js.map

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.