font family in lab
This commit is contained in:
parent
6eeb644674
commit
7a77792cf9
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue