-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
64 lines (55 loc) · 1.88 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>ふりかえって!平成ちゃん</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="./scripts/speechAPI.js"></script>
<script src="https://cdn.rawgit.com/cidreixd/webmo-library-javascript/master/dist/webmo.min.js"></script>
<script src="./scripts/webmo.js"></script>
<script type="text/javascript">
let speech = "";
var video = document.getElementById('movie');
speak.start();
function load(){
$('#startbutton').hide();
window.setTimeout( start, 3000);
}
function start(){
closeEyes();
var video = document.getElementById('movie');
video.src = "./movies/dareda.mp4";
video.load();
video.loop = false;
video.addEventListener('ended', function() {
video.src = "./movies/dareda-stay.mp4";
video.load();
video.loop = true;
video.play();
});
}
function end() {
openEyes();
var video = document.getElementById('movie');
video.src = "./movies/seikai.mp4";
video.load();
video.loop = false;
video.play();
video.addEventListener('ended', function() {
video.src = "./movies/seikai-stay.mp4";
video.load();
video.loop = true;
video.play();
});
}
</script>
</head>
<body>
<div class="screen">
<iframe src="./movies/mute.mp4" allow="autoplay" style="display:none" id="iframeAudio"></iframe>
<video id="movie" src="./movies/stay.mp4" autoplay loop></video>
<input type="button" id="startbutton" onclick="load();" value="平成ちゃんと遊ぶ!">
</div>
</body>
</html>