1 | sS html_markTableRowsEvenOdd(S html) { |
2 | ret regexReplaceIC(html, "<tr", new F1<Matcher, S>() { |
3 | bool even; |
4 | |
5 | S get(Matcher m) { |
6 | even = !even; |
7 | ret even ? "<tr class='even'" : "<tr class='odd'"; |
8 | } |
9 | }); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018592 |
Snippet name: | html_markTableRowsEvenOdd |
Eternal ID of this version: | #1018592/1 |
Text MD5: | adb1cf6cc4800917da4470dd0a08a6e0 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-06 21:17:01 |
Source code size: | 238 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 281 / 315 |
Referenced in: | [show references] |