mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-28 01:33:23 +00:00
Add "reset" link in HTML
This commit is contained in:
parent
8693936308
commit
88c7b5dced
2 changed files with 15 additions and 0 deletions
|
@ -573,6 +573,12 @@ function playSegment(segmentId, noSeek) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function reset() {
|
||||
ls.clear();
|
||||
location.hash = '';
|
||||
location.reload();
|
||||
}
|
||||
|
||||
var lastHash = '';
|
||||
function playHash(hash) {
|
||||
// console.log('playHash', lastHash, '->', hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue