PageSourceSearch

https://www.morrisseycentral.com/static/theme_api/v1/custom_pages/…aad37448b6591a69d34129cabe5a26454651d4a6.js

js morrisseycentral.com collected 2026-10-02 07:32:24 UTC 970 bytes, 25 lines download raw bytes

1window.detectPosition = window.detectPosition || function() {
2  var rows = document.querySelectorAll("._4ORMAT_content_page_row");
3  var initialYTranslate = 100;
4
5  for (var i = 0; i < rows.length; i++) {
6    var row = rows[i];
7    var elementTop = row.offsetTop + initialYTranslate;
8    var elementBottom = elementTop + row.clientHeight;
9    var viewportTop = window.scrollY ? window.scrollY : document.body.scrollTop;
10    var viewportBottom = viewportTop + window.innerHeight;
11
12    if (elementBottom > viewportTop &&
13      (elementTop < viewportBottom || viewportBottom == document.body.scrollHeight)) {
14      if (!row.classList.contains("in-viewport")) {
15        row.classList.add("in-viewport")
16      }
17    }
18  }
19};
20
21document.addEventListener('DOMContentLoaded', window.detectPosition, false);
22_4ORMAT.$(window.detectPosition);
23
24document.body.addEventListener('scroll', window.detectPosition, false);
25window.addEventListener('scroll', window.detectPosition, false);

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.