sS html_markTableRowsEvenOdd(S html) { ret regexReplaceIC(html, "<tr", new F1<Matcher, S>() { bool even; S get(Matcher m) { even = !even; ret even ? "<tr class='even'" : "<tr class='odd'"; } }); }
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: | 282 / 315 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |