PageSourceSearch

https://www.usna.edu/CMS/_standard4.0/assets/js/tabsImgBG.js

js usna.edu collected 2026-09-24 08:41:51 UTC 735 bytes, 16 lines download raw bytes

1// Image Background 
2
3  const tabsBgParent = document.querySelector(".topLeveltabs .section_background");
4  console.log(tabsBgParent)
5        document.querySelectorAll('.topLeveltabs li.tabs-title').forEach((tab, index) => {
6            if(index==0){ 
7                  console.log("index1")
8                  const firstImgSrc = tab.querySelector('a[data-bgimg]').getAttribute("data-bgimg");
9                  tabsBgParent.style.cssText = firstImgSrc;
10            };
11            tab.addEventListener('click', function () {
12                const newImgSrc = this.querySelector('a[data-bgimg]').getAttribute("data-bgimg");
13                tabsBgParent.style.cssText = newImgSrc;
14            });
15            
16        });

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.