PageSourceSearch

https://york.ai/sidebar-preference-bootstrap.js

js york.ai collected 2026-10-05 13:20:55 UTC 776 bytes, 20 lines download raw bytes

1;(function () {
2  try {
3    var root = document.documentElement
4    var storageKey = root.dataset.sidebarStorageKey
5    var cssProperty = root.dataset.sidebarWidthProperty
6    var pinnableMediaQuery = root.dataset.sidebarPinnableMediaQuery
7    var expandedWidth = root.dataset.sidebarExpandedWidth
8    var unpinnedWidth = root.dataset.sidebarUnpinnedWidth
9
10    if (!storageKey || !cssProperty || !pinnableMediaQuery || !expandedWidth || !unpinnedWidth) {
11      return
12    }
13
14    var isPinned =
15      localStorage.getItem(storageKey) === 'true' && window.matchMedia(pinnableMediaQuery).matches
16    root.style.setProperty(cssProperty, isPinned ? expandedWidth : unpinnedWidth)
17  } catch {
18    // The CSS default remains the safe rail width when storage is unavailable.
19  }
20})()

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.