|
Documented Autism
|
High Quality Articles
|
Notable Members
|
Glowers Club
|
|
This shows you the differences between two versions of the page.
include:startheader [2021/01/14 20:53] kakol |
include:startheader [2024/04/06 19:41] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | ||
- | @font-face { | ||
- | font-family: | ||
- | src: local(' | ||
- | } | ||
- | @supports not (font-family: | ||
- | .brand-header { font-size: 130%; } | ||
- | } | ||
- | |||
- | .brand-header { font-family: | ||
- | </ | ||
- | // css is shit | ||
- | function checkFont(strFamily) { | ||
- | var objDiv = document.createElement(' | ||
- | objDiv.style.fontFamily = strFamily; | ||
- | objDiv.appendChild(document.createTextNode(' | ||
- | if (window.getComputedStyle) | ||
- | return window.getComputedStyle(objDiv, | ||
- | return objDiv.currentStyle.fontFamily === strFamily; | ||
- | } | ||
- | if (!checkFont(" | ||
- | const a = document.createElement(" | ||
- | a.innerText = ' | ||
- | document.body.appendChild(a) | ||
- | } | ||
- | </ |