Fossil SCM

Render captchas in a smaller font that works better on mobile.

drh 2018-08-31 21:07 trunk
Commit 75c89def6b42a1146c5c9ff4c987c5a79726d3ee628a246917fe1f374d97d628
+3 -3
--- src/alerts.c
+++ src/alerts.c
@@ -1453,11 +1453,11 @@
14531453
@ <td><input type="submit" name="submit" value="Submit"></td>
14541454
}
14551455
@ </tr>
14561456
@ </table>
14571457
if( needCaptcha ){
1458
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
1458
+ @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
14591459
@ %h(zCaptcha)
14601460
@ </pre>
14611461
@ Enter the 8 characters above in the "Security Code" box
14621462
@ </td></tr></table></div>
14631463
}
@@ -1866,11 +1866,11 @@
18661866
@ <tr>
18671867
@ <td></td>
18681868
@ <td><input type="submit" name="submit" value="Submit"></td>
18691869
@ </tr>
18701870
@ </table>
1871
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
1871
+ @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
18721872
@ %h(zCaptcha)
18731873
@ </pre>
18741874
@ Enter the 8 characters above in the "Security Code" box
18751875
@ </td></tr></table></div>
18761876
@ </form>
@@ -2606,11 +2606,11 @@
26062606
@ <td></td>
26072607
@ <td><input type="submit" name="submit" value="Send Message">
26082608
@ </tr>
26092609
@ </table>
26102610
if( zCaptcha ){
2611
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
2611
+ @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
26122612
@ %h(zCaptcha)
26132613
@ </pre>
26142614
@ Enter the 8 characters above in the "Security Code" box
26152615
@ </td></tr></table></div>
26162616
}
26172617
--- src/alerts.c
+++ src/alerts.c
@@ -1453,11 +1453,11 @@
1453 @ <td><input type="submit" name="submit" value="Submit"></td>
1454 }
1455 @ </tr>
1456 @ </table>
1457 if( needCaptcha ){
1458 @ <div class="captcha"><table class="captcha"><tr><td><pre>
1459 @ %h(zCaptcha)
1460 @ </pre>
1461 @ Enter the 8 characters above in the "Security Code" box
1462 @ </td></tr></table></div>
1463 }
@@ -1866,11 +1866,11 @@
1866 @ <tr>
1867 @ <td></td>
1868 @ <td><input type="submit" name="submit" value="Submit"></td>
1869 @ </tr>
1870 @ </table>
1871 @ <div class="captcha"><table class="captcha"><tr><td><pre>
1872 @ %h(zCaptcha)
1873 @ </pre>
1874 @ Enter the 8 characters above in the "Security Code" box
1875 @ </td></tr></table></div>
1876 @ </form>
@@ -2606,11 +2606,11 @@
2606 @ <td></td>
2607 @ <td><input type="submit" name="submit" value="Send Message">
2608 @ </tr>
2609 @ </table>
2610 if( zCaptcha ){
2611 @ <div class="captcha"><table class="captcha"><tr><td><pre>
2612 @ %h(zCaptcha)
2613 @ </pre>
2614 @ Enter the 8 characters above in the "Security Code" box
2615 @ </td></tr></table></div>
2616 }
2617
--- src/alerts.c
+++ src/alerts.c
@@ -1453,11 +1453,11 @@
1453 @ <td><input type="submit" name="submit" value="Submit"></td>
1454 }
1455 @ </tr>
1456 @ </table>
1457 if( needCaptcha ){
1458 @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
1459 @ %h(zCaptcha)
1460 @ </pre>
1461 @ Enter the 8 characters above in the "Security Code" box
1462 @ </td></tr></table></div>
1463 }
@@ -1866,11 +1866,11 @@
1866 @ <tr>
1867 @ <td></td>
1868 @ <td><input type="submit" name="submit" value="Submit"></td>
1869 @ </tr>
1870 @ </table>
1871 @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
1872 @ %h(zCaptcha)
1873 @ </pre>
1874 @ Enter the 8 characters above in the "Security Code" box
1875 @ </td></tr></table></div>
1876 @ </form>
@@ -2606,11 +2606,11 @@
2606 @ <td></td>
2607 @ <td><input type="submit" name="submit" value="Send Message">
2608 @ </tr>
2609 @ </table>
2610 if( zCaptcha ){
2611 @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
2612 @ %h(zCaptcha)
2613 @ </pre>
2614 @ Enter the 8 characters above in the "Security Code" box
2615 @ </td></tr></table></div>
2616 }
2617
+1 -1
--- src/captcha.c
+++ src/captcha.c
@@ -539,11 +539,11 @@
539539
540540
if( !captcha_needed() ) return;
541541
uSeed = captcha_seed();
542542
zDecoded = captcha_decode(uSeed);
543543
zCaptcha = captcha_render(zDecoded);
544
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
544
+ @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
545545
@ %h(zCaptcha)
546546
@ </pre>
547547
@ Enter security code shown above:
548548
@ <input type="hidden" name="captchaseed" value="%u(uSeed)" />
549549
@ <input type="text" name="captcha" size=8 />
550550
--- src/captcha.c
+++ src/captcha.c
@@ -539,11 +539,11 @@
539
540 if( !captcha_needed() ) return;
541 uSeed = captcha_seed();
542 zDecoded = captcha_decode(uSeed);
543 zCaptcha = captcha_render(zDecoded);
544 @ <div class="captcha"><table class="captcha"><tr><td><pre>
545 @ %h(zCaptcha)
546 @ </pre>
547 @ Enter security code shown above:
548 @ <input type="hidden" name="captchaseed" value="%u(uSeed)" />
549 @ <input type="text" name="captcha" size=8 />
550
--- src/captcha.c
+++ src/captcha.c
@@ -539,11 +539,11 @@
539
540 if( !captcha_needed() ) return;
541 uSeed = captcha_seed();
542 zDecoded = captcha_decode(uSeed);
543 zCaptcha = captcha_render(zDecoded);
544 @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
545 @ %h(zCaptcha)
546 @ </pre>
547 @ Enter security code shown above:
548 @ <input type="hidden" name="captchaseed" value="%u(uSeed)" />
549 @ <input type="text" name="captcha" size=8 />
550
--- src/default_css.txt
+++ src/default_css.txt
@@ -303,10 +303,13 @@
303303
padding: 10px;
304304
border-width: 4px;
305305
border-style: double;
306306
border-color: black;
307307
}
308
+pre.captcha {
309
+ font-size: 50%;
310
+}
308311
td.login_out_label {
309312
text-align: center;
310313
}
311314
span.loginError {
312315
color: red;
313316
--- src/default_css.txt
+++ src/default_css.txt
@@ -303,10 +303,13 @@
303 padding: 10px;
304 border-width: 4px;
305 border-style: double;
306 border-color: black;
307 }
 
 
 
