PageSourceSearch

https://welcometosheffield.co.uk/js/inspiresCta.js

js welcometosheffield.co.uk collected 2026-10-01 11:28:36 UTC 619 bytes, 17 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () => {
2    const ctaPanel = document.querySelector('.sheffield-inspires-cta');
3    const closeButton = document.querySelector('.close-inspire-cta');
4    const sessionKey = 'hideSheffieldInspiresCta';
5    
6    if (sessionStorage.getItem(sessionKey) === 'true') {
7        ctaPanel.style.display = 'none';
8    }
9    
10    if (closeButton) {
11        closeButton.addEventListener('click', (event) => {
12            event.preventDefault();
13            ctaPanel.style.display = 'none';
14            sessionStorage.setItem(sessionKey, 'true');
15        });
16    }
17});

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.