43 行
1.3 KiB
HTML
43 行
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>動画</title>
|
|
<script src="vue.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
<noscript>
|
|
<style>
|
|
#root {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</noscript>
|
|
</head>
|
|
<body>
|
|
<div id="root">
|
|
<div ref="videoContainer" class="video-container">
|
|
<video ref="videoPlayer" @timeupdate="updateComments" controls>
|
|
<source :src="videoOgv" type="video/ogg" />
|
|
<source :src="videoWebm" type="video/webm" />
|
|
このブラウザは<video>タグが対応していません。
|
|
</video>
|
|
<div class="comments-overlay" v-if="comments.length">
|
|
<div v-for="comment in visibleComments" :key="comment.id" class="comment" :style="{ top: comment.yPos + 'px', animation: comment.animationStyle }">
|
|
{{ comment.text }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<noscript>
|
|
<div class="video-container">
|
|
<video controls>
|
|
<source src="video.ogv" type="video/ogg" />
|
|
<source src="video.webm" type="video/webm" />
|
|
</video>
|
|
</div>
|
|
</noscript>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html>
|