Libraryless. Click here for Pure Java version (3598L/20K).
1 | sS js_setDivContents(S divID, S contents) {
|
2 | ret replaceDollarVars_js([[ |
3 | {
|
4 | var div = document.getElementById($divID); |
5 | if (div) |
6 | div.innerHTML = $contents; |
7 | } |
8 | ]], +divID, +contents); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032322 |
| Snippet name: | js_setDivContents - takes div ID |
| Eternal ID of this version: | #1032322/3 |
| Text MD5: | ae3843af8a33a0c3082ca1848bfcd348 |
| Transpilation MD5: | a342f4cbf1ff74ad863dab2553c2b697 |
| Author: | stefan |
| Category: | javax / javascript |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-27 07:24:49 |
| Source code size: | 220 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 386 / 508 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |