mirror of
https://github.com/seigler/HLS-over-IPFS-video-player
synced 2025-07-26 01:06:15 +00:00
fix: document sizing for mobile
This commit is contained in:
parent
c853faf3ca
commit
e9bb3b7df4
2 changed files with 5 additions and 4 deletions
|
@ -47,8 +47,9 @@
|
|||
height: 100%;
|
||||
}
|
||||
#help {
|
||||
max-width: 80ch;
|
||||
padding: 5em;
|
||||
width: 80ch;
|
||||
max-width: 100%;
|
||||
padding: 1em;
|
||||
}
|
||||
pre {
|
||||
background-color: #ffffff1f;
|
||||
|
|
|
@ -5,8 +5,6 @@ import Hls from 'hls.js'
|
|||
import HlsjsIpfsLoader from 'hlsjs-ipfs-loader'
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
setBodyHeight()
|
||||
window.addEventListener('resize', setBodyHeight)
|
||||
const hash = getUrlParameter('hash')
|
||||
const source = getUrlParameter('source')
|
||||
const title = getUrlParameter('title')
|
||||
|
@ -17,6 +15,8 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
}
|
||||
if (hash) {
|
||||
document.getElementById('help').style.display = 'none'
|
||||
setBodyHeight()
|
||||
window.addEventListener('resize', setBodyHeight)
|
||||
const video = document.getElementById('video')
|
||||
video.style.display = 'block'
|
||||
const repoPath = 'ipfs-' + Math.random()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue