summaryrefslogtreecommitdiff
path: root/assets/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'assets/index.html')
-rw-r--r--assets/index.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/assets/index.html b/assets/index.html
index 6fc9c46..763b9ef 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -11,9 +11,16 @@
<script>
let rlist = document.getElementById('rlist');
fetch('rlist').then(r => r.json()).then(rooms => {
- rooms.forEach(x => {
+ Object.keys(rooms).forEach(x => {
+ let roominfo = JSON.parse(rooms[x]);
+ let bc = roominfo.board_conf;
let a = document.createElement('a');
- a.appendChild(document.createTextNode(x));
+ let h1 = document.createElement('h1');
+ h1.appendChild(document.createTextNode(`> ${roominfo.name}`));
+ let h4 = document.createElement('h4');
+ h4.appendChild(document.createTextNode(`${bc.w} by ${bc.h} with ${bc.mine_ratio[0]} in every ${bc.mine_ratio[1]} tiles mined`));
+ a.append(h1);
+ a.append(h4);
a.href = 'room/' + x;
rlist.append(a);
rlist.append(document.createElement('br'));
@@ -33,7 +40,7 @@
tiles are mines
</label><br>
<label>public, ie. shown in the lobby <input name="raccess" type="checkbox" checked></label><br>
- <label>always safe first move <input name="ralwayssafe1move" type="checkbox" checked></label><br>
+ <label>safe first move (if possible)<input name="ralwayssafe1move" type="checkbox" checked></label><br>
<label>player limit<input name="rlimit" type="number" value="32"></label><br>
<button>create</button>
</fieldset>