Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1029716 // hjs_markRowMagic

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3013L/19K).

1  
// marks row containing URL anchor. needs JQuery
2  
sS hjs_markRowMagic(O... _) {
3  
  optPar S color = "#99f";
4  
  ret hjs(replaceDollarVars([[
5  
    var rowMagic_hash = window.location.hash.substr(1);
6  
    if (rowMagic_hash)
7  
      $("a[name=" + rowMagic_hash + "]").closest('tr').css({ 'background-color' : '$color'});
8  
  ]], +color));
9  
}

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: 242 / 314
Version history: 2 change(s)
Referenced in: [show references]