PageSourceSearch

https://softmech.org/3t4/js/dist/gu-staffbyguid.f2803db8.js

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

1"use strict";(self.webpackChunkuniversity_of_glasgow=self.webpackChunkuniversity_of_glasgow||[]).push([[930],{90159:function(t,i,e){e.r(i),e.d(i,{default:function(){return Staffbyguid}});var a=e(55498);class Staffbyguid{constructor(t,i,e=!1,a=!1){this.profilesdata=t,this.showpubs=i,this.displaylist=e,this.showOrgUnits=a}getstaffcards(){function generateAvatar(t,i){const e=t.charAt(0)+i.charAt(0),a=document.createElement("canvas"),s=a.getContext("2d");a.width=200,a.height=200,s.fillStyle="#011451",s.fillRect(0,0,a.width,a.height),s.fillStyle="white",s.font="100px Arial",s.textAlign="center",s.textBaseline="middle",s.fillText(e,a.width/2,a.height/2);return a.toDataURL("image/png")}let t=this.profilesdata.map((t=>this.displaylist?this.displaylist?`<li><a href="${t.url}">${t.title} ${t.forename} ${t.surname}</a></li>`:void 0:a.A.card({content:`\n                    <ul>\n                        <li>${t.jobtitle} ${this.showOrgUnits?`[${t.orgunit}]`:""}</li>\n                        ${t.email?`<li><a href="mailto:${t.email}">${t.email}</a></li>`:""}\n                    </ul>\n                    ${""!=t.researchinterests?`<p><strong>Summary of research interests</strong></p><p>${t.researchinterests}</p>`:""}\n                    ${t.publicationsurl&&this.showpubs?a.A.accordion({heading:"Publications",content:`<div id="publication-${this.getenlightenid(t.publicationsurl)}" class="staffbyguid-publications" data-id="${this.getenlightenid(t.publicationsurl)}"></div>`}):""}    \n                `,heading:`${t.title} ${t.forename} ${t.surname}`,image:t.imageurl?t.imageurl:generateAvatar(t.forename,t.surname),link:t.url,id:`${t.forename}${t.surname}-card`})));return`${a.A.standard({content:this.displaylist?`<ul class="programme-list ">${t.join("")}</ul>`:t.join(""),quicklinks:!1,contentclasses:"isfullwidth"})}`}getenlightenid(t){const i=t.split("/");return i[i.length-1].split(".")[0]}insertpublications(){[...document.querySelectorAll(".staffbyguid-publications")].forEach((t=>{this.fetchpublications(t)}))}async fetchpublications(t){const i=`https://www.gla.ac.uk/feeds/staffbyguid/pubs.html?id=${t.dataset.id}`,e=await fetch(i),a=await e.text();t.insertAdjacentHTML("beforeend",a),[...t.querySelectorAll(".ep_view_jump, .ep_view_blurb, .ep_view_timestamp")].forEach((t=>{t.parentNode.removeChild(t)}))}}}}]);
2//# sourceMappingURL=gu-staffbyguid.f2803db8.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.