mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 00:58:58 +01:00
add toggleTheaterMode :3
This commit is contained in:
parent
54da43668d
commit
06a9e61330
1 changed files with 18 additions and 2 deletions
|
@ -1075,7 +1075,7 @@ Privacy
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
||||||
<a onclick="if(document.querySelector('.watch-page').style.display === 'grid') {document.querySelector('.watch-page').style.display = 'flex'} else {document.querySelector('.watch-page').style.display = 'grid'}" class="theather"><i class="fa-sharp fa-light fa-up-right-and-down-left-from-center"></i> Theater</a>
|
<a onclick="toggleTheaterMode()"" class="theather"><i class="fa-sharp fa-light fa-up-right-and-down-left-from-center"></i> Theater</a>
|
||||||
|
|
||||||
<% if (inv.comments) { %>
|
<% if (inv.comments) { %>
|
||||||
<input type="checkbox" class="hj" id="j" style="display:none">
|
<input type="checkbox" class="hj" id="j" style="display:none">
|
||||||
|
@ -1859,6 +1859,22 @@ if (/[?&]autoplay=/.test(location.search)) {
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
function toggleTheaterMode() {
|
||||||
|
var videoPlayerContainer = document.querySelector('.video-player-container');
|
||||||
|
if (videoPlayerContainer.classList.contains('theatermodeon')) {
|
||||||
|
videoPlayerContainer.classList.remove('theatermodeon');
|
||||||
|
} else {
|
||||||
|
videoPlayerContainer.classList.add('theatermodeon');
|
||||||
|
}
|
||||||
|
|
||||||
|
var watchPage = document.querySelector('.watch-page');
|
||||||
|
if (watchPage.style.display === 'grid') {
|
||||||
|
watchPage.style.display = 'flex';
|
||||||
|
} else {
|
||||||
|
watchPage.style.display = 'grid';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const languageCode = localStorage.getItem("Language");
|
const languageCode = localStorage.getItem("Language");
|
||||||
const regionCode = localStorage.getItem("Region");
|
const regionCode = localStorage.getItem("Region");
|
||||||
const currentURL = location.href;
|
const currentURL = location.href;
|
||||||
|
|
Loading…
Reference in a new issue