mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2025-02-17 19:30:20 -05:00
Merge branch 'fix_back_to_home' of github.com:LLK/scratchx into gh-pages
This commit is contained in:
commit
0744483ca2
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ $(document).on('click', "[data-action='static-link']", 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