custom favicon

This commit is contained in:
MeiK
2020-12-21 10:11:36 +08:00
parent b28c47dd16
commit 9d9e9b3ef4
4 changed files with 9 additions and 1 deletions

View File

@@ -253,6 +253,9 @@ svgElem.classList.add(...["svg-tip", "svg-tip-one-line"]);
document.body.appendChild(svgElem);
function svgTip(elem, count, dateStr) {
if (window.screen.width < 768) {
return;
}
const rect = getCoords(elem);
const date = new Date(dateStr);
const dateFmt = `${months[date.getMonth()]} ${date.getDate()}, ${date.getFullYear()}`;