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

5
LINES

< > BotCompany Repo | #1029629 // hhiddenStuff (with show link) - hidden on client side, naturally

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

Transpiled version (2719L) is out of date.

1  
sS hhiddenStuff(S secretHTML) {
2  
  S id = aGlobalID();
3  
  S js = "document.getElementById(" + jsQuote(id) + ").innerHTML = " + jsQuote(secretHTML) + "; return false;";
4  
  ret span(ahref("#", "show", onclick := js), +id);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029629
Snippet name: hhiddenStuff (with show link) - hidden on client side, naturally
Eternal ID of this version: #1029629/4
Text MD5: 0083329c6830c93cd3032705def9aade
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-30 21:30:48
Source code size: 223 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 347
Version history: 3 change(s)
Referenced in: [show references]