Libraryless. Click here for Pure Java version (3013L/19K).
// marks row containing URL anchor. needs JQuery sS hjs_markRowMagic(O... _) { optPar S color = "#99f"; ret hjs(replaceDollarVars([[ var rowMagic_hash = window.location.hash.substr(1); if (rowMagic_hash) $("a[name=" + rowMagic_hash + "]").closest('tr').css({ 'background-color' : '$color'}); ]], +color)); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029716 |
Snippet name: | hjs_markRowMagic |
Eternal ID of this version: | #1029716/3 |
Text MD5: | 1919f3ab9503372bbbe39b6961b23007 |
Transpilation MD5: | f204a40d2a39c6b00096902e9877f2ac |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-09 13:30:31 |
Source code size: | 335 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 241 / 311 |
Version history: | 2 change(s) |
Referenced in: | [show references] |