mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-05 15:58:03 -05:00
Add video randomization
This commit is contained in:
parent
50a5b7d9e7
commit
8b5ce679e9
@ -6,15 +6,25 @@
|
||||
<script src="/js/typegraph.js" defer></script>
|
||||
<title>「shimapan.rocks」</title>
|
||||
</head>
|
||||
<body style="background:#000;margin:0;">
|
||||
<body>
|
||||
<a href="/login"><img src="/img/flower.png"/></a>
|
||||
<canvas id="canvas">
|
||||
きみのブラウザはキャンバスを対応しません。Chromeを ダウンロードしてください。
|
||||
</canvas>
|
||||
<video autoplay loop id="video">
|
||||
<source src="/img/edge.mp4" type="video/mp4"/>
|
||||
</video>
|
||||
<script>document.getElementById("video").volume = 0.2;</script>
|
||||
<script>
|
||||
var videos = [
|
||||
"/img/edge.mp4",
|
||||
"/img/endthis.mp4",
|
||||
"/img/hell.mp4"
|
||||
];
|
||||
var video = document.createElement("source");
|
||||
video.setAttribute("src", videos[Math.floor(Math.random() * videos.length)]);
|
||||
video.setAttribute("type", "video/mp4");
|
||||
document.getElementById("video").appendChild(video);
|
||||
document.getElementById("video").volume = 0.2;
|
||||
</script>
|
||||
<div id="buffer"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user