308 td.login_out_label {
309 text-align: center;
310 }
311 span.loginError {
312 color: red;
313
--- src/default_css.txt
+++ src/default_css.txt
@@ -303,10 +303,13 @@
303 padding: 10px;
304 border-width: 4px;
305 border-style: double;
306 border-color: black;
307 }
308 pre.captcha {
309 font-size: 50%;
310 }
311 td.login_out_label {
312 text-align: center;
313 }
314 span.loginError {
315 color: red;
316
+3 -2
--- src/login.c
+++ src/login.c
@@ -776,11 +776,12 @@
776776
char *zCaptcha = captcha_render(zDecoded);
777777
778778
@ <p><input type="hidden" name="cs" value="%u(uSeed)" />
779779
@ Visitors may enter <b>anonymous</b> as the user-ID with
780780
@ the 8-character hexadecimal password shown below:</p>
781
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
781
+ @ <div class="captcha"><table class="captcha"><tr><td>\
782
+ @ <pre class="captcha">
782783
@ %h(zCaptcha)
783784
@ </pre></td></tr></table>
784785
if( bAutoCaptcha ) {
785786
@ <input type="button" value="Fill out captcha" id='autofillButton' \
786787
@ data-af='%s(zDecoded)' />
@@ -1756,11 +1757,11 @@
17561757
}
17571758
@ </tr>
17581759
@ <tr><td></td>
17591760
@ <td><input type="submit" name="new" value="Register" /></td></tr>
17601761
@ </table>
1761
- @ <div class="captcha"><table class="captcha"><tr><td><pre>
1762
+ @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
17621763
@ %h(zCaptcha)
17631764
@ </pre></td></tr></table></div>
17641765
@ </form>
17651766
style_footer();
17661767
17671768
--- src/login.c
+++ src/login.c
@@ -776,11 +776,12 @@
776 char *zCaptcha = captcha_render(zDecoded);
777
778 @ <p><input type="hidden" name="cs" value="%u(uSeed)" />
779 @ Visitors may enter <b>anonymous</b> as the user-ID with
780 @ the 8-character hexadecimal password shown below:</p>
781 @ <div class="captcha"><table class="captcha"><tr><td><pre>
 
782 @ %h(zCaptcha)
783 @ </pre></td></tr></table>
784 if( bAutoCaptcha ) {
785 @ <input type="button" value="Fill out captcha" id='autofillButton' \
786 @ data-af='%s(zDecoded)' />
@@ -1756,11 +1757,11 @@
1756 }
1757 @ </tr>
1758 @ <tr><td></td>
1759 @ <td><input type="submit" name="new" value="Register" /></td></tr>
1760 @ </table>
1761 @ <div class="captcha"><table class="captcha"><tr><td><pre>
1762 @ %h(zCaptcha)
1763 @ </pre></td></tr></table></div>
1764 @ </form>
1765 style_footer();
1766
1767
--- src/login.c
+++ src/login.c
@@ -776,11 +776,12 @@
776 char *zCaptcha = captcha_render(zDecoded);
777
778 @ <p><input type="hidden" name="cs" value="%u(uSeed)" />
779 @ Visitors may enter <b>anonymous</b> as the user-ID with
780 @ the 8-character hexadecimal password shown below:</p>
781 @ <div class="captcha"><table class="captcha"><tr><td>\
782 @ <pre class="captcha">
783 @ %h(zCaptcha)
784 @ </pre></td></tr></table>
785 if( bAutoCaptcha ) {
786 @ <input type="button" value="Fill out captcha" id='autofillButton' \
787 @ data-af='%s(zDecoded)' />
@@ -1756,11 +1757,11 @@
1757 }
1758 @ </tr>
1759 @ <tr><td></td>
1760 @ <td><input type="submit" name="new" value="Register" /></td></tr>
1761 @ </table>
1762 @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha">
1763 @ %h(zCaptcha)
1764 @ </pre></td></tr></table></div>
1765 @ </form>
1766 style_footer();
1767
1768

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button