forked from wyliej1/SmartShuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (39 loc) · 1.35 KB
/
index.html
File metadata and controls
46 lines (39 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TODO supply a title</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<script>function VideoObject(name, url, desc){
this.name = name;
this.url = url;
}
var VideoObjectArray = new Array();
function objArrayAdd(nameToAdd, urlToAdd, descToAdd) {
newVideo = new VideoObject(nameToAdd, urlToAdd, descToAdd);
VideoObjectArray.push(newVideo);
}
function objArrayGet() {
var retrievedVideoObject = new VideoObject();
retrievedVideoObject = VideoObjectArray.shift();
if(retrievedVideoObject) {
return retrievedVideoObject.name + ":" +
retrievedVideoObject.url
} else {
return "VideoObjectArray is empty.";
}
}
</script>
<video
src="videos/Gods Plan.mp4"
controls="controls">
</video>
</body>
</html>