diff --git a/assets/ws_debug.js b/assets/ws_debug.js new file mode 100644 index 0000000..b001790 --- /dev/null +++ b/assets/ws_debug.js @@ -0,0 +1,68 @@ +let ws; + +const JS_MESSAGE = "JS code"; +const IN_MESSAGE = "Incoming"; + +/** + * Log message + */ +function log(src, txt) { + const target = document.getElementById("ws_log"); + const msg = document.createElement("div"); + msg.className = "message"; + msg.innerHTML = `
ID | +Description | +Read only | +Network | +Created | +Used | ++ |
---|---|---|---|---|---|---|
{{ client.id.0 }} | +{{ client.description }} | ++ {% if client.readonly_client %} + YES + {% else %} + NO + {% endif %} + | ++ {% if let Some(net) = client.network %} + {{ net }} + {% else %} + Unrestricted + {% endif %} + | +{{ client.fmt_created() }} | +{{ client.fmt_used() }} | ++ + | +
ID | -Description | -Read only | -Network | -Created | -Used | -- |
---|---|---|---|---|---|---|
{{ client.id.0 }} | -{{ client.description }} | -- {% if client.readonly_client %} - YES - {% else %} - NO - {% endif %} - | -- {% if let Some(net) = client.network %} - {{ net }} - {% else %} - Unrestricted - {% endif %} - | -{{ client.fmt_created() }} | -{{ client.fmt_used() }} | -- - | -
No client registered yet!
- {% endif %} -To obtain a new Matrix authentication token:
-You should not need to replace this value unless you explicitly signed out the associated browser - session.
- -Tip: you can rename the session to easily identify it among all your other sessions!
- - -No client registered yet!
+ {% endif %}To obtain a new Matrix authentication token:
+You should not need to replace this value unless you explicitly signed out the associated browser + session.
+ +Tip: you can rename the session to easily identify it among all your other sessions!
+ + +