PageSourceSearch

https://www.unsw.edu.au/etc.clientlibs/unsw-common/clientlibs/unsw…/social-follow-b48964b35391d6ea83d0.js

js unsw.edu.au collected 2026-09-24 06:54:07 UTC 2,046 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkuds_styleguide=self.webpackChunkuds_styleguide||[]).push([[1576],{2535:(function(a,r,o){var n=o(9493);let l=0;class t{constructor(e){this.element=e,this.toggle=e.querySelector(".toggle"),this.list=e.querySelector(".list"),this.init()}init(){!this.toggle||!this.list||(this.list.id=`social-follow-${l++}`,this.toggle.setAttribute("aria-controls",this.list.id),this.toggle.addEventListener("click",()=>this.toggleSocial()),this.toggle.addEventListener("keydown",e=>{e.key==="Enter"&&this.toggleSocial()}),window.addEventListener("resize",()=>this.updateResponsiveState()),this.updateResponsiveState())}updateResponsiveState(){if(!(!this.toggle||!this.list)){if(window.innerWidth>=960){this.toggle.removeAttribute("aria-expanded"),this.toggle.removeAttribute("aria-controls"),this.toggle.removeAttribute("class"),this.toggle.removeAttribute("tabindex"),this.list.classList.remove("open");return}this.toggle.setAttribute("aria-expanded","false"),this.toggle.setAttribute("aria-controls",this.list.id),this.toggle.className="toggle",this.toggle.tabIndex=0}}
1toggleSocial(){if(!this.toggle||!this.list||window.innerWidth>=960)return;const e=!this.toggle.classList.contains("open");this.toggle.classList.toggle("open",e),this.toggle.setAttribute("aria-expanded",String(e)),this.list.classList.toggle("open",e)}}const i=new n.q('[data-cmp-is="social-follow"]',s=>new t(s));i.init(),i.observe()}),9493:(function(a,r,o){o.d(r,{q:function(){return n}});class n{constructor(t,i){this.selector=t,this.createComponent=i}init(t=document){t.querySelectorAll(this.selector).forEach(i=>{this.initElement(i)})}observe(){const t=document.querySelector("body");if(!t)return;new MutationObserver(s=>{s.forEach(e=>{Array.from(e.addedNodes).forEach(c=>{this.initNode(c)})})}).observe(t,{childList:!0,subtree:!0})}initNode(t){if(t instanceof Element){t.matches(this.selector)&&this.initElement(t),this.init(t);return}t instanceof DocumentFragment&&this.init(t)}initElement(t){t.removeAttribute("data-cmp-is"),this.createComponent(t)}}})}]);

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.