webkit needs -webkit-full-screen
This commit is contained in:
parent
e4877ab3a9
commit
4af7d4659f
2 changed files with 6 additions and 0 deletions
|
@ -182,3 +182,8 @@ main > .film {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
video.player.fullscreen:-webkit-full-screen {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
|
||||||
if (!video) {
|
if (!video) {
|
||||||
video = document.createElement('video')
|
video = document.createElement('video')
|
||||||
video.classList.add('player')
|
video.classList.add('player')
|
||||||
|
video.classList.add('fullscreen')
|
||||||
setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm')
|
setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm')
|
||||||
video.controls = true
|
video.controls = true
|
||||||
document.querySelector('main').appendChild(video)
|
document.querySelector('main').appendChild(video)
|
||||||
|
|
Loading…
Reference in a new issue