PageSourceSearch

https://www.muratorplus.pl/media/desktop/zpr_layouts_web/js/topboard.js?__25dcee3a

js muratorplus.pl collected 2026-10-02 07:43:47 UTC 1,128 bytes, 44 lines download raw bytes

1const topboardStickyThreshold = 1200;
2const stickyTopboardClass = "sticky-topboard";
3let top0 = document.getElementById("top_0");
4let m_top0 = document.getElementById("m_top_0");
5
6const initStickyTopboard = () => {
7  setCommonStyles();
8  handleStickyTopboard();
9};
10
11const setCommonStyles = () => {
12  [top0, m_top0].forEach((el) => {
13    if (!el) return;
14    el.style.zIndex = 9999000;
15    el.style.backgroundColor = "white";
16  });
17};
18
19const setStaticStyles = (el) => {
20  el.style.position = "static";
21  el.style.top = null;
22};
23
24const setStickyStyles = (el) => {
25  el.style.position = "fixed";
26  el.style.top = "0px";
27};
28
29const handleStickyTopboardByElement = (el) => {
30  if (!el) return;
31  if (window.scrollY <= 0 || window.scrollY > topboardStickyThreshold)
32    setStaticStyles(el);
33  else setStickyStyles(el);
34};
35
36const handleStickyTopboard = () => {
37  handleStickyTopboardByElement(top0);
38  handleStickyTopboardByElement(m_top0);
39};
40
41if (document.readyState !== "loading") initStickyTopboard();
42else document.addEventListener("DOMContentLoaded", initStickyTopboard);
43
44window.addEventListener("scroll", handleStickyTopboard);

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.