Fix carousel when entered with no hash, update links, isbns

This commit is contained in:
Madison Scott-Clary
2020-03-07 22:07:58 -08:00
parent 3da818c289
commit 4e15bf25a5
7 changed files with 50 additions and 35 deletions

View File

@ -30,12 +30,12 @@ function load() {
}
}
// If we enter the page with a hash, select the current item.
switchTab({preventDefault: () => {}});
load();
window.addEventListener('resize', load);
// If we enter the page with no hash, select home.
if (!window.location.hash) {
history.pushState({}, '', '#home');
}
// If we enter the page with a hash, select the current item.
switchTab({preventDefault: () => {}});
load();
window.addEventListener('resize', load);