(targetId)
| 65 | } |
| 66 | |
| 67 | function showHashTarget(targetId) { |
| 68 | if (targetId) { |
| 69 | var hashTarget = document.getElementById(targetId); |
| 70 | // new target is hidden |
| 71 | if ( |
| 72 | hashTarget && |
| 73 | hashTarget.offsetHeight === 0 && |
| 74 | hashTarget.parentNode.parentNode.classList.contains('display-none') |
| 75 | ) { |
| 76 | hashTarget.parentNode.parentNode.classList.remove('display-none'); |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | function scrollIntoView(targetId) { |
| 82 | // Only scroll to element if we don't have a stored scroll position. |
no test coverage detected