MCPcopy Create free account
hub / github.com/developit/asyncro / showHashTarget

Function showHashTarget

docs/assets/site.js:86–93  ·  view source on GitHub ↗
(targetId)

Source from the content-addressed store, hash-verified

84}
85
86function showHashTarget(targetId) {
87 var hashTarget = document.getElementById(targetId);
88 // new target is hidden
89 if (hashTarget && hashTarget.offsetHeight === 0 &&
90 hashTarget.parentNode.parentNode.classList.contains('display-none')) {
91 hashTarget.parentNode.parentNode.classList.remove('display-none');
92 }
93}
94
95window.addEventListener('hashchange', function() {
96 showHashTarget(location.hash.substring(1));

Callers 2

site.jsFile · 0.85
preOpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…