From 327acfe1124cdafc5eb460a039222a160f867ba3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 17 Nov 2021 13:39:16 +0100 Subject: Simplify URL for playing games. --- views/join.ejs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'views/join.ejs') diff --git a/views/join.ejs b/views/join.ejs index fa33d5c..6558745 100644 --- a/views/join.ejs +++ b/views/join.ejs @@ -1,14 +1,4 @@ <%- include('header', { title: game.title_name }) -%> -<% -function to_english(k) { - if (k === true) return 'yes'; - if (k === false) return 'no'; - return k.replace(/_/g, " ").replace(/^\w/, c => c.toUpperCase()); -} -function format_options(options) { - return Object.entries(options||{}).map(([k,v]) => v === true ? to_english(k) : `${to_english(k)}=${to_english(v)}`).join(", "); -} --%>