diff options
author | Rasmus Andersson <rasmus@notion.se> | 2017-08-22 13:02:17 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2017-08-22 13:02:17 +0300 |
commit | 7a77792cf907d29b4a218cd32c56a7e1c174118c (patch) | |
tree | fc400e1e1c32243ea917cbdec8883c70a3ca1a52 /docs/lab/index.html | |
parent | 6eeb644674e41fbf21c3f77321b6825042ea8b07 (diff) | |
download | inter-7a77792cf907d29b4a218cd32c56a7e1c174118c.tar.xz |
font family in lab
Diffstat (limited to 'docs/lab/index.html')
-rw-r--r-- | docs/lab/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html index d5953f076..32f777e13 100644 --- a/docs/lab/index.html +++ b/docs/lab/index.html @@ -937,10 +937,11 @@ canvas { <script type="text/javascript"> const fontVersion = Math.round(Date.now()).toString(36) -const fontFamilyName = 'Interface-v' + fontVersion +let fontFamilyName = 'Interface-v' + fontVersion const fontCSSTemplate = document.querySelector('#font-css') const fontCSS = fontCSSTemplate.cloneNode(true) fontCSS.innerHTML = fontCSS.innerHTML.replace(/Interface-VERSION/g, fontFamilyName) +fontFamilyName += ', Interface' fontCSS.setAttribute('id', '') fontCSS.setAttribute('type', 'text/css') document.head.appendChild(fontCSS) |