diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-21 22:50:50 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-21 23:06:39 +0100 |
| commit | 7c105846b6d35cb979314f5c5fa4336d6e1a11ac (patch) | |
| tree | a1c7eadf5b99a9985351e91c27f996f408a9298a /kaios | |
| parent | f97d11df670597136e34f1078d9a2eb2cdbcd85b (diff) | |
| download | puzzles-7c105846b6d35cb979314f5c5fa4336d6e1a11ac.zip puzzles-7c105846b6d35cb979314f5c5fa4336d6e1a11ac.tar.gz puzzles-7c105846b6d35cb979314f5c5fa4336d6e1a11ac.tar.bz2 puzzles-7c105846b6d35cb979314f5c5fa4336d6e1a11ac.tar.xz | |
KaiOS: set show-labels=true in preferences for Guess
On a device with a phone keypad, driving Guess by typing numbers rather
than using the arrow keys seems natural. But if you're going to do
that, showing the labels makes it a lot easier. KaiOS doesn't have any
way for the user to control this, so we should default to the friendlier
state.
Diffstat (limited to 'kaios')
| -rwxr-xr-x | kaios/apppage.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kaios/apppage.pl b/kaios/apppage.pl index 943c401..84dafcf 100755 --- a/kaios/apppage.pl +++ b/kaios/apppage.pl @@ -6,6 +6,13 @@ use warnings; @ARGV == 2 or die "usage: apppage.pl <name> <displayname>"; my ($name, $displayname) = @ARGV; +my $prefs = ""; +if ($name eq 'guess') { + $prefs = <<EOF +show-labels=true +EOF +} + print <<EOF; <!DOCTYPE html> <html> @@ -23,6 +30,8 @@ print <<EOF; "PUZZLES_ALLOW_CUSTOM": false, "PUZZLES_SHOW_CURSOR": true } </script> +<script class="preferences" type="text/plain"> +$prefs</script> <style class="text/css"> body { margin: 0; |