Skip to content

Commit

Permalink
delete: 移除RunTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Apr 23, 2022
1 parent 6f2e37a commit ce16123
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ var html
var mask
var mobileNav

function RunTime() {
const dom = $query('.runtime')
if (!dom) return
let date = dom.getAttribute('publish-date')
date = (Date.now() - new Date(date).getTime()) / 86400000
dom.innerText = parseInt(date) || 1
}
// 代码框
function addCodeBlock() {
var codeBlock = $queryAll('figure.highlight')
Expand Down Expand Up @@ -238,7 +231,6 @@ function exeAllFn() {
html = document.getElementsByTagName('html')[0]
mask = $id('mask')
mobileNav = $id('mobile-nav')
RunTime() // 网站运行时间
addCodeBlock() // 添加代码框
tableWrap() // 添加table外围
fancyboxFn() // 图片灯箱
Expand Down

0 comments on commit ce16123

Please sign in to comment.