PageSourceSearch

https://www.psbedu.paris/themes/custom/psbedu_theme/assets/js/footer.js?tlv4k9

js psbedu.paris collected 2026-10-02 10:36:46 UTC 1,476 bytes, 47 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2  const footerTop = document.querySelector('.footer-top');
3  const footerBottom = document.querySelector('.footer-bottom');
4  let cookiesButton = document.getElementById('ot-sdk-btn');
5
6  if (cookiesButton) {
7    setTimeout(function () {
8      cookiesButton.innerHTML = 'Cookies';
9    }, 200);
10  }
11
12  if (!footerTop || !footerBottom) {
13    return;
14  }
15
16  const topMain = footerTop.querySelector('.layout__region--main');
17  const topSecond = footerTop.querySelector('.layout__region--second');
18  const topThird = footerTop.querySelector('.layout__region--third');
19
20  const bottomMain = footerBottom.querySelector('.layout__region--main');
21  const bottomSecond = footerBottom.querySelector('.layout__region--second');
22
23  function rearrangeFooter() {
24    const isSmallScreen = window.matchMedia("(max-width: 767px)").matches;
25
26    if (isSmallScreen) {
27      if (topThird && bottomSecond) {
28        footerBottom.insertBefore(topThird, bottomSecond.nextSibling);
29      }
30
31      if (bottomMain) {
32        footerBottom.appendChild(bottomMain);
33      }
34    } else {
35      if (topThird && footerBottom.contains(topThird)) {
36        footerTop.appendChild(topThird);
37      }
38
39      if (bottomMain && footerBottom.contains(bottomMain)) {
40        footerBottom.insertBefore(bottomMain, bottomSecond);
41      }
42    }
43  }
44
45  window.addEventListener('load', rearrangeFooter);
46  window.addEventListener('resize', rearrangeFooter);
47});

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.