1document.addEventListener("DOMContentLoaded", () => { 2 const compatBootstrap = Boolean(window.alFolio && window.alFolio.compatBootstrap); 3 const computedTheme = 4 typeof window.determineComputedTheme === "function" 5 ? window.determineComputedTheme() 6 : document.documentElement.dataset.theme || "light"; 7 8 document.querySelectorAll("table").forEach((table) => { 9 if (computedTheme === "dark") { 10 table.classList.add("table-dark"); 11 } else { 12 table.classList.remove("table-dark"); 13 } 14 15 const insideExcludedParent = 16 table.closest('[class*="news"]') || 17 table.closest('[class*="card"]') || 18 table.closest('[class*="archive"]') || 19 table.closest("pre") || 20 table.closest("code"); 21 22 if (!insideExcludedParent) { 23 table.classList.add("table", "table-hover"); 24 table.parentElement?.classList.add("table-responsive"); 25 26 if (compatBootstrap) { 27 table.setAttribute("data-toggle", "table"); 28 } 29 } 30 }); 31});
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.