felt/static/index.html

140 lines
5.9 KiB
HTML
Raw Normal View History

2022-12-22 04:45:15 +00:00
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Felt</title>
<meta name="viewport" content="width=device-width" />
2023-07-03 05:10:58 +00:00
<link href="./leaflet.css" rel="stylesheet" />
<link href="./style.css" rel="stylesheet" />
2022-12-22 04:45:15 +00:00
</head>
<body>
2023-07-02 07:10:06 +00:00
<div id="map"></div>
<div id="errWrapper" style='display:none'><button id="closeErr" onclick="closeErr()">x</button><div id="errDiv"></div></div>
2022-12-22 04:45:15 +00:00
<nav>
2023-07-02 07:10:06 +00:00
<section id="user_section">
<details class="ui_win" open><summary>identity</summary>
2023-02-20 17:40:25 +00:00
<label for="name_entry">username</label>
<input id="name_entry" onblur="saveName()">
2023-07-11 06:34:13 +00:00
<details id="theme_accordion"><summary>theme</summary>
<form id="theme_cfg" onsubmit="return false">
<label>bg color<input type="color" id="bg_col_input"/></label><br/>
<label>bg opacity<input type="range" id="bg_col_opacity" min="0" max="255"/></label><br/>
<label>fg color<input type="color" id="fg_col_input"/></label><br/>
<label>fg opacity<input type="range" id="fg_col_opacity" min="0" max="255"/></label><br/>
<label>main color<input type="color" id="main_col_input"/></label><br/>
<label>main opacity<input type="range" id="main_col_opacity" min="0" max="255"/></label><br/>
<label>sub color<input type="color" id="sub_col_input"/></label><br/>
<label>sub opacity<input type="range" id="sub_col_opacity" min="0" max="255"/></label><br/>
<button onclick="setTheme()">Apply</button><button onclick="resetTheme(defaultTheme)">Reset</button>
</form>
</details>
2023-07-02 07:10:06 +00:00
</details><br/>
<details class="ui_win"><summary>goto</summary>
<form id="table_modal" onsubmit="return false">
2023-02-20 17:40:25 +00:00
<label>table.name<br><input id="input_table_name"></label><br>
<label>table.passcode<br><input id="input_table_pass"></label><br>
2023-07-02 07:10:06 +00:00
<button type="submit" id="table_join" onclick="dial();">Join</button>
</form>
2023-07-02 07:10:06 +00:00
</details><br/>
2023-07-03 05:10:58 +00:00
<div id="tabletop" style="display:none;">
<details id="dice_win" class="ui_win"><summary>dice</summary>
<select id="num_dice">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
</select>
<label for="dice_faces">d</label>
<select id="dice_faces">
<option>4</option>
<option selected>6</option>
<option>8</option>
<option>10</option>
<option>12</option>
<option>20</option>
</select>
<input id="dice_note"><button id="dice_submit" onclick="rollDice()">Roll</button>
<div id="dice_log"></div>
2023-07-02 07:10:06 +00:00
</details><br/>
2023-07-02 07:10:06 +00:00
<details class="ui_win"><summary>status</summary><pre id="aux"></pre></details><br/>
<details class="ui_win"><summary>token select</summary>
<div id="token_select"></div>
</details><br/>
2023-07-03 05:10:58 +00:00
</div>
2023-07-02 07:10:06 +00:00
</section>
2023-07-03 05:10:58 +00:00
2023-07-02 07:10:06 +00:00
<section id="admin_section">
<details class="ui_win admin_win"><summary>admin</summary>
<form id="admin_modal" onsubmit="return false">
<label>pass<input type="password" id="input_admin_pass"></label>
2023-07-03 05:10:58 +00:00
<button type="submit" id="admin_login" onclick="doLogin();">Login</button>
2023-07-02 07:10:06 +00:00
</form>
</details>
<br/>
<div id="adminWrapper" style="display:none;">
<details id="admin_table_win" class="ui_win admin_win"><summary>table</summary>
<button onclick="setTableCreateFormVisible(true)">New Table</button>
<form onsubmit="return false" id="createTableForm" style="display:none;">
2023-07-03 05:10:58 +00:00
<label>Name<input id="newTableName"/></label><br/>
<label>Passcode<input id="newTablePass" type="password"/></label><br/>
<button type="submit" onclick="createTable()">Create</button>
<button onclick="setTableCreateFormVisible(false)">Cancel</button>
</form>
<div id="adminZone"></div>
</details><br/>
<div id="adminWrapper_tokens">
<details id="admin_token_win" class="ui_win admin_win"><summary>tokens</summary>
<button onclick="setTokenCreateFormVisible(true)">New Token</button>
2023-07-08 05:56:41 +00:00
<form onsubmit="return false" id="createTokenForm" style="display:none;">
<label>Sprite<select id="token_combobox" onchange="previewSprite(this)"></select></label><br/>
<label>Name<input id="token_name"/></label><br/>
<label>Width<input type="number" id="token_width" min="1" max="9999" onchange="previewSprite(this)"/></label><label id="aspectLockLabel" for="tokenKeepAspect">&#128274;</label><input type="checkbox" checked id="tokenKeepAspect" onchange="toggleAspectLock()"/><br/>
<label>Height<input type="number" id="token_height" min="1" max="9999" onchange="previewSprite(this)"/></label><br/>
<label>cX<input type="number" id="token_cx" min="0" max="9999" onchange="previewSprite(this)"/></label><br/>
<label>cY<input type="number" id="token_cy" min="0" max="9999" onchange="previewSprite(this)"/></label><br/>
<button type="submit" onclick="createToken()">Create</button>
<button onclick="setTokenCreateFormVisible(false)">Cancel</button>
</form>
2023-07-09 06:48:19 +00:00
<div id="tokenPreview_zone"></div>
<div id="tokenZone"></div>
</details><br/>
<details id="admin_sprite_win" class="ui_win admin_win"><summary>sprites</summary>
<div id="spriteZone"></div>
</details>
</div>
</div>
2023-07-02 07:10:06 +00:00
</section>
</nav>
</body>
2023-07-03 05:10:58 +00:00
<script src="./leaflet.js" type="text/javascript"></script>
<script src="./util.js" type="text/javascript"></script>
2023-07-03 05:10:58 +00:00
<script src="./map.js" type="text/javascript"></script>
<script src="./socket.js" type="text/javascript"></script>
2023-02-13 04:25:14 +00:00
<script src="./dice.js" type="text/javascript"></script>
<script src="./admin.js" type="text/javascript"></script>
</html>