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.
This commit is contained in:
Ben Harris
2023-08-21 22:50:50 +01:00
parent f97d11df67
commit 7c105846b6

View File

@ -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;