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

8
LINES

< > BotCompany Repo | #1032644 // js_replaceBodyContents - requires nodeScriptReplace

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

Libraryless. Click here for Pure Java version (4329L/25K).

sS js_replaceBodyContents(S html) {
  ret replaceDollarVars_js([[
    (function() {
      var target = document.querySelector("body");
      target.innerHTML = $html;
      nodeScriptReplace(target);
    })(); ]], +html);
}

Author comment

Began life as a copy of #1032603

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032644
Snippet name: js_replaceBodyContents - requires nodeScriptReplace
Eternal ID of this version: #1032644/1
Text MD5: 990f2e8679666dcd949c8fbd210a3aa3
Transpilation MD5: ac440591f0bb56f6e6c3c93442d04334
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 00:56:57
Source code size: 230 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 185
Referenced in: [show references]