mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-31 08:08:33 +00:00
disabled selection and image dragging, making the site behave less like a site, more like an app
This commit is contained in:
parent
b49da6a8a0
commit
a2367f0c7e
2 changed files with 8 additions and 7 deletions
|
|
@ -9,7 +9,8 @@
|
|||
}
|
||||
|
||||
body {
|
||||
overscroll-behavior: none
|
||||
overscroll-behavior: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.badge-color {
|
||||
|
|
@ -18,13 +19,16 @@ body {
|
|||
}
|
||||
|
||||
.contain-img {
|
||||
object-fit: contain
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.cover-img {
|
||||
object-fit: cover;
|
||||
background-color: var(--color) !important;
|
||||
}
|
||||
img {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
input:invalid {
|
||||
box-shadow: 0 0 0 0.2rem var(--danger-color) !important
|
||||
|
|
|
|||
|
|
@ -134,9 +134,7 @@ async function buildVideo(torrent, opts) { // sets video source and creates a bu
|
|||
} else { // try to resolve name
|
||||
let mediaInformation = await resolveFileMedia({ fileName: selectedFile.name, method: "SearchName" })
|
||||
playerData.nowPlaying = [mediaInformation.media, mediaInformation.episode]
|
||||
if (mediaInformation.media) {
|
||||
navNowPlaying.classList.remove("d-none")
|
||||
}
|
||||
if (mediaInformation.media) navNowPlaying.classList.remove("d-none")
|
||||
}
|
||||
let mediaMetadata
|
||||
// only set mediasession and other shit if the playerdata is parsed correctly
|
||||
|
|
@ -152,8 +150,7 @@ async function buildVideo(torrent, opts) { // sets video source and creates a bu
|
|||
}]
|
||||
});
|
||||
nowPlayingDisplay.innerHTML = `EP ${Number(playerData.nowPlaying[1])}`
|
||||
if (parseInt(playerData.nowPlaying[1]) >= playerData.nowPlaying[0].episodes)
|
||||
bnext.setAttribute("disabled", "")
|
||||
if (parseInt(playerData.nowPlaying[1]) >= playerData.nowPlaying[0].episodes) bnext.setAttribute("disabled", "")
|
||||
if (playerData.nowPlaying[0].streamingEpisodes.length >= Number(playerData.nowPlaying[1])) {
|
||||
let streamingEpisode = playerData.nowPlaying[0].streamingEpisodes.filter(episode => episodeRx.exec(episode.title) && episodeRx.exec(episode.title)[1] == Number(playerData.nowPlaying[1]))[0]
|
||||
video.poster = streamingEpisode.thumbnail
|
||||
|
|
|
|||
Loading…
Reference in a new issue