mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-28 01:33:23 +00:00
add english subtitle
This commit is contained in:
parent
203b6dabd7
commit
4768ffc21a
4 changed files with 15256 additions and 17 deletions
|
@ -312,18 +312,16 @@ function togglePlayPause() {
|
|||
|
||||
function onload() {
|
||||
var video_selector = document.getElementById("video");
|
||||
var video_source_selector = document.getElementById("video-source");
|
||||
var file_selector = document.getElementById("file-selector");
|
||||
if (video_selector.getAttribute("src") == '') {
|
||||
if (video_source_selector.getAttribute("src") == '') {
|
||||
console.log('no video')
|
||||
file_selector.style.display = 'table';
|
||||
document.getElementById("wrapper-video").style.display = 'none';
|
||||
}
|
||||
document.getElementById('fileinput').addEventListener('change', function () {
|
||||
var file = this.files[0];
|
||||
// This code is only for demo ...
|
||||
var fileUrl = URL.createObjectURL(file)
|
||||
console.log(file);
|
||||
console.log(fileUrl)
|
||||
video_selector.src = fileUrl;
|
||||
video_selector.play();
|
||||
file_selector.style.display = 'none';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue