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

8
LINES

< > BotCompany Repo | #1032790 // js_addToHead - requires nodeScriptReplace

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

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

sS js_addToHead(S html) {
  ret replaceDollarVars_js([[
    (function() {
      var target = document.querySelector("head");
      target.insertAdjacentHTML("beforeend", $html);
      nodeScriptReplace(target);
    })(); ]], +html);
}

Author comment

Began life as a copy of #1032644

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032790
Snippet name: js_addToHead - requires nodeScriptReplace
Eternal ID of this version: #1032790/1
Text MD5: 2e2c5ea028bbd84a8452e17ea7b8d9b8
Transpilation MD5: 3710ec2b0d6e608ea44f21800d44cb42
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 05:15:29
Source code size: 241 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 210
Referenced in: [show references]