PageSourceSearch

https://www.turris.com/static/dist/js/turris_web.js

js turris.com collected 2026-10-04 00:06:45 UTC 4,485 bytes, 2 lines download raw bytes

1function a(){document.getElementById("search-wrapper").style.display="none",document.getElementById("logo-light").style.display="block",document.getElementById("logo-dark").style.display="none",document.getElementById("search-icon").src=window.searchUrlLight}function u(){document.getElementById("search-wrapper").style.display="block",document.getElementById("logo-light").style.display="none",document.getElementById("logo-dark").style.display="block",document.getElementById("search-icon").src=window.searchUrlDark,document.getElementById("search-input").focus()}function m(){document.getElementById("search-wrapper").style.display==="block"?document.getElementById("search-input").value.length>=2?document.getElementById("aldryn-search").submit():a():u()}function p(e){if(e.key==="Escape"){a();return}e.target.value.length>1?document.getElementById("search-icon").src=window.searchUrlLight:document.getElementById("search-icon").src=window.searchUrlDark}function y(e){document.getElementById("search-input").value.length<2&&e.preventDefault()}function h(){const e="set-bar-width",t=document.querySelector(".cms-dragbar-title");if(t&&!document.getElementsByClassName(e).length){const o=document.createElement("span");o.classList.add(e);const n=[[800,"the largest"],[600,"larger"],[416,"default"]];for(const c in n){c>0&&o.appendChild(document.createTextNode(", "));const r=n[c][0],l=n[c][1],d=document.createElement("a");d.appendChild(document.createTextNode(l)),d.href=`#${r}`,d.addEventListener("click",i=>(i.stopPropagation(),document.querySelector("div.cms .cms-structure.cms-structure-condensed").style.width=`${r}px`,!1)),o.appendChild(d)}t.appendChild(o)}}const g=e=>{if(e&&document.body.hasAttribute("data-project_version")){const t=document.createElement("span"),o=document.createElement("span"),n=document.createElement("span");t.classList.add("versions","project-version"),n.classList.add("versions","deployment-version"),t.title="Project version.",n.title="Deployment version.";const c=document.body.dataset.project_version?document.body.dataset.project_version:"...",r=document.body.dataset.deployment_version?document.body.dataset.deployment_version:"...";t.appendChild(document.createTextNode(c)),o.appendChild(document.createTextNode("/")),n.appendChild(document.createTextNode(r)),span4.appendChild(document.createTextNode(platform_node)),e.after(t,o,n,span4)}};function f(e){e.preventDefault(),e.target.parentNode.parentNode.querySelector(".matrix-block__popup").classList.add("detail")}function E(){document.querySelector(".matrix-block__popup.detail").classList.remove("detail")}function s(e,t,o){if(e)for(const n of e)n.style.cursor="pointer",o&&(n.title=o),n.addEventListener("click",t)}function _(){let e,t,o;for(const r of document.querySelectorAll(".matrix-block"))r.querySelectorAll(".matrix-block__btn a").length||(e=document.createElement("DIV"),e.classList.add("matrix-block__btn"),t=document.createElement("A"),t.style.cursor="pointer",t.title=gettext("See more."),o=document.createTextNode(gettext("More")),t.appendChild(o),e.appendChild(t),r.appendChild(e));const n=document.querySelectorAll(".matrix-block__btn a");s(n,f);const c=document.querySelectorAll(".popup-block .icon-cross, .matrix-block__popup");s(c,E,gettext("Close detail."))}function k(){const e=document.getElementById("links-target");if(e){const t=e.dataset.target;if(t&&e.dataset.hrefs&&e.dataset.hrefs.length)for(const o of e.dataset.hrefs.split(/\s+/))for(const n of document.querySelectorAll(`a[href='${o}']`))n.setAttribute("target",t)}}k();window.addEventListener("DOMContentLoaded",()=>{document.getElementById("search-icon").addEventListener("click",m),document.getElementById("search-input").addEventListener("keyup",p),document.getElementById("aldryn-search").addEventListener("submit",y),_();for(const o of document.querySelectorAll(".collapse-box")){const n=o.querySelector("div[id^=trigger]");n.getAttribute("aria-expanded")==="false"&&n.click()}document.querySelector(".menu-btn").addEventListener("click",()=>{document.querySelector("header").classList.toggle("show-nav")});const e=document.querySelector(".main-menu");e.querySelector(".active.undermenu__item .menu-underwrapper")&&e.classList.add("three-level-menu");const t=document.querySelector(".cms-toolbar-item-cms-mode-switcher > a:not(.cms-btn-disabled)");t&&t.addEventListener("click",()=>{setTimeout(h,1e3)},!0),g(document.querySelector(".cms-toolbar-item-logo a"))});
2//# sourceMappingURL=turris_web.js.map

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.