PageSourceSearch

https://www.raspberrypi.org/assets/application/flavors/state-1bfbd…d5fd002a15aceb906260438eadf8ea5b720ca1ef.js

js raspberrypi.org collected 2026-09-24 06:43:27 UTC 624 bytes, 1 lines download raw bytes

1class State{constructor({controller:t,element:e,index:a}){this.controller=t,this.element=e,this.index=a,this.query=null,this.addEvent()}get media(){return this.element.getAttribute("media")}get value(){return this.element.getAttribute("value")||""}addEvent(){this.query=window.matchMedia(this.media),this.query.addEventListener("change",t=>this.applyState(t,this)),this.cascadeEvent=new Event("change",{target:this.query})}applyState(t=this.query){t.target.matches?this.controller.setState(this.value):this.controller.cascadeState(this.index)}cascadeState(){this.query.dispatchEvent(this.cascadeEvent)}}export default State;

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.