MCPcopy
hub / github.com/mongodb/node-mongodb-native / offsetHashLink

Function offsetHashLink

docs/2.2/js/navbar.js:145–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144 /* Adjust the scroll location to account for our fixed header */
145 function offsetHashLink() {
146 if (location.hash && document.getElementById(location.hash.substr(1))) {
147 $(window).scrollTop(window.scrollY - 75);
148 }
149 }
150 window.addEventListener("hashchange", offsetHashLink);
151 if (location.hash) {
152 window.setTimeout(offsetHashLink, 10);

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected