This commit is contained in:
2024-01-25 14:56:31 +08:00
parent 07f87bfb9d
commit 9ab9edb44d
18 changed files with 594 additions and 186 deletions

View File

@ -2,7 +2,8 @@ const svgns = 'http://www.w3.org/2000/svg';
function createUse(type, id) {
const c = typeof consts !== 'undefined' ? consts : {};
const path = c.path || '';
const netroot = typeof _network !== 'undefined' ? _network.root : '';
const path = c.path || netroot;
const ver = c.resver == null ? '' : `?${c.resver}`;
const use = document.createElementNS(svgns, 'use');
use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', `${path}fonts/${type}.svg${ver}#${id}`);