PageSourceSearch

https://middelfart.dk/Assets/GoBasic/Plugins/Src/MatchMedia/matchMedia.min.js

js middelfart.dk collected 2026-10-02 10:35:52 UTC 684 bytes, 2 lines download raw bytes

1/* matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
2window.matchMedia = window.matchMedia || (function (c, g) { var a, d = c.documentElement, f = d.firstElementChild || d.firstChild, e = c.createElement("body"), b = c.createElement("div"); b.id = "mq-test-1"; b.style.cssText = "position:absolute;top:-100em"; e.style.background = "none"; e.appendChild(b); return function (h) { b.innerHTML = '&shy;<style media="' + h + '"> #mq-test-1 { width: 42px; }</style>'; d.insertBefore(e, f); a = b.offsetWidth === 42; d.removeChild(e); return { matches: a, media: h } } }(document));

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.