Mercurial > hg
comparison tests/test-hgweb-commands.t @ 19430:5ec5097b4c0f
hgweb: add line wrapping switch to file source view
This uses classList property, which is well-supported now: both Chromium 8.0+,
Firefox 3.6+ and Opera 11.5+ support it, as well as relatively modern versions
of other browsers.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 12 Jul 2013 15:58:13 +0400 |
parents | c3cdba6e5d7f |
children | b8ecc3830c89 |
comparison
equal
deleted
inserted
replaced
19429:c8490dcc5fb3 | 19430:5ec5097b4c0f |
---|---|
665 </tr> | 665 </tr> |
666 | 666 |
667 </table> | 667 </table> |
668 | 668 |
669 <div class="overflow"> | 669 <div class="overflow"> |
670 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div> | |
670 <div class="sourcefirst"> line source</div> | 671 <div class="sourcefirst"> line source</div> |
671 <pre class="sourcelines"> | 672 <pre class="sourcelines wrap"> |
672 <span id="l1">foo</span><a href="#l1"></a></pre> | 673 <span id="l1">foo</span><a href="#l1"></a></pre> |
673 <div class="sourcelast"></div> | 674 <div class="sourcelast"></div> |
674 </div> | 675 </div> |
675 </div> | 676 </div> |
676 </div> | 677 </div> |