finish turn css

This commit is contained in:
Elijah R 2024-02-02 09:01:01 -05:00 committed by Elijah R
parent 05416caba0
commit e905593896
3 changed files with 18 additions and 9 deletions

View File

@ -87,26 +87,34 @@
display: none;
}
tr.user-admin > td {
tr.user-admin > td, .chat-username-admin {
color: #FF0000 !important;
}
tr.user-moderator > td {
tr.user-moderator > td, .chat-username-moderator {
color: #00FF00 !important;
}
tr.user-turn > td {
background-color: #cfe2ff !important;
--bs-table-bg-state: #cfe2ff !important;
color: #000000;
--bs-table-color: #000000;
}
tr.user-turn > td:hover, tr.user-turn > td:active {
tr.user-turn:hover, tr.user-turn > td:hover {
background-color: #bacbe6 !important;
--bs-table-bg-state: #bacbe6 !important;
}
tr.user-waiting > td {
background-color: #fff3cd !important;
--bs-table-bg-state: #fff3cd !important;
color: #000000;
--bs-table-color: #000000;
}
.tr.user-waiting > td:hover, .tr.user-waiting > td:active {
background-color: #ece1be;
.tr.user-waiting:hover, tr.user-waiting > td:hover {
background-color: #ece1be !important;
--bs-table-bg-state: #ece1be !important;
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html prefix="og: https://ogp.me/ns#">
<head>
<title>Control Collaborative Virtual Machines!</title>
<title>CollabVM</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>

View File

@ -124,6 +124,7 @@ function closeVM() {
// Close the VM
VM.close();
VM = null;
document.title = "CollabVM";
// Remove the canvas
elements.vmDisplay.innerHTML = "";
// Switch to the VM list
@ -183,15 +184,15 @@ function chatMessage(username : string, message : string) {
var msgclass;
switch (rank) {
case Rank.Unregistered:
userclass = "user-unregistered";
userclass = "chat-username-unregistered";
msgclass = "chat-unregistered";
break;
case Rank.Admin:
userclass = "user-admin";
userclass = "chat-username-admin";
msgclass = "chat-admin";
break;
case Rank.Moderator:
userclass = "user-mod";
userclass = "chat-username-moderator";
msgclass = "chat-moderator";
break;
}