diff --git a/dist/index.html b/dist/index.html index d97144f..1e16be3 100644 --- a/dist/index.html +++ b/dist/index.html @@ -32,7 +32,18 @@
- +
+
+ +
+ +
+ +
+ +
+ + diff --git a/dist/script.js b/dist/script.js index b89509d..3d29203 100644 --- a/dist/script.js +++ b/dist/script.js @@ -61,10 +61,15 @@ const wsAddress = "ws://192.168.178.93:50000/ws?auth=aksmdaksdmaskdm213askm" * Begin of code */ const viewersCount = document.getElementById("viewers-count") +const connectionStatus = document.getElementById("connection-status") const checkboxAlpha = document.getElementById("checkbox-alpha") const checkboxBeta = document.getElementById("checkbox-beta") const checkboxStable = document.getElementById("checkbox-stable") -const connectionStatus = document.getElementById("connection-status") +const checkboxApi = document.getElementById("checkbox-api") +const checkboxWs = document.getElementById("checkbox-ws") +const checkboxSse = document.getElementById("checkbox-sse") +const checkboxMailer = document.getElementById("checkbox-mailer") +const checkboxStorage = document.getElementById("checkbox-storage") const messages = document.getElementById("messages") let autoScroll = true; @@ -125,10 +130,6 @@ function clampClosed() { } function formatServiceCode(code) { - if (code == "") { - code = "000" // default value - } - return clampOn() + "" + code + "" + clampClosed() @@ -240,6 +241,12 @@ function connectWS() { if (serviceType == 1 && !checkboxBeta.checked) return if (serviceType == 2 && !checkboxStable.checked) return + if (serviceName == 0 && !checkboxApi.checked) return + if (serviceName == 1 && !checkboxMailer.checked) return + if (serviceName == 2 && !checkboxStorage.checked) return + if (serviceName == 3 && !checkboxSse.checked) return + if (serviceName == 4 && !checkboxWs.checked) return + addMessage(serviceCode, messageType, serviceType, serviceName, data.Msg, timestamp) } } diff --git a/dist/style.css b/dist/style.css index b679a97..cc05c50 100644 --- a/dist/style.css +++ b/dist/style.css @@ -56,7 +56,7 @@ button { border-radius: 6px; } -.checkbox-container{ +.checkbox-container { position: absolute; top: 0; position: -webkit-sticky; /* Safari */