1 2(function() { 3 let savedTheme = null; 4 5 try { 6 savedTheme = localStorage.getItem('theme'); 7 } catch (e) { 8 savedTheme = null; 9 } 10 11 const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches; 12 const initialTheme = savedTheme || (prefersDark ? 'dark' : 'light'); 13 14 let heroFullscreen = null; 15 16 try { 17 heroFullscreen = localStorage.getItem('hero-fullscreen'); 18 } catch (e) { 19 heroFullscreen = null; 20 } 21 22 document.documentElement.setAttribute('data-theme-toggle', savedTheme ? 'true' : 'false'); 23 document.documentElement.setAttribute('data-theme', initialTheme); 24 document.documentElement.setAttribute('data-hero-fullscreen', heroFullscreen ? 'true' : 'false'); 25 26})(); 27 28
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.