diff --git a/www/doc/client/addURLPopup.html b/www/doc/client/addURLPopup.html
index e59bd9d..7c0a910 100644
--- a/www/doc/client/addURLPopup.html
+++ b/www/doc/client/addURLPopup.html
@@ -875,7 +875,7 @@
diff --git a/www/doc/client/cPanel.html b/www/doc/client/cPanel.html
index 66be9d8..680689b 100644
--- a/www/doc/client/cPanel.html
+++ b/www/doc/client/cPanel.html
@@ -2602,7 +2602,7 @@
diff --git a/www/doc/client/channel.html b/www/doc/client/channel.html
index 12d5a85..a4d4d6f 100644
--- a/www/doc/client/channel.html
+++ b/www/doc/client/channel.html
@@ -377,7 +377,7 @@
Source:
@@ -1254,7 +1254,7 @@
diff --git a/www/doc/client/channel.js.html b/www/doc/client/channel.js.html
index 99fe36d..33e74ff 100644
--- a/www/doc/client/channel.js.html
+++ b/www/doc/client/channel.js.html
@@ -305,6 +305,26 @@ class channel{
//Set Chat Box Width minimum while Locked to Aspect-Ratio
this.chatBox.chatWidthMinimum = value / 100;
return;
+ case 'userlistHidden':
+ //If the userlist class isn't loaded in yet
+ if(this.userList == null){
+ //We're fuckin' done here
+ return;
+ }
+
+ //Pass value down to UI toggle, making sure to allow for string conversion
+ this.userList.toggleUI(!(value == true || value == "true"));
+ return;
+ case 'cinemaMode':
+ //If the userlist class isn't loaded in yet
+ if(this.player == null){
+ //We're fuckin' done here
+ return;
+ }
+
+ //Pass value down to UI toggle, making sure to allow for string conversion
+ this.player.toggleCinemaMode(value == true || value == "true");
+ return;
}
}
@@ -317,7 +337,9 @@ class channel{
["syncTolerance",0.4],
["liveSyncTolerance", 2],
["syncDelta", 6],
- ["chatWidthMin", 20]
+ ["chatWidthMin", 20],
+ ["userlistHidden", false],
+ ["cinemaMode", false]
]);
}
@@ -354,7 +376,7 @@ const client = new channel();
diff --git a/www/doc/client/chat.js.html b/www/doc/client/chat.js.html
index be80679..7304a74 100644
--- a/www/doc/client/chat.js.html
+++ b/www/doc/client/chat.js.html
@@ -504,7 +504,7 @@ class chatBox{
this.aspectLockIcon.style.display = "inline";
}
-L /**
+ /**
* Re-sizes chat back to aspect ratio on window re-size when chat box is aspect locked
* Also prevents horizontal scroll-bars from chat/window resizing
* @param {Event} event - Event passed down from Event Handler
@@ -525,7 +525,7 @@ L /**
this.handleAutoScroll();
}
-L /**
+ /**
* Re-sizes chat box relative to media aspect ratio
*/
sizeToAspect(){
@@ -667,7 +667,7 @@ L /**
diff --git a/www/doc/client/chatBox.html b/www/doc/client/chatBox.html
index caddc0c..f19126b 100644
--- a/www/doc/client/chatBox.html
+++ b/www/doc/client/chatBox.html
@@ -4712,7 +4712,7 @@ Also prevents horizontal scroll-bars from chat/window resizing
diff --git a/www/doc/client/chatPostprocessor.html b/www/doc/client/chatPostprocessor.html
index bb1dc90..4037169 100644
--- a/www/doc/client/chatPostprocessor.html
+++ b/www/doc/client/chatPostprocessor.html
@@ -1794,7 +1794,7 @@ Internal command used by several text filters to prevent code re-writes
diff --git a/www/doc/client/chatPostprocessor.js.html b/www/doc/client/chatPostprocessor.js.html
index fe217a0..717a4b8 100644
--- a/www/doc/client/chatPostprocessor.js.html
+++ b/www/doc/client/chatPostprocessor.js.html
@@ -671,7 +671,7 @@ class chatPostprocessor{
diff --git a/www/doc/client/clearPopup.html b/www/doc/client/clearPopup.html
index 0717d03..5207cf4 100644
--- a/www/doc/client/clearPopup.html
+++ b/www/doc/client/clearPopup.html
@@ -790,7 +790,7 @@
diff --git a/www/doc/client/commandPreprocessor.html b/www/doc/client/commandPreprocessor.html
index fa0d109..59c0c4f 100644
--- a/www/doc/client/commandPreprocessor.html
+++ b/www/doc/client/commandPreprocessor.html
@@ -1912,7 +1912,7 @@
diff --git a/www/doc/client/commandPreprocessor.js.html b/www/doc/client/commandPreprocessor.js.html
index e9f4fa2..01b02f0 100644
--- a/www/doc/client/commandPreprocessor.js.html
+++ b/www/doc/client/commandPreprocessor.js.html
@@ -371,7 +371,7 @@ class commandProcessor{
diff --git a/www/doc/client/commandProcessor.html b/www/doc/client/commandProcessor.html
index a5325c6..1d9876c 100644
--- a/www/doc/client/commandProcessor.html
+++ b/www/doc/client/commandProcessor.html
@@ -421,7 +421,7 @@
diff --git a/www/doc/client/cpanel.js.html b/www/doc/client/cpanel.js.html
index b992b2c..10ea65f 100644
--- a/www/doc/client/cpanel.js.html
+++ b/www/doc/client/cpanel.js.html
@@ -515,7 +515,7 @@ class poppedPanel{
diff --git a/www/doc/client/defaultTitlesPopup.html b/www/doc/client/defaultTitlesPopup.html
index 6baa3fe..39333cd 100644
--- a/www/doc/client/defaultTitlesPopup.html
+++ b/www/doc/client/defaultTitlesPopup.html
@@ -960,7 +960,7 @@
diff --git a/www/doc/client/emotePanel.html b/www/doc/client/emotePanel.html
index ad9a98e..f8623e5 100644
--- a/www/doc/client/emotePanel.html
+++ b/www/doc/client/emotePanel.html
@@ -2249,7 +2249,7 @@
diff --git a/www/doc/client/global.html b/www/doc/client/global.html
index 65242c2..0372855 100644
--- a/www/doc/client/global.html
+++ b/www/doc/client/global.html
@@ -156,7 +156,7 @@
Source:
@@ -208,7 +208,7 @@
diff --git a/www/doc/client/hlsBase.html b/www/doc/client/hlsBase.html
index 7647acb..fb16373 100644
--- a/www/doc/client/hlsBase.html
+++ b/www/doc/client/hlsBase.html
@@ -2919,7 +2919,7 @@
diff --git a/www/doc/client/hlsLiveStreamHandler.html b/www/doc/client/hlsLiveStreamHandler.html
index 2cfd09b..ceb9fd7 100644
--- a/www/doc/client/hlsLiveStreamHandler.html
+++ b/www/doc/client/hlsLiveStreamHandler.html
@@ -2896,7 +2896,7 @@
diff --git a/www/doc/client/index.html b/www/doc/client/index.html
index 5b9523a..122a3a8 100644
--- a/www/doc/client/index.html
+++ b/www/doc/client/index.html
@@ -87,7 +87,7 @@ This new codebase intends to solve the following issues with the current CyTube
diff --git a/www/doc/client/mediaHandler.html b/www/doc/client/mediaHandler.html
index b3d8708..9a575a6 100644
--- a/www/doc/client/mediaHandler.html
+++ b/www/doc/client/mediaHandler.html
@@ -2701,7 +2701,7 @@
diff --git a/www/doc/client/mediaHandler.js.html b/www/doc/client/mediaHandler.js.html
index 71350a6..1aaac20 100644
--- a/www/doc/client/mediaHandler.js.html
+++ b/www/doc/client/mediaHandler.js.html
@@ -835,7 +835,7 @@ class hlsLiveStreamHandler extends hlsBase{
diff --git a/www/doc/client/newPlaylistPopup.html b/www/doc/client/newPlaylistPopup.html
index c33d0c9..893fa8d 100644
--- a/www/doc/client/newPlaylistPopup.html
+++ b/www/doc/client/newPlaylistPopup.html
@@ -705,7 +705,7 @@
diff --git a/www/doc/client/nullHandler.html b/www/doc/client/nullHandler.html
index 30b6fd5..c01b1a0 100644
--- a/www/doc/client/nullHandler.html
+++ b/www/doc/client/nullHandler.html
@@ -2873,7 +2873,7 @@
diff --git a/www/doc/client/panelObj.html b/www/doc/client/panelObj.html
index 5b4e567..b043fd5 100644
--- a/www/doc/client/panelObj.html
+++ b/www/doc/client/panelObj.html
@@ -909,7 +909,7 @@
diff --git a/www/doc/client/panels_emotePanel.js.html b/www/doc/client/panels_emotePanel.js.html
index 23a022f..00a3590 100644
--- a/www/doc/client/panels_emotePanel.js.html
+++ b/www/doc/client/panels_emotePanel.js.html
@@ -353,7 +353,7 @@ class emotePanel extends panelObj{
diff --git a/www/doc/client/panels_queuePanel_playlistManager.js.html b/www/doc/client/panels_queuePanel_playlistManager.js.html
index 10dcabb..a5202b1 100644
--- a/www/doc/client/panels_queuePanel_playlistManager.js.html
+++ b/www/doc/client/panels_queuePanel_playlistManager.js.html
@@ -983,7 +983,7 @@ class renamePopup{
diff --git a/www/doc/client/panels_queuePanel_queuePanel.js.html b/www/doc/client/panels_queuePanel_queuePanel.js.html
index dff9be9..35c1181 100644
--- a/www/doc/client/panels_queuePanel_queuePanel.js.html
+++ b/www/doc/client/panels_queuePanel_queuePanel.js.html
@@ -1679,7 +1679,7 @@ class clearPopup{
diff --git a/www/doc/client/panels_settingsPanel.js.html b/www/doc/client/panels_settingsPanel.js.html
index 72232f3..30966cc 100644
--- a/www/doc/client/panels_settingsPanel.js.html
+++ b/www/doc/client/panels_settingsPanel.js.html
@@ -230,7 +230,7 @@ class settingsPanel extends panelObj{
diff --git a/www/doc/client/player.html b/www/doc/client/player.html
index 6804765..07e70e7 100644
--- a/www/doc/client/player.html
+++ b/www/doc/client/player.html
@@ -1852,7 +1852,7 @@ Might seem weird to keep this here instead of the HLS handler, but remember we m
Source:
@@ -2412,7 +2412,7 @@ Might seem weird to keep this here instead of the HLS handler, but remember we m
Source:
@@ -3462,7 +3462,7 @@ Might seem weird to keep this here instead of the HLS handler, but remember we m
diff --git a/www/doc/client/player.js.html b/www/doc/client/player.js.html
index adbc5a9..e50e665 100644
--- a/www/doc/client/player.js.html
+++ b/www/doc/client/player.js.html
@@ -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{
diff --git a/www/doc/client/playlistManager.html b/www/doc/client/playlistManager.html
index 1d0ccce..1b16f7a 100644
--- a/www/doc/client/playlistManager.html
+++ b/www/doc/client/playlistManager.html
@@ -3631,7 +3631,7 @@
diff --git a/www/doc/client/poppedPanel.html b/www/doc/client/poppedPanel.html
index 1803f2b..4ec2e3b 100644
--- a/www/doc/client/poppedPanel.html
+++ b/www/doc/client/poppedPanel.html
@@ -1442,7 +1442,7 @@
diff --git a/www/doc/client/queuePanel.html b/www/doc/client/queuePanel.html
index 3c17906..2e82372 100644
--- a/www/doc/client/queuePanel.html
+++ b/www/doc/client/queuePanel.html
@@ -5313,7 +5313,7 @@
diff --git a/www/doc/client/rawFileBase.html b/www/doc/client/rawFileBase.html
index f7b27fb..fe9e240 100644
--- a/www/doc/client/rawFileBase.html
+++ b/www/doc/client/rawFileBase.html
@@ -2914,7 +2914,7 @@
diff --git a/www/doc/client/rawFileHandler.html b/www/doc/client/rawFileHandler.html
index 75a7113..33c713e 100644
--- a/www/doc/client/rawFileHandler.html
+++ b/www/doc/client/rawFileHandler.html
@@ -2896,7 +2896,7 @@
diff --git a/www/doc/client/renamePopup.html b/www/doc/client/renamePopup.html
index b94cc7c..9108d99 100644
--- a/www/doc/client/renamePopup.html
+++ b/www/doc/client/renamePopup.html
@@ -875,7 +875,7 @@
diff --git a/www/doc/client/reschedulePopup.html b/www/doc/client/reschedulePopup.html
index 0aae8da..0a1a26e 100644
--- a/www/doc/client/reschedulePopup.html
+++ b/www/doc/client/reschedulePopup.html
@@ -1050,7 +1050,7 @@
diff --git a/www/doc/client/schedulePopup.html b/www/doc/client/schedulePopup.html
index 1706ecc..91afd6a 100644
--- a/www/doc/client/schedulePopup.html
+++ b/www/doc/client/schedulePopup.html
@@ -960,7 +960,7 @@
diff --git a/www/doc/client/settingsPanel.html b/www/doc/client/settingsPanel.html
index 7fcaff6..d7315a7 100644
--- a/www/doc/client/settingsPanel.html
+++ b/www/doc/client/settingsPanel.html
@@ -2017,7 +2017,7 @@
diff --git a/www/doc/client/userList.html b/www/doc/client/userList.html
index 29f4bdd..4b4b6b2 100644
--- a/www/doc/client/userList.html
+++ b/www/doc/client/userList.html
@@ -1191,7 +1191,7 @@
diff --git a/www/doc/client/userlist.js.html b/www/doc/client/userlist.js.html
index 6089037..f59a133 100644
--- a/www/doc/client/userlist.js.html
+++ b/www/doc/client/userlist.js.html
@@ -226,6 +226,8 @@ class userList{
}
toggleUI(show = !this.userDiv.checkVisibility()){
+ localStorage.setItem("userlistHidden", !show);
+
if(show){
this.userDiv.style.display = "flex";
this.toggleIcon.classList.replace("bi-caret-left-fill","bi-caret-down-fill");
@@ -252,7 +254,7 @@ class userList{
diff --git a/www/doc/client/youtubeEmbedHandler.html b/www/doc/client/youtubeEmbedHandler.html
index 44e2470..fb50e5e 100644
--- a/www/doc/client/youtubeEmbedHandler.html
+++ b/www/doc/client/youtubeEmbedHandler.html
@@ -2891,7 +2891,7 @@
diff --git a/www/doc/server/activeChannel.html b/www/doc/server/activeChannel.html
index 8a1e364..4282bba 100644
--- a/www/doc/server/activeChannel.html
+++ b/www/doc/server/activeChannel.html
@@ -1224,7 +1224,7 @@
diff --git a/www/doc/server/app_channel_activeChannel.js.html b/www/doc/server/app_channel_activeChannel.js.html
index 85ae37d..7f8e700 100644
--- a/www/doc/server/app_channel_activeChannel.js.html
+++ b/www/doc/server/app_channel_activeChannel.js.html
@@ -221,7 +221,7 @@ module.exports = activeChannel;
diff --git a/www/doc/server/app_channel_channelManager.js.html b/www/doc/server/app_channel_channelManager.js.html
index b4f54c0..cc074cd 100644
--- a/www/doc/server/app_channel_channelManager.js.html
+++ b/www/doc/server/app_channel_channelManager.js.html
@@ -352,7 +352,7 @@ module.exports = channelManager;
diff --git a/www/doc/server/app_channel_chat.js.html b/www/doc/server/app_channel_chat.js.html
index 29b3323..cb04f9f 100644
--- a/www/doc/server/app_channel_chat.js.html
+++ b/www/doc/server/app_channel_chat.js.html
@@ -104,7 +104,7 @@ module.exports = chat;
diff --git a/www/doc/server/app_channel_chatBuffer.js.html b/www/doc/server/app_channel_chatBuffer.js.html
index 58a9823..58c7959 100644
--- a/www/doc/server/app_channel_chatBuffer.js.html
+++ b/www/doc/server/app_channel_chatBuffer.js.html
@@ -200,7 +200,7 @@ module.exports = chatBuffer;
diff --git a/www/doc/server/app_channel_chatHandler.js.html b/www/doc/server/app_channel_chatHandler.js.html
index a6890d3..e4924c3 100644
--- a/www/doc/server/app_channel_chatHandler.js.html
+++ b/www/doc/server/app_channel_chatHandler.js.html
@@ -384,7 +384,7 @@ module.exports = chatHandler;
diff --git a/www/doc/server/app_channel_commandPreprocessor.js.html b/www/doc/server/app_channel_commandPreprocessor.js.html
index f89d27f..a4b1af5 100644
--- a/www/doc/server/app_channel_commandPreprocessor.js.html
+++ b/www/doc/server/app_channel_commandPreprocessor.js.html
@@ -488,7 +488,7 @@ module.exports = commandPreprocessor;
diff --git a/www/doc/server/app_channel_connectedUser.js.html b/www/doc/server/app_channel_connectedUser.js.html
index 9e065d8..9f2e19e 100644
--- a/www/doc/server/app_channel_connectedUser.js.html
+++ b/www/doc/server/app_channel_connectedUser.js.html
@@ -366,7 +366,7 @@ module.exports = connectedUser;
diff --git a/www/doc/server/app_channel_media_media.js.html b/www/doc/server/app_channel_media_media.js.html
index f85f6a9..65fc3d5 100644
--- a/www/doc/server/app_channel_media_media.js.html
+++ b/www/doc/server/app_channel_media_media.js.html
@@ -110,7 +110,7 @@ module.exports = media;
diff --git a/www/doc/server/app_channel_media_playlistHandler.js.html b/www/doc/server/app_channel_media_playlistHandler.js.html
index 4e7ae08..282bb1a 100644
--- a/www/doc/server/app_channel_media_playlistHandler.js.html
+++ b/www/doc/server/app_channel_media_playlistHandler.js.html
@@ -1185,7 +1185,7 @@ module.exports = playlistHandler;
diff --git a/www/doc/server/app_channel_media_queue.js.html b/www/doc/server/app_channel_media_queue.js.html
index 62b12db..0b49033 100644
--- a/www/doc/server/app_channel_media_queue.js.html
+++ b/www/doc/server/app_channel_media_queue.js.html
@@ -1824,7 +1824,7 @@ module.exports = queue;
diff --git a/www/doc/server/app_channel_media_queuedMedia.js.html b/www/doc/server/app_channel_media_queuedMedia.js.html
index ff2434c..632fcc1 100644
--- a/www/doc/server/app_channel_media_queuedMedia.js.html
+++ b/www/doc/server/app_channel_media_queuedMedia.js.html
@@ -180,7 +180,7 @@ module.exports = queuedMedia;
diff --git a/www/doc/server/app_channel_tokebot.js.html b/www/doc/server/app_channel_tokebot.js.html
index 6816142..3f08f2c 100644
--- a/www/doc/server/app_channel_tokebot.js.html
+++ b/www/doc/server/app_channel_tokebot.js.html
@@ -299,7 +299,7 @@ module.exports = tokebot;
diff --git a/www/doc/server/channelManager.html b/www/doc/server/channelManager.html
index 101b81d..521158a 100644
--- a/www/doc/server/channelManager.html
+++ b/www/doc/server/channelManager.html
@@ -2181,7 +2181,7 @@
diff --git a/www/doc/server/chat.html b/www/doc/server/chat.html
index 53a0ebe..56d1a41 100644
--- a/www/doc/server/chat.html
+++ b/www/doc/server/chat.html
@@ -705,7 +705,7 @@
diff --git a/www/doc/server/chatBuffer.html b/www/doc/server/chatBuffer.html
index d52127b..8e4e49f 100644
--- a/www/doc/server/chatBuffer.html
+++ b/www/doc/server/chatBuffer.html
@@ -1329,7 +1329,7 @@ Left here since it seems like good form anywho, since this would be a private, o
diff --git a/www/doc/server/chatHandler.html b/www/doc/server/chatHandler.html
index 7d120e7..d8b7e8f 100644
--- a/www/doc/server/chatHandler.html
+++ b/www/doc/server/chatHandler.html
@@ -3876,7 +3876,7 @@
diff --git a/www/doc/server/commandPreprocessor.html b/www/doc/server/commandPreprocessor.html
index 75c0e76..2810dbf 100644
--- a/www/doc/server/commandPreprocessor.html
+++ b/www/doc/server/commandPreprocessor.html
@@ -1498,7 +1498,7 @@ These arrays are used to handle further command/chat processing
diff --git a/www/doc/server/commandProcessor.html b/www/doc/server/commandProcessor.html
index cba8ebe..ad7ab52 100644
--- a/www/doc/server/commandProcessor.html
+++ b/www/doc/server/commandProcessor.html
@@ -1831,7 +1831,7 @@
diff --git a/www/doc/server/connectedUser.html b/www/doc/server/connectedUser.html
index 05fe784..215e6b0 100644
--- a/www/doc/server/connectedUser.html
+++ b/www/doc/server/connectedUser.html
@@ -2441,7 +2441,7 @@ Having to crawl through these sockets is that. Because the other ways seem more
diff --git a/www/doc/server/global.html b/www/doc/server/global.html
index 378d9bd..814d57e 100644
--- a/www/doc/server/global.html
+++ b/www/doc/server/global.html
@@ -7537,7 +7537,7 @@ Warns server admin against unsafe config options.
diff --git a/www/doc/server/index.html b/www/doc/server/index.html
index f66d8ba..91a9b2f 100644
--- a/www/doc/server/index.html
+++ b/www/doc/server/index.html
@@ -87,7 +87,7 @@ This new codebase intends to solve the following issues with the current CyTube
diff --git a/www/doc/server/media.html b/www/doc/server/media.html
index 8a084b1..8563f4d 100644
--- a/www/doc/server/media.html
+++ b/www/doc/server/media.html
@@ -790,7 +790,7 @@
diff --git a/www/doc/server/playlistHandler.html b/www/doc/server/playlistHandler.html
index a8b2db8..35802bb 100644
--- a/www/doc/server/playlistHandler.html
+++ b/www/doc/server/playlistHandler.html
@@ -5236,7 +5236,7 @@
diff --git a/www/doc/server/queue.html b/www/doc/server/queue.html
index c9d5ef5..7413f61 100644
--- a/www/doc/server/queue.html
+++ b/www/doc/server/queue.html
@@ -6677,7 +6677,7 @@ Called auto-magically by the Synchronization Timer
diff --git a/www/doc/server/queuedMedia.html b/www/doc/server/queuedMedia.html
index 80f4833..43f597b 100644
--- a/www/doc/server/queuedMedia.html
+++ b/www/doc/server/queuedMedia.html
@@ -1719,7 +1719,7 @@
diff --git a/www/doc/server/schemas_channel_channelBanSchema.js.html b/www/doc/server/schemas_channel_channelBanSchema.js.html
index 0c153ee..a6b5545 100644
--- a/www/doc/server/schemas_channel_channelBanSchema.js.html
+++ b/www/doc/server/schemas_channel_channelBanSchema.js.html
@@ -101,7 +101,7 @@ module.exports = channelBanSchema;
diff --git a/www/doc/server/schemas_channel_channelPermissionSchema.js.html b/www/doc/server/schemas_channel_channelPermissionSchema.js.html
index e38a92b..b30ac6a 100644
--- a/www/doc/server/schemas_channel_channelPermissionSchema.js.html
+++ b/www/doc/server/schemas_channel_channelPermissionSchema.js.html
@@ -169,7 +169,7 @@ module.exports = channelPermissionSchema;
diff --git a/www/doc/server/schemas_channel_channelSchema.js.html b/www/doc/server/schemas_channel_channelSchema.js.html
index 74bd89b..74c6706 100644
--- a/www/doc/server/schemas_channel_channelSchema.js.html
+++ b/www/doc/server/schemas_channel_channelSchema.js.html
@@ -934,7 +934,7 @@ module.exports = mongoose.model("channel", channelSchema);
diff --git a/www/doc/server/schemas_channel_chatSchema.js.html b/www/doc/server/schemas_channel_chatSchema.js.html
index 0c1b259..17dc25c 100644
--- a/www/doc/server/schemas_channel_chatSchema.js.html
+++ b/www/doc/server/schemas_channel_chatSchema.js.html
@@ -96,7 +96,7 @@ module.exports = chatSchema;
diff --git a/www/doc/server/schemas_channel_media_mediaSchema.js.html b/www/doc/server/schemas_channel_media_mediaSchema.js.html
index 3712212..e228fc2 100644
--- a/www/doc/server/schemas_channel_media_mediaSchema.js.html
+++ b/www/doc/server/schemas_channel_media_mediaSchema.js.html
@@ -96,7 +96,7 @@ module.exports = mediaSchema;
diff --git a/www/doc/server/schemas_channel_media_playlistMediaSchema.js.html b/www/doc/server/schemas_channel_media_playlistMediaSchema.js.html
index 54b985e..d42947a 100644
--- a/www/doc/server/schemas_channel_media_playlistMediaSchema.js.html
+++ b/www/doc/server/schemas_channel_media_playlistMediaSchema.js.html
@@ -124,7 +124,7 @@ module.exports = mediaSchema.discriminator('saved', playlistMediaProperties);
diff --git a/www/doc/server/schemas_channel_media_playlistSchema.js.html b/www/doc/server/schemas_channel_media_playlistSchema.js.html
index 8d54516..5e087f0 100644
--- a/www/doc/server/schemas_channel_media_playlistSchema.js.html
+++ b/www/doc/server/schemas_channel_media_playlistSchema.js.html
@@ -174,7 +174,7 @@ module.exports = playlistSchema;
diff --git a/www/doc/server/schemas_channel_media_queuedMediaSchema.js.html b/www/doc/server/schemas_channel_media_queuedMediaSchema.js.html
index d81d4f5..dcdbd8f 100644
--- a/www/doc/server/schemas_channel_media_queuedMediaSchema.js.html
+++ b/www/doc/server/schemas_channel_media_queuedMediaSchema.js.html
@@ -113,7 +113,7 @@ module.exports = mediaSchema.discriminator('queued', queuedProperties);
diff --git a/www/doc/server/schemas_emoteSchema.js.html b/www/doc/server/schemas_emoteSchema.js.html
index 1d30a63..269b558 100644
--- a/www/doc/server/schemas_emoteSchema.js.html
+++ b/www/doc/server/schemas_emoteSchema.js.html
@@ -164,7 +164,7 @@ module.exports = mongoose.model("emote", emoteSchema);
diff --git a/www/doc/server/schemas_flairSchema.js.html b/www/doc/server/schemas_flairSchema.js.html
index ea28ff4..2dc800f 100644
--- a/www/doc/server/schemas_flairSchema.js.html
+++ b/www/doc/server/schemas_flairSchema.js.html
@@ -118,7 +118,7 @@ module.exports = mongoose.model("flair", flairSchema);
diff --git a/www/doc/server/schemas_permissionSchema.js.html b/www/doc/server/schemas_permissionSchema.js.html
index 39a48e7..50e0257 100644
--- a/www/doc/server/schemas_permissionSchema.js.html
+++ b/www/doc/server/schemas_permissionSchema.js.html
@@ -356,7 +356,7 @@ module.exports = mongoose.model("permissions", permissionSchema);
diff --git a/www/doc/server/schemas_statSchema.js.html b/www/doc/server/schemas_statSchema.js.html
index eacaf80..4ad3647 100644
--- a/www/doc/server/schemas_statSchema.js.html
+++ b/www/doc/server/schemas_statSchema.js.html
@@ -240,7 +240,7 @@ module.exports = mongoose.model("statistics", statSchema);
diff --git a/www/doc/server/schemas_tokebot_tokeCommandSchema.js.html b/www/doc/server/schemas_tokebot_tokeCommandSchema.js.html
index 8413927..2c9a8e8 100644
--- a/www/doc/server/schemas_tokebot_tokeCommandSchema.js.html
+++ b/www/doc/server/schemas_tokebot_tokeCommandSchema.js.html
@@ -160,7 +160,7 @@ module.exports = mongoose.model("tokeCommand", tokeCommandSchema);
diff --git a/www/doc/server/schemas_user_emailChangeSchema.js.html b/www/doc/server/schemas_user_emailChangeSchema.js.html
index cbae2e1..211da9d 100644
--- a/www/doc/server/schemas_user_emailChangeSchema.js.html
+++ b/www/doc/server/schemas_user_emailChangeSchema.js.html
@@ -222,7 +222,7 @@ module.exports = mongoose.model("emailChange", emailChangeSchema);
diff --git a/www/doc/server/schemas_user_passwordResetSchema.js.html b/www/doc/server/schemas_user_passwordResetSchema.js.html
index 67ffc94..4cb3383 100644
--- a/www/doc/server/schemas_user_passwordResetSchema.js.html
+++ b/www/doc/server/schemas_user_passwordResetSchema.js.html
@@ -204,7 +204,7 @@ module.exports = mongoose.model("passwordReset", passwordResetSchema);
diff --git a/www/doc/server/schemas_user_userBanSchema.js.html b/www/doc/server/schemas_user_userBanSchema.js.html
index aa94c9d..9b68f85 100644
--- a/www/doc/server/schemas_user_userBanSchema.js.html
+++ b/www/doc/server/schemas_user_userBanSchema.js.html
@@ -521,7 +521,7 @@ module.exports = mongoose.model("userBan", userBanSchema);
diff --git a/www/doc/server/schemas_user_userSchema.js.html b/www/doc/server/schemas_user_userSchema.js.html
index d14856e..e54a80f 100644
--- a/www/doc/server/schemas_user_userSchema.js.html
+++ b/www/doc/server/schemas_user_userSchema.js.html
@@ -888,7 +888,7 @@ module.exports.userModel = mongoose.model("user", userSchema);
diff --git a/www/doc/server/tokebot.html b/www/doc/server/tokebot.html
index 243dc15..8ce590a 100644
--- a/www/doc/server/tokebot.html
+++ b/www/doc/server/tokebot.html
@@ -1403,7 +1403,7 @@ I would now, but I don't want to break shit in a comment-only commit.
diff --git a/www/doc/server/utils_altchaUtils.js.html b/www/doc/server/utils_altchaUtils.js.html
index 9eea7b0..4d2664b 100644
--- a/www/doc/server/utils_altchaUtils.js.html
+++ b/www/doc/server/utils_altchaUtils.js.html
@@ -118,7 +118,7 @@ module.exports.verify = async function(payload, uniqueSecret = ''){
diff --git a/www/doc/server/utils_configCheck.js.html b/www/doc/server/utils_configCheck.js.html
index 54d8ec1..1b3adc5 100644
--- a/www/doc/server/utils_configCheck.js.html
+++ b/www/doc/server/utils_configCheck.js.html
@@ -108,7 +108,7 @@ module.exports.securityCheck = function(){
diff --git a/www/doc/server/utils_hashUtils.js.html b/www/doc/server/utils_hashUtils.js.html
index 4928c8c..4b1b7de 100644
--- a/www/doc/server/utils_hashUtils.js.html
+++ b/www/doc/server/utils_hashUtils.js.html
@@ -103,7 +103,7 @@ module.exports.hashIP = function(ip){
diff --git a/www/doc/server/utils_linkUtils.js.html b/www/doc/server/utils_linkUtils.js.html
index a2a1f12..7af678c 100644
--- a/www/doc/server/utils_linkUtils.js.html
+++ b/www/doc/server/utils_linkUtils.js.html
@@ -146,7 +146,7 @@ module.exports.markLink = async function(link){
diff --git a/www/doc/server/utils_loggerUtils.js.html b/www/doc/server/utils_loggerUtils.js.html
index b4fd6fa..94184ad 100644
--- a/www/doc/server/utils_loggerUtils.js.html
+++ b/www/doc/server/utils_loggerUtils.js.html
@@ -227,7 +227,7 @@ module.exports.dumpError = function(err, date = new Date()){
diff --git a/www/doc/server/utils_mailUtils.js.html b/www/doc/server/utils_mailUtils.js.html
index 554ffb8..382c15f 100644
--- a/www/doc/server/utils_mailUtils.js.html
+++ b/www/doc/server/utils_mailUtils.js.html
@@ -140,7 +140,7 @@ module.exports.sendAddressVerification = async function(requestDB, userDB, newEm
diff --git a/www/doc/server/utils_media_internetArchiveUtils.js.html b/www/doc/server/utils_media_internetArchiveUtils.js.html
index 1478f36..64e1c04 100644
--- a/www/doc/server/utils_media_internetArchiveUtils.js.html
+++ b/www/doc/server/utils_media_internetArchiveUtils.js.html
@@ -154,7 +154,7 @@ module.exports.fetchMetadata = async function(fullID, title){
diff --git a/www/doc/server/utils_media_yanker.js.html b/www/doc/server/utils_media_yanker.js.html
index 29324f9..0f0f9e9 100644
--- a/www/doc/server/utils_media_yanker.js.html
+++ b/www/doc/server/utils_media_yanker.js.html
@@ -193,7 +193,7 @@ module.exports.getMediaType = async function(url){
diff --git a/www/doc/server/utils_media_ytdlpUtils.js.html b/www/doc/server/utils_media_ytdlpUtils.js.html
index 31aa839..c22eaa7 100644
--- a/www/doc/server/utils_media_ytdlpUtils.js.html
+++ b/www/doc/server/utils_media_ytdlpUtils.js.html
@@ -186,7 +186,7 @@ async function ytdlpFetch(link, format = 'b'){
diff --git a/www/doc/server/utils_regexUtils.js.html b/www/doc/server/utils_regexUtils.js.html
index 00b0571..82e6bea 100644
--- a/www/doc/server/utils_regexUtils.js.html
+++ b/www/doc/server/utils_regexUtils.js.html
@@ -69,7 +69,7 @@ module.exports.escapeRegex = function(string){
diff --git a/www/doc/server/utils_scheduler.js.html b/www/doc/server/utils_scheduler.js.html
index 3474b81..d01450e 100644
--- a/www/doc/server/utils_scheduler.js.html
+++ b/www/doc/server/utils_scheduler.js.html
@@ -105,7 +105,7 @@ module.exports.kickoff = function(){
diff --git a/www/doc/server/utils_sessionUtils.js.html b/www/doc/server/utils_sessionUtils.js.html
index 9ecd5b8..af1c60f 100644
--- a/www/doc/server/utils_sessionUtils.js.html
+++ b/www/doc/server/utils_sessionUtils.js.html
@@ -236,7 +236,7 @@ module.exports.maxAttempts = maxAttempts;
diff --git a/www/js/channel/channel.js b/www/js/channel/channel.js
index b8b5305..ba4f433 100644
--- a/www/js/channel/channel.js
+++ b/www/js/channel/channel.js
@@ -277,6 +277,26 @@ class channel{
//Set Chat Box Width minimum while Locked to Aspect-Ratio
this.chatBox.chatWidthMinimum = value / 100;
return;
+ case 'userlistHidden':
+ //If the userlist class isn't loaded in yet
+ if(this.userList == null){
+ //We're fuckin' done here
+ return;
+ }
+
+ //Pass value down to UI toggle, making sure to allow for string conversion
+ this.userList.toggleUI(!(value == true || value == "true"));
+ return;
+ case 'cinemaMode':
+ //If the userlist class isn't loaded in yet
+ if(this.player == null){
+ //We're fuckin' done here
+ return;
+ }
+
+ //Pass value down to UI toggle, making sure to allow for string conversion
+ this.player.toggleCinemaMode(value == true || value == "true");
+ return;
}
}
@@ -289,7 +309,9 @@ class channel{
["syncTolerance",0.4],
["liveSyncTolerance", 2],
["syncDelta", 6],
- ["chatWidthMin", 20]
+ ["chatWidthMin", 20],
+ ["userlistHidden", false],
+ ["cinemaMode", false]
]);
}
diff --git a/www/js/channel/player.js b/www/js/channel/player.js
index fb117c6..568886f 100644
--- a/www/js/channel/player.js
+++ b/www/js/channel/player.js
@@ -430,11 +430,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
diff --git a/www/js/channel/userlist.js b/www/js/channel/userlist.js
index 67c2a8f..7db5a5e 100644
--- a/www/js/channel/userlist.js
+++ b/www/js/channel/userlist.js
@@ -198,6 +198,8 @@ class userList{
}
toggleUI(show = !this.userDiv.checkVisibility()){
+ localStorage.setItem("userlistHidden", !show);
+
if(show){
this.userDiv.style.display = "flex";
this.toggleIcon.classList.replace("bi-caret-left-fill","bi-caret-down-fill");