mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
improve page users see when opening invite from new device on an old one.
This commit is contained in:
parent
dd882ba9d4
commit
38e6eac3a1
2 changed files with 47 additions and 34 deletions
|
@ -6,16 +6,16 @@ $g_apk = 'XWords4-release_android_beta_55-39-gbffb231.apk';
|
|||
function printHead() {
|
||||
print <<<EOF
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/xw4mobile.css" />
|
||||
<title>Crosswords Invite redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><em>UNDER CONSTRUCTION -- certain assumptions will go away before the next version ships</em></p>
|
||||
|
||||
<img src="../icon48x48.png"/>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/xw4mobile.css" />
|
||||
<title>Crosswords Invite redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center">
|
||||
<img class="center" src="../icon48x48.png"/>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
@ -26,47 +26,59 @@ print <<<EOF
|
|||
EOF;
|
||||
}
|
||||
|
||||
function printNonAndroid() {
|
||||
function printNonAndroid($agent) {
|
||||
$subject = "Android device not identified";
|
||||
|
||||
$body = htmlentities("My browser is running on an android device but"
|
||||
. " says its user agent is: \"$agent\". Please fix your script to recognize"
|
||||
. " this as an Android browser.");
|
||||
print <<<EOF
|
||||
<p>Please open the link that sent you here on an Android device.</p>
|
||||
|
||||
<p>(If you <em>are</em> viewing this on an Android device, you've
|
||||
found a bug! Please <a href="mailto:
|
||||
xwords@eehouse.org?subject=$subject&body=$body">email me</a> (and be
|
||||
sure to leave the user agent string in the email body.)
|
||||
</p>
|
||||
<div class="center">
|
||||
<p>This page is meant to be viewed on an Android device.</p>
|
||||
<hr>
|
||||
<p>(If you <em>are</em> viewing this on an Android device, you've
|
||||
found a bug! Please <a href="mailto:
|
||||
xwords@eehouse.org?subject=$subject&body=$body">email me</a> (and be
|
||||
sure to leave the user agent string in the email body.)
|
||||
</p>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function printAndroid() {
|
||||
print <<<EOF
|
||||
<p>Hello Kati, Chris, Mana, Deb, and maybe Brynn,</p>
|
||||
|
||||
<p>You'll have come here after clicking a link in an invite
|
||||
email. But you should not be seeing this page.</p>
|
||||
<div>
|
||||
<p>You'll have come here after clicking a link in an email or
|
||||
text inviting you to a Crosswords game. But you should not be seeing
|
||||
this page.</p>
|
||||
|
||||
<p>If you got this page on your device, it means either
|
||||
<ul>
|
||||
<li> you haven't installed a copy of Crosswords built after Nov. 25</li>
|
||||
<li>The copy of Crosswords you have is NOT beta 56 or newer (dating from about Dec. 1, 2012).</li>
|
||||
<li> OR </li>
|
||||
<li> that you have, and when you clicked on the link and were asked to
|
||||
choose between a browser and Crosswords you chose the browser.</li>
|
||||
<li> that your copy of Crosswords is new enough <em>BUT</em> that
|
||||
when you clicked on the link and were asked to choose between a
|
||||
browser and Crosswords you chose the browser.</li>
|
||||
</ul></p>
|
||||
|
||||
<p>In the first
|
||||
case, <a href="http://eehouse.org/xw4/android/$g_apk">download
|
||||
and install the latest Crosswords</a>. Then go back to the invite
|
||||
email (or text) and tap the link again.</p>
|
||||
<p>In the first case, install the latest Crosswords,
|
||||
either <a href="market://search?q=pname:org.eehouse.android.xw4">via
|
||||
the Google Play store</a> or
|
||||
(sideloading) <a href="https://sourceforge.net/projects/xwords/files/xwords_Android/4.4%20beta%2056/XWords4-release_android_beta_56.apk/download">via
|
||||
Sourceforge.net</a>. After the install is finished go back to the
|
||||
invite email (or text) and tap the link again.</p>
|
||||
|
||||
<p>In the second, hit your back button, click the link in your invite
|
||||
email (or text) again, and this time choose Crosswords.</p>
|
||||
<p>In the second case, hit your browser's back button, click the
|
||||
link in your invite email (or text) again, and this time let
|
||||
Crosswords handle it.</p>
|
||||
|
||||
<p>Have fun. And as always, <a href="mailto:xwords@eehouse.org">let
|
||||
me know</a> if you have problems or suggestions.</p>
|
||||
</div>
|
||||
<div class="center">
|
||||
<img class="center" src="../icon48x48.png"/>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
@ -86,7 +98,7 @@ printHead();
|
|||
if ( /*true || */ $onFire || $onAndroid ) {
|
||||
printAndroid();
|
||||
} else {
|
||||
printNonAndroid();
|
||||
printNonAndroid($agent);
|
||||
}
|
||||
printTail();
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
body { font-size: 2em; }
|
||||
table { font-size: 2em; }
|
||||
body { font-size: 1.5em; }
|
||||
table { font-size: 1.5em; }
|
||||
.center { text-align: center; }
|
||||
|
|
Loading…
Reference in a new issue