lint
This commit is contained in:
parent
e197c2364f
commit
a4b0297c3f
3 changed files with 92 additions and 43 deletions
|
|
@ -8,7 +8,11 @@
|
|||
|
||||
<div id="points-admin" class="admin-only">
|
||||
<h2>Admin</h2>
|
||||
<div><a href="monitor.html" onclick="this.href='monitor.html'+location.hash">Monitor</a></div>
|
||||
<div>
|
||||
<a href="monitor.html" onclick="this.href='monitor.html'+location.hash"
|
||||
>Monitor</a
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label>points: <input type="number" name="points" value="0" /></label>
|
||||
<button data-onclick="named.points.valueAsNumber += 100">+ 100</button>
|
||||
|
|
@ -19,30 +23,42 @@
|
|||
<label>tokens: <input type="number" name="tokens" value="0" /></label>
|
||||
</div>
|
||||
<div>
|
||||
<label>monitored:
|
||||
<label
|
||||
>monitored:
|
||||
<input type="text" name="monitored1" value="" />
|
||||
<input type="text" name="monitored2" value="" />
|
||||
<input type="text" name="monitored3" value="" />
|
||||
</label>
|
||||
<button data-onclick="conn.send('control', {targets: [
|
||||
<button
|
||||
data-onclick="conn.send('control', {targets: [
|
||||
named.monitored1.value,
|
||||
named.monitored2.value,
|
||||
named.monitored3.value,
|
||||
], action: 'monitor'})">resubmit</button>
|
||||
], action: 'monitor'})"
|
||||
>
|
||||
resubmit
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<label>text overlay:
|
||||
<textarea name="textbox" data-onselect="
|
||||
<label
|
||||
>text overlay:
|
||||
<textarea
|
||||
name="textbox"
|
||||
data-onselect="
|
||||
const text = target.value.substring(
|
||||
target.selectionStart,
|
||||
target.selectionEnd
|
||||
) || ''
|
||||
conn.send('control', {action: 'text', text})
|
||||
" data-onchange="
|
||||
"
|
||||
data-onchange="
|
||||
if (!target.value.length) {
|
||||
conn.send('control', {action: 'text', text: ''})
|
||||
}
|
||||
"></textarea>
|
||||
"
|
||||
></textarea>
|
||||
</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -56,10 +72,15 @@
|
|||
id="username"
|
||||
placeholder="Please put your name here ..."
|
||||
data-onchange="q('#set-name').disabled = false"
|
||||
/><button id="set-name" data-onclick="
|
||||
/><button
|
||||
id="set-name"
|
||||
data-onclick="
|
||||
set_name(named.username.value)
|
||||
target.disabled = true
|
||||
">set name</button>
|
||||
"
|
||||
>
|
||||
set name
|
||||
</button>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
|
@ -85,7 +106,8 @@
|
|||
<span class="name">player name</span>
|
||||
<div class="admin-only">
|
||||
(<span class="points">points</span> pts) (<span class="tokens">tokens</span> tks)
|
||||
<button data-onclick="(!named.monitored1.value.length ? named.monitored1 :
|
||||
<button
|
||||
data-onclick="(!named.monitored1.value.length ? named.monitored1 :
|
||||
(!named.monitored2.value.length ? named.monitored2 :
|
||||
named.monitored3)).value = client.id;
|
||||
let monitored = [
|
||||
|
|
@ -93,7 +115,8 @@
|
|||
named.monitored2.value,
|
||||
named.monitored3.value,
|
||||
];
|
||||
conn.send('control', {targets: monitored, action: 'monitor'})">
|
||||
conn.send('control', {targets: monitored, action: 'monitor'})"
|
||||
>
|
||||
monitor
|
||||
</button>
|
||||
<button
|
||||
|
|
@ -108,9 +131,12 @@
|
|||
>
|
||||
add tokens
|
||||
</button>
|
||||
<select name="sound" data-onchange="
|
||||
<select
|
||||
name="sound"
|
||||
data-onchange="
|
||||
conn.send('control', {action: 'sound', client_id: client.id, sound: target.value})
|
||||
">
|
||||
"
|
||||
>
|
||||
<option value="">-</option>
|
||||
<option value="bark">bark</option>
|
||||
<option value="chirp">chirp</option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue