Libraryless. Click here for Pure Java version (1992L/13K).
// TODO: is display=swap always correct? sS hIncludeGoogleFont(S fontFamily) { ret htag link("", href := "https://fonts.googleapis.com/css?family=" + urlencode(fontFamily) + "&display=swap", rel := "stylesheet"); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024236 |
Snippet name: | hIncludeGoogleFont |
Eternal ID of this version: | #1024236/2 |
Text MD5: | 253ec9aafb4272324bc30b68fd8ef653 |
Transpilation MD5: | bb9e7d13ae35c707b8a51beb8bb57110 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 16:07:15 |
Source code size: | 219 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 193 / 279 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |