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

22
LINES

< > BotCompany Repo | #1032541 // JS - raw javascript code

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

Libraryless. Click here for Pure Java version (5730L/32K).

persistable sclass JS is IF0<S>, Htmlable {
  S code;
  Set requiredLibraries;
  
  Set requiredLibraries() { ret requiredLibraries; }
  
  *(S code, O... dollarVars) {
    this.code = jsDollarVars(code, dollarVars);
  }
  
  public S get() { ret code; }
  
  toString { ret unnull(code); }
  
  void requireJQuery { require("jquery"); }
  
  void require(O library) {
    requiredLibraries = addToSet_create(requiredLibraries, library);
  }
  
  public S html() { ret hjs(code); }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032541
Snippet name: JS - raw javascript code
Eternal ID of this version: #1032541/11
Text MD5: 6f5228f6b633591c6484878fa3fe1705
Transpilation MD5: 612ecd677b00399fff2fb5de2e27739e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-07 16:37:41
Source code size: 504 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 209 / 394
Version history: 10 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)
#1034424 - CSS - raw CSS code