PageSourceSearch

https://twelite.net/js/opendetailsonprinting.js

js twelite.net collected 2026-10-04 15:43:07 UTC 481 bytes, 15 lines download raw bytes

1window.matchMedia("print").addEventListener("change", evt => {
2    if (evt.matches) {
3        elms = document.body.querySelectorAll("details:not([open])");
4        for (e of elms) {
5            e.setAttribute("open", "");
6            e.dataset.wasclosed = "";
7        }
8    } else {
9        elms = document.body.querySelectorAll("details[data-wasclosed]");
10        for (e of elms) {
11            e.removeAttribute("open");
12            delete e.dataset.wasclosed;
13        }
14    }
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.