(targetId)
| 79 | } |
| 80 | |
| 81 | function scrollIntoView(targetId) { |
| 82 | // Only scroll to element if we don't have a stored scroll position. |
| 83 | if (targetId && !history.state) { |
| 84 | var hashTarget = document.getElementById(targetId); |
| 85 | if (hashTarget) { |
| 86 | hashTarget.scrollIntoView(); |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | function gotoCurrentTarget() { |
| 92 | showHashTarget(location.hash.substring(1)); |