mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-25 00:58:05 -05:00
Show the home page when you hit the back button to go back to it.
This commit is contained in:
parent
498c1ce227
commit
28ee71b70a
1 changed files with 4 additions and 0 deletions
|
@ -292,6 +292,10 @@ $("[data-action='static-link']").click(function(e) {
|
|||
showPage(path);
|
||||
});
|
||||
|
||||
$(window).bind('hashchange', function(e) {
|
||||
if (document.location.hash == '') showPage('home');
|
||||
});
|
||||
|
||||
function showPage(path) {
|
||||
/*
|
||||
* Show a part of the page. The site is set up like
|
||||
|
|
Loading…
Reference in a new issue