Commit graph

32 commits

Author SHA1 Message Date
Eric House
69afe41040 add git rev to display 2023-05-29 16:55:14 -07:00
Eric House
a95b59b3ea add pending messages count to display 2023-02-23 12:58:31 -08:00
Eric House
b730253e6b remove FLIP button; save/restore prefs 2021-03-24 17:52:17 -07:00
Eric House
7bd1153c13 appearance tweaks 2021-03-24 17:29:27 -07:00
Eric House
e7669c427e size html elements based on window size
Should make things look better on different sized phone and tablet
screens.
2021-03-24 10:20:42 -07:00
Eric House
1aa3ddcde0 cleanup and tweaks 2021-03-19 14:30:17 -07:00
Eric House
01c7bcf9e3 fix get-string dialog 2021-03-19 14:29:49 -07:00
Eric House
af5c116a78 new game choices stored for next time; change dicts path
Lots of tweaks. Main was from realizing that storing special-names files
and can-be-anything files in the same directory isn't good.
2021-03-19 14:29:49 -07:00
Eric House
0d7b81ac72 tweak UI for small screens 2021-03-19 14:29:49 -07:00
Eric House
f3b76da8e1 add more info to game "buttons"
Toward a games-list substitute. New game_summarize method will get
fleshed out and eventually replace what's in jni?
2021-03-19 14:29:48 -07:00
Eric House
567c3dbf9e show mempool stats (DEBUG builds) 2021-03-19 14:27:04 -07:00
Eric House
2ab2f5642e add name button and store wordlist
As a p.o.c., load the built-in wordlist into storage once, and
thereafter use it from there rather than as a file. Now it can go away
and a wordlist for the user's locale be downloaded and stored instead.
2021-03-19 14:27:04 -07:00
Eric House
c9ea5c1f69 remove stuff from html 2021-03-19 14:27:04 -07:00
Eric House
fa8bcd3c2c url-decode args prior to passing to main() 2021-03-19 14:27:04 -07:00
Eric House
523c9b270a keep games open and switch between them
Motiviation was to be able to deliver a message in the background, but
at least for now it's easier not to close games again. Can always do
that later if it's a memory problem.
2021-03-19 14:27:04 -07:00
Eric House
3a0d0befc7 toward allowing multiple games 2021-03-19 14:27:04 -07:00
Eric House
007e1e4acb add alert for asking user for string 2021-03-19 14:27:04 -07:00
Eric House
52773c577f make dialogs stackable 2021-03-19 14:27:04 -07:00
Eric House
540cf73496 cleanup: fetch checkboxes rather than pass in 2021-03-19 14:27:04 -07:00
Eric House
88e44d45ff fix so keyboard input works
Emscripen was hogging all keyboard events even when canvas didn't have
focus. There's an arcane way to fix that in js.
2021-03-19 14:27:04 -07:00
Eric House
5a061f5786 notify, and stop using, when another tab starts up
I'm wrestling with how to have concurrent tabs open. They can't be on
the same game because both can't connect using same MQTT dev id (and
they'd quickly get the saved state screwed up.) Only problem is
sometimes a tab in a new window doesn't have access to localstorage and
so is able to connect on its own. But later that state isn't reachable
any more: relaunch firefox and you get back the to the older state.
2021-03-19 14:27:04 -07:00
Eric House
dc90823e9b move alert to on top of board 2021-03-19 14:27:04 -07:00
Eric House
eec86e099d make alert and confirm non-blocking
Using a custom div and callbacks. TODO: make it floating so it's more
dialog-like. But that's just css at this point.
2021-03-19 14:27:04 -07:00
Eric House
76139c43f6 move most of my js into separate file 2021-03-19 14:27:04 -07:00
Eric House
02a193902f get trade working 2021-03-19 14:26:18 -07:00
Eric House
bf5db08357 get rid of sGlobals! 2021-03-19 14:26:18 -07:00
Eric House
b368d0b801 pass closure from js to avoid global 2021-03-19 14:26:18 -07:00
Eric House
40e72f8b29 snapshot (with textfield broken) 2021-03-19 14:26:18 -07:00
Eric House
c57471364f get URL-encoded invitation receipt working 2021-03-19 14:26:18 -07:00
Eric House
1b5cdce72c don't try to send when not connected 2021-03-19 14:26:18 -07:00
Eric House
7efc4b29bf get mqtt working again 2021-03-19 14:26:18 -07:00
Eric House
d586ccf67f work with WASM=1 and shell template to pass argv from url 2021-03-19 14:26:18 -07:00