Update header.html

This commit is contained in:
Joe 2018-06-24 16:09:25 +08:00 committed by GitHub
parent 459c594fbf
commit d4c8bf0af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
<script type="text/discourse-plugin" version="0.8.20">
api.decorateWidget("home-logo:after", helper => {
const titleVisible = helper.attrs.minimized;
console.log(titleVisible);
if (titleVisible) {
$(".headerLink:not(.keep)").fadeOut("fast");
$(".headerLink:not(.keep)").fadeOut('700');
} else {
$(".headerLink").fadeIn("fast");
$(".headerLink").fadeIn('700');
}
});