This commit is contained in:
Van 2019-07-09 23:08:03 +08:00
parent 0824cd7eff
commit c4c884ffdd
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
4 changed files with 20 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -431,11 +431,11 @@ a {
} }
a { a {
color: #2daebf; color: $fade-lighter;
&:hover { &:hover {
text-decoration: none; text-decoration: none;
color: #f60; color: #fff;
} }
} }
} }

View File

@ -83,6 +83,22 @@ var Skin = {
Util.goTop() Util.goTop()
} }
}) })
var timer = 0
var blogTitle = $('.header__h1').text()
document.addEventListener('visibilitychange', function () {
if (timer) clearTimeout(timer)
if (document.hidden) {
timer = setTimeout(function () {
document.title = '(◍´꒳`◍)' + ' - ' + blogTitle
}, 500)
} else {
document.title = '(*´∇`*) 欢迎回来!'
timer = setTimeout(function () {
document.title = blogTitle
}, 1000)
}
}, false)
}, },
initArticle: function () { initArticle: function () {
page.share() page.share()

View File

@ -22,7 +22,7 @@
<header class="header header--${type}"> <header class="header header--${type}">
<div class="wrapper header__title"> <div class="wrapper header__title">
<h1 class="header__h1 fn__flex-inline"> <h1 class="header__h1 fn__flex-inline">
<a href="${servePath}" rel="start" class="header__title">${blogTitle}</a> <a href="${servePath}" rel="start">${blogTitle}</a>
</h1> </h1>
<h2 class="header__desc header__desc--title">${blogSubtitle}</h2> <h2 class="header__desc header__desc--title">${blogSubtitle}</h2>
<div class="header__desc"> <div class="header__desc">