Userlist collapse and cinema mode now state now persistant.
This commit is contained in:
parent
770bdc4794
commit
9650caeed0
101 changed files with 164 additions and 112 deletions
|
|
@ -458,11 +458,13 @@ class player{
|
|||
* Toggles Cinema Mode on or off
|
||||
* @param {Boolean} cinema - Whether or not to enter Cinema Mode. Defaults to toggle if left unspecified
|
||||
*/
|
||||
toggleCinemaMode(cinema = !this.navBar.checkVisibility()){
|
||||
toggleCinemaMode(cinema = this.navBar.checkVisibility()){
|
||||
localStorage.setItem("cinemaMode", cinema);
|
||||
|
||||
if(cinema){
|
||||
this.navBar.style.display = "flex";
|
||||
}else{
|
||||
this.navBar.style.display = "none";
|
||||
}else{
|
||||
this.navBar.style.display = "flex";
|
||||
}
|
||||
|
||||
//Resize the video if we're aspect locked
|
||||
|
|
@ -507,7 +509,7 @@ class player{
|
|||
<br class="clear">
|
||||
|
||||
<footer>
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Sat Sep 06 2025 10:33:49 GMT-0400 (Eastern Daylight Time)
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Sat Sep 06 2025 19:07:57 GMT-0400 (Eastern Daylight Time)
|
||||
</footer>
|
||||
|
||||
<script> prettyPrint(); </script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue