ちんこ
このコミットが含まれているのは:
コミット
c2feee5b7f
15
index.html
15
index.html
|
@ -6,6 +6,13 @@
|
||||||
<title>動画</title>
|
<title>動画</title>
|
||||||
<script src="vue.js"></script>
|
<script src="vue.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<noscript>
|
||||||
|
<style>
|
||||||
|
#root {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</noscript>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root">
|
<div id="root">
|
||||||
|
@ -22,6 +29,14 @@
|
||||||
</div>
|
</div>
|
||||||
</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>
|
<script src="index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
2
index.js
2
index.js
|
@ -12,7 +12,7 @@ const player = Vue.createApp({
|
||||||
methods: {
|
methods: {
|
||||||
async loadComments() {
|
async loadComments() {
|
||||||
try {
|
try {
|
||||||
const resp = await fetch("comments.json");
|
const resp = await fetch(this.commentJson);
|
||||||
if (!resp.ok) {
|
if (!resp.ok) {
|
||||||
throw new Error(`HTTPエラー: ${resp.status}`);
|
throw new Error(`HTTPエラー: ${resp.status}`);
|
||||||
}
|
}
|
||||||
|
|
読み込み中…
新しいイシューから参照