diff options
| author | sD <stoned@derpymail.org> | 2019-12-21 15:32:25 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2019-12-21 15:32:25 +0100 |
| commit | 1c46a4c775872321271d9d11577503737ef14279 (patch) | |
| tree | 81572b7655b31005acc1ed682f7f64e1aaaddc65 | |
| parent | 6fbb25deaa32c3a802067072a06f25a8d9f23955 (diff) | |
add showname ui
| -rw-r--r-- | webAO/client.html | 8 | ||||
| -rw-r--r-- | webAO/client.js | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/webAO/client.html b/webAO/client.html index 64ddcc1..b2ea02c 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -229,6 +229,14 @@ </select> <br> <br> + <span id="cccc" style="display: none"> + <label for="ic_chat_name">Custom Showname:</label> + <input id="ic_chat_name" name="ic_chat_name" class="short" type="text"> + <label for="showname">Show others:</label> + <input id="showname" name="showname" type="checkbox"> + </span> + <br> + <br> <div class="slider">Music <input id="client_mvolume" class="long" type="range" min="0" max="100" value="80" onchange="changeMusicVolume()"> diff --git a/webAO/client.js b/webAO/client.js index ed28819..5702e13 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -838,6 +838,9 @@ class Client extends EventEmitter { handleFL(args) { console.info("Server-supported features:"); console.info(args); + if (args.contains("cccc_ic_support")) { + document.getElementById("cccc").style.display = ""; + } } /** |
