MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / updateFullscreenButton

Function updateFullscreenButton

assets/js/video.js:208–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206// updateFullscreenButton changes the icon of the full screen button
207// and tooltip to reflect the current full screen state of the video
208function updateFullscreenButton() {
209 fullscreenIcons.forEach((icon) => icon.classList.toggle('hidden'));
210 console.log("Full Screen toggle");
211 if (document.fullscreenElement) {
212 fullscreenButton.setAttribute('data-title', 'Exit full screen (f)');
213 } else {
214 fullscreenButton.setAttribute('data-title', 'Full screen (f)');
215 }
216}
217
218// togglePip toggles Picture-in-Picture mode on the video
219async function togglePip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected