ref: 7c105846b6d35cb979314f5c5fa4336d6e1a11ac
parent: f97d11df670597136e34f1078d9a2eb2cdbcd85b
author: Ben Harris <[email protected]>
date: Mon Aug 21 18:50:50 EDT 2023
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.
--- a/kaios/apppage.pl
+++ b/kaios/apppage.pl
@@ -6,6 +6,13 @@
@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 @@
"PUZZLES_ALLOW_CUSTOM": false,
"PUZZLES_SHOW_CURSOR": true }
</script>
+<script class="preferences" type="text/plain">
+$prefs</script>
<style class="text/css">
body {
margin: 0;