PageSourceSearch

https://www.infovac.ch/media/com_edocman/assets/js/download.js?3a6e5f2136de24d09276df63754713db

js infovac.ch collected 2026-09-24 19:46:21 UTC 1,229 bytes, 33 lines download raw bytes

1function setupModal() {
2    // Get the modal
3    const modalDownload = document.getElementById("documentDownloadModal");
4
5    // Get all links that should open in the modal
6    const download_links = document.querySelectorAll(".edocmancollectdownloadbtn");
7
8    // Get the iframe inside the modal
9    const modalIframe = document.getElementById("modalDownloadIframe");
10
11    // Get the close button
12    const closeBtn = document.querySelector(".close-btn-download");
13
14    // Loop through each link and add a click event listener
15    download_links.forEach(link => {
16        link.addEventListener("click", function(event) {
17            event.preventDefault(); // Prevent default link behavior
18            var url = this.href; // Get the link URL
19            modalIframe.src = url; // Load the URL inside the iframe
20            modalDownload.style.display = "flex"; // Show the modal
21        });
22    });
23
24    // Close the modal when clicking the close button
25    closeBtn.onclick = function() {
26        modalDownload.style.display = "none";
27        modalIframe.src = ""; // Reset iframe to stop loading content
28    };
29}
30
31document.addEventListener("DOMContentLoaded", function() {
32	setupModal();
33});

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.