mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 11:49:25 +00:00
Re-add channels page
This commit is contained in:
10
src/main/resources/static/js/channels.js
Normal file
10
src/main/resources/static/js/channels.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const channelNameInput = document.getElementById("channel-search");
|
||||
|
||||
function onOpenOverlayButtonClick(event) {
|
||||
event.preventDefault();
|
||||
const channelName = channelNameInput.value.trim().toLowerCase();
|
||||
if (channelName) {
|
||||
const overlayUrl = `/view/${channelName}/broadcast`;
|
||||
window.location.href = overlayUrl;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user