1const bootstrapDetectBreakpoint = function () { 2 const breakpointNames = ["xl", "lg", "md", "sm", "xs"] 3 let breakpointValues = [] 4 for (const breakpointName of breakpointNames) { 5 breakpointValues[breakpointName] = window.getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-' + breakpointName) 6 } 7 let i = breakpointNames.length 8 for (const breakpointName of breakpointNames) { 9 i-- 10 if (window.matchMedia("(min-width: " + breakpointValues[breakpointName] + ")").matches) { 11 return {name: breakpointName, index: i} 12 } 13 } 14 return null 15}
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.