mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-08-18 19:37:53 +00:00
timeranges fix XD
This commit is contained in:
parent
cc24853f9a
commit
01c4b2e5ce
2 changed files with 6 additions and 7 deletions
11
app/app.html
11
app/app.html
|
|
@ -188,18 +188,17 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="browse" class="py-10">
|
||||
<div class="text-center pt-5">
|
||||
<section id="browse">
|
||||
<div class="text-center pt-20">
|
||||
<div class="container">
|
||||
<form class="input-group mb-3" action="javascript:search()">
|
||||
<form class="input-group mb-15" action="javascript:search()">
|
||||
<div class="input-group-prepend">
|
||||
<button class="btn btn-primary material-icons px-10" type="submit">search</button>
|
||||
</div>
|
||||
<input type="text" class="form-control search" placeholder="Search" id="search">
|
||||
<input type="text" class="form-control search" placeholder="Anime Name, Image Link or Direct Magnet Link, Torrent File, Hash" id="search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="gallery">
|
||||
</div>
|
||||
|
|
@ -209,7 +208,7 @@
|
|||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/gh/halfmoonui/halfmoon@1.0.4/js/halfmoon.min.js"></script>
|
||||
<script src='animeHandler.js'></script>
|
||||
<script src="animeHandler.js"></script>
|
||||
<script src="playerHandler.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/webtorrent@latest/webtorrent.min.js" defer></script>
|
||||
<script src="torrentHandler.js" defer></script>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ let progresspercent,
|
|||
|
||||
function updateDisplay() {
|
||||
progresspercent = (video.currentTime / duration * 100).toFixed(4)
|
||||
bufferpercent = (video.buffered.end(video.buffered.length - 1) / duration * 100).toFixed(4)
|
||||
bufferpercent = (video.buffered.length == 0 ? 0 : video.buffered.end(video.buffered.length - 1) / duration * 100).toFixed(4)
|
||||
remainingTime = duration - video.currentTime
|
||||
document.documentElement.style.setProperty("--progress", progresspercent + "%");
|
||||
document.documentElement.style.setProperty("--buffer", bufferpercent + "%");
|
||||
|
|
|
|||
Loading…
Reference in a new issue