Landscape mode for mobile on fullscreen videos; autoplay
This commit is contained in:
parent
e10e343b3b
commit
a7b631231b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
spectre*/
|
spectre*/
|
||||||
*.zip
|
*.zip
|
||||||
*.ttf
|
*.ttf
|
||||||
*_old*
|
*_old*
|
||||||
|
*_bak*
|
@ -75,7 +75,7 @@
|
|||||||
Con la partecipazione degli <strong>abitanti di Fara in Sabina</strong>.
|
Con la partecipazione degli <strong>abitanti di Fara in Sabina</strong>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<strong>Fonica:</strong> Alessandro Rosato (Teatro Potlach), Daniele Ferdani (CR ISPC)
|
<strong>Fonica:</strong> Alessandro Rosato (Teatro Potlach), Daniele Ferdani (CNR ISPC)
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<strong>Aiuto alla produzione:</strong> Alfonsina Pagano, Daniele Ferdani (CNR ISPC)
|
<strong>Aiuto alla produzione:</strong> Alfonsina Pagano, Daniele Ferdani (CNR ISPC)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 759 KiB |
Binary file not shown.
Before Width: | Height: | Size: 762 KiB After Width: | Height: | Size: 657 KiB |
Binary file not shown.
Before Width: | Height: | Size: 556 KiB After Width: | Height: | Size: 762 KiB |
9
js/ui.js
9
js/ui.js
@ -72,4 +72,13 @@ if (window.location.href.includes('credits')) {
|
|||||||
document.addEventListener('readystatechange', () => {
|
document.addEventListener('readystatechange', () => {
|
||||||
Farapp.slideshow();
|
Farapp.slideshow();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Landscape orientation when fullscreen?!
|
||||||
|
* @todo Reliable check for mobile???
|
||||||
|
*/
|
||||||
|
if ("maxTouchPoints" in navigator) {
|
||||||
|
document.addEventListener('fullscreenchange', () => {
|
||||||
|
screen.orientation.lock('landscape');
|
||||||
|
});
|
||||||
}
|
}
|
@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<video class="video-responsive" controls>
|
<video class="video-responsive" controls autoplay>
|
||||||
<source src="" type="video/mp4">
|
<source src="" type="video/mp4">
|
||||||
Il browser non supporta i video integrati
|
Il browser non supporta i video integrati
|
||||||
</video>
|
</video>
|
||||||
|
Loading…
Reference in New Issue
Block a user