Libraryless. Click here for Pure Java version (5730L/32K).
1 | persistable sclass JS is IF0<S>, Htmlable { |
2 | S code; |
3 | Set requiredLibraries; |
4 | |
5 | Set requiredLibraries() { ret requiredLibraries; } |
6 | |
7 | *(S code, O... dollarVars) { |
8 | this.code = jsDollarVars(code, dollarVars); |
9 | } |
10 | |
11 | public S get() { ret code; } |
12 | |
13 | toString { ret unnull(code); } |
14 | |
15 | void requireJQuery { require("jquery"); } |
16 | |
17 | void require(O library) { |
18 | requiredLibraries = addToSet_create(requiredLibraries, library); |
19 | } |
20 | |
21 | public S html() { ret hjs(code); } |
22 | } |
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: | 210 / 396 |
Version history: | 10 change(s) |
Referenced in: | [show references] |