mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user