https://github.com/b3log/solo/issues/12805 document title
This commit is contained in:
parent
0824cd7eff
commit
c4c884ffdd
File diff suppressed because one or more lines are too long
@ -431,11 +431,11 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #2daebf;
|
color: $fade-lighter;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #f60;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
@ -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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user