PageSourceSearch

https://softmech.org/3t4/js/dist/gu-gauge.f91f8ee0.js

js softmech.org collected 2026-09-28 06:37:15 UTC 2,168 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuniversity_of_glasgow=self.webpackChunkuniversity_of_glasgow||[]).push([[1141],{52444:function(e,t,a){a.r(t),a.d(t,{default:function(){return GaugeUG}});var s=a(11231),n=a.n(s);var i=[{name:"cobalt",hex:"#005398"},{name:"turquoise",hex:"#00B5D1"},{name:"thistle",hex:"#951272"},{name:"lavendar",hex:"#5B4D94"},{name:"lawn",hex:"#84BD00"},{name:"pillarbox",hex:"#B30C00"},{name:"burgundy",hex:"#7D2239"},{name:"pumpkin",hex:"#84BD00"},{name:"forest",hex:"#385A4F"},{name:"sunshine",hex:"#FFDc36"},{name:"rust",hex:"#BE4D00"},{name:"sandstone",hex:"#7A6855"},{name:"slate",hex:"#4F5961"},{name:"heather",hex:"#5B4D94"},{name:"rose",hex:"#D278AB"},{name:"mocha",hex:"#B59079"},{name:"aquamarine",hex:"#9AB9AD"}];var l={getDatasetFromTable:function(e){let t=[],a=[{label:"",backgroundColor:"#011451",data:[]}],s=[];if(2===[...e.querySelectorAll("th")].length){return[...e.querySelectorAll("tr")].forEach((e=>{if(e.querySelector("td")){let a=[...e.querySelectorAll("td")];t.push(a[0].textContent),s.push(parseFloat(a[1].textContent))}else{let t=[...e.querySelectorAll("th")];a[0].label=t[1].textContent}})),a[0].data=s,{labels:t,datasets:a}}return!1}};class GaugeUG{constructor(e,t){this.el=e,this.el.id="test-guage",this.id=t,this.maxvalue=0,this.wrapperid=`gauge-wrapper-${this.id}`,this.dataset=l.getDatasetFromTable(this.el),this.numberofgauges=this.dataset.datasets[0].data.length,this.initialize()}initialize(){this.el.insertAdjacentHTML("afterend",`<div id="${this.wrapperid}" class="row"></div>`),this.dataset.datasets[0].data.forEach(((e,t)=>{const a=e;this.maxvalue=this.maxvalue<a?a:this.maxvalue;const s=this.dataset.labels[t];this.insertGauge(a,s,t)})),this.el.classList.add("offscreen")}insertGauge(e,t,a){const s=`gauge-${this.id}-${a}`;document.getElementById(this.wrapperid).insertAdjacentHTML("beforeend",`<div id="${s}" class="column large-3 medium-3 small-3 end"></div>`);new(n())({id:s,value:e,min:0,max:this.maxvalue,decimals:2,gaugeWidthScale:1,relativeGaugeSize:!0,levelColors:[i[a].hex],titleMinFontSize:20,showInnerShadow:!0,donut:!0,title:"Lone Ranger",label:t})}}}}]);
2//# sourceMappingURL=gu-gauge.f91f8ee0.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.