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

7
LINES

< > BotCompany Repo | #1032732 // hlink - include CSS or JS

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

Libraryless. Click here for Pure Java version (4174L/24K).

sS hlink(S url) {
  if (empty(url)) ret "";
  if (endsWith(url, ".css"))
    ret hcss(url);
  else
    ret hscript(url);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032732
Snippet name: hlink - include CSS or JS
Eternal ID of this version: #1032732/1
Text MD5: 6ea5baacdbf36304bca77c90dd0ffc05
Transpilation MD5: cfec43621fda65158a1cb7467b6f2e2c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 02:39:58
Source code size: 128 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 201
Referenced in: [show references]