/
introvideo.html
45 lines (39 loc) · 1.03 KB
/
introvideo.html
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
<!DOCTYPE html>
<html>
<head>
<title>Mission Vista</title>
<link rel="stylesheet" href="css/foundation.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<a href="index.html" class="button tiny success round backButton">Go Back</a>
<video autoplay id="bgvid">
<source src="video/intro/intro.mp4">
</video>
<a href="tech.html" class="button tiny alert round">Skip</a>
<script src="js/vendor/jquery.js"></script>
<script>
$(document).ready(function () {
$("body").on('click', function () {
if($("#bgvid").get(0).paused)
$("#bgvid").get(0).play();
else
$("#bgvid").get(0).pause();
});
document.getElementById('bgvid').addEventListener('ended',myHandler,false);
function myHandler(e) {
if(!e) { e = window.event; }
window.location.href="tech.html";
}
});
document.oncontextmenu=RightMouseDown;
document.onmousedown = mouseDown;
function mouseDown(e) {
if (e.which==3) {
return false;
}
}
function RightMouseDown() { return false;}
</script>
</body>
</html>