Fossil SCM
Render captchas in a smaller font that works better on mobile.
Commit
75c89def6b42a1146c5c9ff4c987c5a79726d3ee628a246917fe1f374d97d628
Parent
447d273214bfdaf…
4 files changed
+3
-3
+1
-1
+3
+3
-2
+3
-3
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -1453,11 +1453,11 @@ | ||
| 1453 | 1453 | @ <td><input type="submit" name="submit" value="Submit"></td> |
| 1454 | 1454 | } |
| 1455 | 1455 | @ </tr> |
| 1456 | 1456 | @ </table> |
| 1457 | 1457 | if( needCaptcha ){ |
| 1458 | - @ <div class="captcha"><table class="captcha"><tr><td><pre> | |
| 1458 | + @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha"> | |
| 1459 | 1459 | @ %h(zCaptcha) |
| 1460 | 1460 | @ </pre> |
| 1461 | 1461 | @ Enter the 8 characters above in the "Security Code" box |
| 1462 | 1462 | @ </td></tr></table></div> |
| 1463 | 1463 | } |
| @@ -1866,11 +1866,11 @@ | ||
| 1866 | 1866 | @ <tr> |
| 1867 | 1867 | @ <td></td> |
| 1868 | 1868 | @ <td><input type="submit" name="submit" value="Submit"></td> |
| 1869 | 1869 | @ </tr> |
| 1870 | 1870 | @ </table> |
| 1871 | - @ <div class="captcha"><table class="captcha"><tr><td><pre> | |
| 1871 | + @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha"> | |
| 1872 | 1872 | @ %h(zCaptcha) |
| 1873 | 1873 | @ </pre> |
| 1874 | 1874 | @ Enter the 8 characters above in the "Security Code" box |
| 1875 | 1875 | @ </td></tr></table></div> |
| 1876 | 1876 | @ </form> |
| @@ -2606,11 +2606,11 @@ | ||
| 2606 | 2606 | @ <td></td> |
| 2607 | 2607 | @ <td><input type="submit" name="submit" value="Send Message"> |
| 2608 | 2608 | @ </tr> |
| 2609 | 2609 | @ </table> |
| 2610 | 2610 | if( zCaptcha ){ |
| 2611 | - @ <div class="captcha"><table class="captcha"><tr><td><pre> | |
| 2611 | + @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha"> | |
| 2612 | 2612 | @ %h(zCaptcha) |
| 2613 | 2613 | @ </pre> |
| 2614 | 2614 | @ Enter the 8 characters above in the "Security Code" box |
| 2615 | 2615 | @ </td></tr></table></div> |
| 2616 | 2616 | } |
| 2617 | 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> |
| 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 @@ | ||
| 539 | 539 | |
| 540 | 540 | if( !captcha_needed() ) return; |
| 541 | 541 | uSeed = captcha_seed(); |
| 542 | 542 | zDecoded = captcha_decode(uSeed); |
| 543 | 543 | 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"> | |
| 545 | 545 | @ %h(zCaptcha) |
| 546 | 546 | @ </pre> |
| 547 | 547 | @ Enter security code shown above: |
| 548 | 548 | @ <input type="hidden" name="captchaseed" value="%u(uSeed)" /> |
| 549 | 549 | @ <input type="text" name="captcha" size=8 /> |
| 550 | 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> |
| 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 |
+3
| --- src/default_css.txt | ||
| +++ src/default_css.txt | ||
| @@ -303,10 +303,13 @@ | ||
| 303 | 303 | padding: 10px; |
| 304 | 304 | border-width: 4px; |
| 305 | 305 | border-style: double; |
| 306 | 306 | border-color: black; |
| 307 | 307 | } |
| 308 | +pre.captcha { | |
| 309 | + font-size: 50%; | |
| 310 | +} | |
| 308 | 311 | td.login_out_label { |
| 309 | 312 | text-align: center; |
| 310 | 313 | } |
| 311 | 314 | span.loginError { |
| 312 | 315 | color: red; |
| 313 | 316 |
| --- 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 @@ | ||
| 776 | 776 | char *zCaptcha = captcha_render(zDecoded); |
| 777 | 777 | |
| 778 | 778 | @ <p><input type="hidden" name="cs" value="%u(uSeed)" /> |
| 779 | 779 | @ Visitors may enter <b>anonymous</b> as the user-ID with |
| 780 | 780 | @ 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"> | |
| 782 | 783 | @ %h(zCaptcha) |
| 783 | 784 | @ </pre></td></tr></table> |
| 784 | 785 | if( bAutoCaptcha ) { |
| 785 | 786 | @ <input type="button" value="Fill out captcha" id='autofillButton' \ |
| 786 | 787 | @ data-af='%s(zDecoded)' /> |
| @@ -1756,11 +1757,11 @@ | ||
| 1756 | 1757 | } |
| 1757 | 1758 | @ </tr> |
| 1758 | 1759 | @ <tr><td></td> |
| 1759 | 1760 | @ <td><input type="submit" name="new" value="Register" /></td></tr> |
| 1760 | 1761 | @ </table> |
| 1761 | - @ <div class="captcha"><table class="captcha"><tr><td><pre> | |
| 1762 | + @ <div class="captcha"><table class="captcha"><tr><td><pre class="captcha"> | |
| 1762 | 1763 | @ %h(zCaptcha) |
| 1763 | 1764 | @ </pre></td></tr></table></div> |
| 1764 | 1765 | @ </form> |
| 1765 | 1766 | style_footer(); |
| 1766 | 1767 | |
| 1767 | 1768 |
| --- 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 |