Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 51fe435

Browse files
FIX
1 parent 6384373 commit 51fe435

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

public/js/control.js

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -79,62 +79,6 @@ function fullscreenIframe() {
7979
fullScreenIframe(true);
8080
}
8181
}
82-
function fullScreenIframe(value, fullscreenBehavior) {
83-
if (fullscreenBehavior === 'content') {
84-
if (value === true) {
85-
let iframe = document.getElementById('uv-iframe');
86-
iframe.requestFullscreen();
87-
navToggle.classList.remove('dnone');
88-
} else if (value === false) {
89-
document.exitFullscreen();
90-
navToggle.classList.add('dnone');
91-
}
92-
} else {
93-
if (value === true) {
94-
let iframe = document.getElementById('uv-iframe');
95-
navToggle.classList.remove('dnone');
96-
//set to position absolute
97-
iframe.style.position = 'absolute';
98-
//set to top left corner
99-
iframe.style.top = '0';
100-
iframe.style.left = '0';
101-
//set to full width and height
102-
iframe.style.width = '100%';
103-
iframe.style.height = '100%';
104-
//set z-index to 9999
105-
iframe.style.zIndex = '9998';
106-
//add a transition
107-
iframe.style.transition = 'all 0.5s ease-in-out';
108-
} else if (value === false) {
109-
let iframe = document.getElementById('uv-iframe');
110-
navToggle.classList.add('dnone');
111-
//set styles to height: calc(100% - 4rem);width: 100%;border: none;position: fixed;top: 4rem;right: 0;left: 0;bottom: 0;border: none; background: var(--bg-color);
112-
iframe.style.height = 'calc(100% - 4rem)';
113-
iframe.style.width = '100%';
114-
iframe.style.border = 'none';
115-
iframe.style.position = 'fixed';
116-
iframe.style.top = '4rem';
117-
iframe.style.right = '0';
118-
iframe.style.left = '0';
119-
iframe.style.bottom = '0';
120-
iframe.style.border = 'none';
121-
iframe.style.background = 'var(--bg-color)';
122-
iframe.style.transition = 'all 0.5s ease-in-out';
123-
iframe.style.zIndex = '2';
124-
}
125-
}
126-
}
127-
function fullscreenIframe() {
128-
let fullscreenBehavior = localStorage.getItem('fullscreenBehavior');
129-
if (fullscreenBehavior === 'true') {
130-
fullScreenIframe(true);
131-
} else if (fullscreenBehavior === 'false') {
132-
fullScreenIframe(true, 'content');
133-
} else {
134-
localStorage.setItem('fullscreenBehavior', 'true');
135-
fullScreenIframe(true);
136-
}
137-
}
13882
function exitIframe() {
13983
if (
14084
window.location.href === '/games' ||

0 commit comments

Comments
 (0)