aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index a95a9a2..70cc270 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -156,6 +156,14 @@ class Main {
});
}
+ public function toggleVideoElement():Bool {
+ if (player.hasVideo()) player.removeVideo();
+ else if (!player.isListEmpty()) {
+ player.setVideo(player.getItems()[0]);
+ }
+ return player.hasVideo();
+ }
+
public function refreshPlayer():Void {
player.refresh();
}
@@ -358,12 +366,14 @@ class Main {
function showGuestLoginPanel():Void {
ge("#guestlogin").style.display = "block";
ge("#chatline").style.display = "none";
+ Browser.window.dispatchEvent(new Event("resize"));
}
function hideGuestLoginPanel():Void {
ge("#guestlogin").style.display = "none";
ge("#chatline").style.display = "block";
- js.Browser.window.dispatchEvent(new Event("resize"));
+ if (isAdmin()) ge("#clearchatbtn").style.display = "inline-block";
+ Browser.window.dispatchEvent(new Event("resize"));
}
function updateClients(newClients:Array<ClientData>):Void {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage