Created
July 7, 2020 09:18
-
-
Save ksdme/eab795e75651f79e29b00688734fd954 to your computer and use it in GitHub Desktop.
Theater mode for http://jukebox.today/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const style = document.createElement('style'); | |
style.innerHTML = ` | |
.theater .js-jukebox-list { | |
display: none !important; | |
} | |
.theater .current__info { | |
display: none !important; | |
} | |
.theater .current__options { | |
display: none !important; | |
} | |
.theater .js-jukebox-current { | |
height: 100% !important; | |
} | |
.theater .current__video { | |
height: 100% !important; | |
width: 100% !important; | |
top: 0 !important; | |
left: 0 !important; | |
} | |
`; | |
document.head.append(style); | |
const handleOnClick = () => { | |
const [body] = document.getElementsByTagName('body'); | |
body.classList.toggle('theater'); | |
}; | |
const control = document.createElement('div'); | |
control.className = 'menu__btn menu--right'; | |
control.innerText = 'Theater'; | |
control.onclick = handleOnClick; | |
const bar = document.querySelector('.menu--1'); | |
bar.append(control); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment