PageSourceSearch

https://retinalphysician.com/scripts/PV%20Sites/topNavSizeAdjust.js

js retinalphysician.com collected 2026-10-02 05:00:32 UTC 650 bytes, 23 lines download raw bytes

1// JavaScript Document
2
3document.addEventListener("DOMContentLoaded", function () {
4  var nav = document.getElementById("topNav");
5  var contentSection = document.getElementById("navAdjuster");
6
7  function updateNavClass() {
8    var contentSectionRect = contentSection.getBoundingClientRect();
9    if (contentSectionRect.top <= 0) {
10      nav.classList.add("nav-scrolled");
11    } else {
12      nav.classList.remove("nav-scrolled");
13    }
14  }
15
16  // Check initial scroll position on page load
17  updateNavClass();
18
19  window.addEventListener("scroll", function () {
20    // Update nav class on scroll
21    updateNavClass();
22  });
23});

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.