PageSourceSearch

https://www.almaobservatory.org/wp-content/themes/alma-v3.0/js/single.js

js almaobservatory.org collected 2026-10-01 09:26:14 UTC 885 bytes, 21 lines download raw bytes

1// var sidebarIsEmpty = document.getElementsByClassName('sidebar-max-width')[0].innerHTML === "";
2// if (sidebarIsEmpty) {
3//   document.getElementsByClassName('sidebar')[0].style.display = 'none';
4//   document.getElementsByClassName('content--singles')[0].classList.add('content--full-center');
5// }
6
7// Gallery Mobile
8var galleryBtn = document.getElementById('mobile-gallery-btn');
9var galleryMobileModal = document.getElementById('mobile-gallery-modal');
10var galleryMobileClose = document.getElementById('mobile-gallery-modal-close');
11
12if (galleryBtn) {
13  galleryBtn.onclick = function () {
14    galleryMobileModal.classList.add('js-open-mobile-gallery-modal');
15    body.classList.add('js-prevent-scroll');
16  }
17  galleryMobileClose.onclick = function () {
18    galleryMobileModal.classList.remove('js-open-mobile-gallery-modal');
19    body.classList.remove('js-prevent-scroll');
20  }
21}

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.