Skip to content

Commit

Permalink
fix: fix download font error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 1, 2024
1 parent 27b5035 commit a18b3ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions docs/preview.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ <h2>数字预览</h2>
const fontName = urlParams.get('t');
const svgIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-file-earmark-font-fill" viewBox="0 0 16 16" height="1em" width="1em"><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/> </svg>`

const download = document.getElementById('download');
download.href = `/${fontUrl}`;
download.innerHTML = `${svgIcon} 下载地址一:${fontName}`;

const download1 = document.getElementById('download_jsdelivr');
download1.href = `https://cdn.jsdelivr.net/gh/jaywcjlove/free-font@main/docs/${fontUrl}`;
download1.innerHTML = `${svgIcon} 下载地址一:${fontName}`;
Expand Down
4 changes: 0 additions & 4 deletions docs/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ <h2>数字预览</h2>
const fontName = urlParams.get('t');
const svgIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-file-earmark-font-fill" viewBox="0 0 16 16" height="1em" width="1em"><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/> </svg>`

const download = document.getElementById('download');
download.href = `/${fontUrl}`;
download.innerHTML = `${svgIcon} 下载地址一:${fontName}`;

const download1 = document.getElementById('download_jsdelivr');
download1.href = `https://cdn.jsdelivr.net/gh/jaywcjlove/free-font@main/docs/${fontUrl}`;
download1.innerHTML = `${svgIcon} 下载地址一:${fontName}`;
Expand Down
4 changes: 0 additions & 4 deletions templates/_partial/preview_scripts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
const fontName = urlParams.get('t');
const svgIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-file-earmark-font-fill" viewBox="0 0 16 16" height="1em" width="1em"><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/> </svg>`
const download = document.getElementById('download');
download.href = `/${fontUrl}`;
download.innerHTML = `${svgIcon} 下载地址一:${fontName}`;
const download1 = document.getElementById('download_jsdelivr');
download1.href = `https://cdn.jsdelivr.net/gh/jaywcjlove/free-font@main/docs/${fontUrl}`;
download1.innerHTML = `${svgIcon} 下载地址一:${fontName}`;
Expand Down

0 comments on commit a18b3ee

Please sign in to comment.