PageSourceSearch

https://www.danetreeschool.org/include/image_protection/image_protection_blur_min.js

js danetreeschool.org collected 2026-09-29 11:24:42 UTC 3,029 bytes, 26 lines download raw bytes

1window.addEventListener("keydown",e=>{"F12"===e.key&&e.preventDefault(),(e.ctrlKey||e.altKey||e.metaKey)&&("i"===e.key||"I"===e.key||"c"===e.key||"C"===e.key||"s"===e.key||"S"===e.key||"u"===e.key||"U"===e.key||"PrintScreen"===e.key)&&e.preventDefault()});const style=document.createElement("style");function image_protection_blur_images(){if(document.documentElement.classList.add("window-blurred"),!document.getElementById("image-protection-banner")){let e=document.createElement("div");e.id="image-protection-banner",e.innerText="Image protection activated - click on the page or refresh to disable",Object.assign(e.style,{position:"fixed",bottom:"0",left:"0",width:"100%",backgroundColor:"rgba(0, 0, 0, 0.85)",color:"#ffffff",textAlign:"center",padding:"12px 24px",fontSize:"14px",fontFamily:"sans-serif",zIndex:"99999",boxShadow:"0 -2px 10px rgba(0,0,0,0.3)",transition:"opacity 0.2s ease",pointerEvents:"none"}),document.body.appendChild(e)}}function image_protection_unblur_images(){document.documentElement.classList.remove("window-blurred");let e=document.getElementById("image-protection-banner");e&&e.remove()}style.textContent=`
2    img, .has-bg-image {
3      -webkit-touch-callout: none; /* iOS Safari */
4        -webkit-user-select: none; /* Safari */
5         -khtml-user-select: none; /* Konqueror HTML */
6           -moz-user-select: none; /* Old versions of Firefox */
7            -ms-user-select: none; /* Internet Explorer/Edge */
8                user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
9    }
10
11    /* Blur images when the browser window loses focus (e.g., opening a screenshot app) */
12    .window-blurred img,
13    .window-blurred [style*="background-image"],
14    .window-blurred .has-bg-image {
15    filter: blur(15px) !important;
16    transition: filter 0.1s ease;
17    }
18
19    /* Blur images if someone tries to print the page or save as PDF */
20    @media print {
21    img, [style*="background-image"] {
22      filter: blur(20px) !important;
23      display: none !important; /* Optional: hides them entirely on print */
24    }
25    }
26`,document.head.appendChild(style),window.addEventListener("blur",()=>{image_protection_blur_images()}),window.addEventListener("focus",()=>{image_protection_unblur_images()});let otherKeyPressedWhileCtrlDown=!1,isCtrlDown=!1;window.addEventListener("keydown",e=>{"F12"===e.key&&(e.preventDefault(),image_protection_blur_images()),"Control"===e.key||"Alt"===e.key||"Meta"===e.key||"PrintScreen"===e.key||e.ctrlKey||e.altKey?(isCtrlDown=!0,otherKeyPressedWhileCtrlDown=!1,image_protection_blur_images()):isCtrlDown&&(otherKeyPressedWhileCtrlDown=!0,image_protection_blur_images())}),window.addEventListener("keyup",e=>{"F12"===e.key&&image_protection_unblur_images(),"Control"!==e.key&&"Alt"!==e.key&&"Meta"!==e.key&&"PrintScreen"!==e.key||(isCtrlDown=!1,otherKeyPressedWhileCtrlDown||(console.log("SUCCESS: Ctrl key released WITHOUT any other key pressed!"),image_protection_unblur_images()))});

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.