PageSourceSearch

https://schoolmaker.com/assets/controllers/os_detect_controller-6b…2d8da7ae632d3f0f09d17302011ccb2bf8a506af.js

js schoolmaker.com collected 2026-09-26 02:13:09 UTC 459 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["mac","nonMac"];connect(){this.detectOS()}detectOS(){const t=this.#t();this.macTargets.forEach(a=>{a.classList.toggle("hidden",!t)}),this.nonMacTargets.forEach(a=>{a.classList.toggle("hidden",t)})}#t(){return navigator.userAgentData&&navigator.userAgentData.platform?"macOS"===navigator.userAgentData.platform:/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)}}

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.