mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-27 17:23:22 +00:00
assets/scripts.js: Fix playing hash + pre-specified video src
This commit is contained in:
parent
776c2d1aaa
commit
925d950efb
1 changed files with 4 additions and 4 deletions
|
@ -367,7 +367,10 @@ window.onload = function() {
|
|||
var file_selector = document.getElementById("file-selector");
|
||||
function startPlayback() {
|
||||
file_selector.style.display = 'none';
|
||||
playSegment(null);
|
||||
if (window.location.hash)
|
||||
playHash(window.location.hash);
|
||||
else
|
||||
playSegment(null);
|
||||
video_selector.play();
|
||||
}
|
||||
if (video_source_selector.getAttribute("src") == '') {
|
||||
|
@ -422,9 +425,6 @@ window.onload = function() {
|
|||
window.onhashchange = function() {
|
||||
playHash(window.location.hash);
|
||||
};
|
||||
if (window.location.hash) {
|
||||
playHash(window.location.hash);
|
||||
}
|
||||
};
|
||||
|
||||
function seek(ms) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue