aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.html7
-rw-r--r--webAO/client.js6
2 files changed, 13 insertions, 0 deletions
diff --git a/webAO/client.html b/webAO/client.html
index 6c7db4a..2c72d2d 100644
--- a/webAO/client.html
+++ b/webAO/client.html
@@ -116,6 +116,13 @@
<span id="no_action">
No actions available for this role.
</span>
+ <br>
+ <span id="pairing" style="display: none">
+ <label for="pair_select">Pairing partner:</label>
+ <select name="pair_select" id="pair_select"></select>
+ <label for="pair_offset">Pairing offset:</label>
+ <input type="range" name="pair_offset" id="pair_offset" min="0" max="11">
+ </span>
</fieldset>
</div>
</template>
diff --git a/webAO/client.js b/webAO/client.js
index 9fc169a..6437df7 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -562,6 +562,11 @@ class Client extends EventEmitter {
// If it does, give the user a visual indication that the character is unusable
}
+ const mute_select = document.getElementById("mute_select");
+ mute_select.add(new Option(escape(chargs[0]), charid));
+ const pair_select = document.getElementById("pair_select");
+ pair_select.add(new Option(escape(chargs[0]), charid));
+
// sometimes ini files lack important settings
const default_options = {
name: chargs[0],
@@ -891,6 +896,7 @@ class Client extends EventEmitter {
if (args.includes("cccc_ic_support")) {
document.getElementById("cccc").style.display = "";
+ document.getElementById("pairing").style.display = "";
}
}