mirror of
https://github.com/Erreur32/html5demos.git
synced 2024-09-30 03:01:30 +02:00
Fixed text
This commit is contained in:
parent
aa0c668756
commit
ff13fd03a5
@ -20,7 +20,7 @@
|
|||||||
<li><a href="/history/third">third</a></li>
|
<li><a href="/history/third">third</a></li>
|
||||||
<li><a href="/history/fourth">fourth</a></li>
|
<li><a href="/history/fourth">fourth</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><small>Note: since these urls aren't real, refreshing the page will land on an invalid url. Due to a bug in Chrome, going back won't cycle the history properly.</small></p>
|
<p><small>Note: since these urls aren't real, refreshing the page will land on an invalid url.</small></p>
|
||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
</article>
|
</article>
|
||||||
<script>
|
<script>
|
||||||
@ -79,12 +79,11 @@ addEvent(examples, 'click', function (event) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// addEvent(window, 'popstate', function (event) {
|
addEvent(window, 'popstate', function (event) {
|
||||||
onpopstate = function (event) {
|
|
||||||
var data = event.state;
|
var data = event.state;
|
||||||
reportEvent(event);
|
reportEvent(event);
|
||||||
reportData(event.state || { url: "unknown", name: "undefined", location: "undefined" });
|
reportData(event.state || { url: "unknown", name: "undefined", location: "undefined" });
|
||||||
};
|
});
|
||||||
|
|
||||||
addEvent(window, 'hashchange', function (event) {
|
addEvent(window, 'hashchange', function (event) {
|
||||||
reportEvent(event);
|
reportEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user