From 3ac13cd9cc09c190b273a772320b7fe2ed4655a1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Mar 2024 12:54:00 +0100 Subject: Prefix game IDs with #. --- public/join.js | 4 ++-- views/head.pug | 4 ++-- views/join.pug | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/join.js b/public/join.js index 78d9137..f3279ad 100644 --- a/public/join.js +++ b/public/join.js @@ -152,9 +152,9 @@ function update() { function update_common() { if (game.scenario !== "Standard") - document.querySelector("h1").textContent = game.title_name + " - " + game.scenario + document.querySelector("h1").textContent = "#" + game.game_id + " - " + game.title_name + " - " + game.scenario else - document.querySelector("h1").textContent = game.title_name + document.querySelector("h1").textContent = "#" + game.game_id + " - " + game.title_name let message = window.message if (game.status === 0) { diff --git a/views/head.pug b/views/head.pug index 5cbb726..dc7cf93 100644 --- a/views/head.pug +++ b/views/head.pug @@ -70,10 +70,10 @@ mixin gamelist(list,hide_title=0) div.game_head if item.scenario.length <= 2 div - | #{pace_icon} #{item.game_id} – #{item.title_name} (#{item.scenario}) #{chat_icon} + | #{pace_icon} ##{item.game_id} – #{item.title_name} (#{item.scenario}) #{chat_icon} else div - | #{pace_icon} #{item.game_id} – #{item.title_name} #{chat_icon} + | #{pace_icon} ##{item.game_id} – #{item.title_name} #{chat_icon} case item.status when 0 diff --git a/views/join.pug b/views/join.pug index bfb0cb8..c3960b7 100644 --- a/views/join.pug +++ b/views/join.pug @@ -6,7 +6,7 @@ html +social(game.title_name, "Play " + game.title_name + " with " + players.map(x=>x.name).join(" and ") + ".", game.title_id) - title= game.title_name + title ##{game.game_id} - #{game.title_name} style. th,td { border: var(--table-border); } a.red { text-decoration: none; color: var(--color-red); font-size: 15px; float: right; } @@ -33,9 +33,9 @@ html include header article if game.scenario === "Standard" - h1 #{game.title_name} + h1 ##{game.game_id} - #{game.title_name} else - h1 #{game.title_name} - #{game.scenario} + h1 ##{game.game_id} - #{game.title_name} - #{game.scenario} div.logo +gamecover(game.title_id) -- cgit v1.2.3