PageSourceSearch

https://www.chateau-sur-cher.fr/assets/js/utils/diapo-utils-07de937f0cacc5a88a71fd1c67eca340.js

js chateau-sur-cher.fr collected 2026-10-02 22:18:07 UTC 1,114 bytes, 35 lines download raw bytes

1function rendreDiaposInteractifs() {
2    let emplacement= document.getElementById("diapo-emph");
3    let diapos= document.getElementsByClassName("diapo-img");
4
5    if (emplacement != null && diapos != null)
6    {
7        emplacement.addEventListener("click",function() {
8            open(emplacement.dataset.open,"_blank");
9        })
10
11        for (let i = 0; i < diapos.length; i++) {
12            diapos[i].addEventListener("click", function () {
13                emplacement.src = diapos[i].src;
14                emplacement.dataset.open = diapos[i].dataset.open;
15                /*if (emplacement.dataset.open.includes(".pdf") || emplacement.dataset.open.includes(".PDF")) {
16                    emplacement.classList.add("pdf");
17                } else {
18                    emplacement.classList.remove("pdf");
19                }*/
20                /*emplacement.scrollIntoView({
21                    behavior: "smooth",
22                    block: "center"
23                });*/
24            });
25        }
26    }
27}
28
29$(document).ready(function() {
30
31    rendreDiaposInteractifs();
32
33});
34
35export {rendreDiaposInteractifs};

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.