🚀 feat: showThemeInConsole

This commit is contained in:
沈宇
2020-03-24 14:06:11 +08:00
parent ebe1e25719
commit 97e79abc8d
2 changed files with 22 additions and 1 deletions

View File

@@ -152,6 +152,27 @@
sessionStorage.setItem('darkmode', 1)
}
})
// showThemeInConsole
const ayerInfo = '主题不错⭐star 支持一下 ->';
const ayerURL = 'https://github.com/Shen-Yu/hexo-theme-ayer';
const ayerNameStr =
'\n\n _ __ _______ _____ \n / \\ \\ \\ / / ____| _ \\ \n / _ \\ \\ V /| _| | |_) | \n / ___ \\ \| | | |___| _ < \n /_/ \\_\\ _| |_____|_| \\__\\ \n';
const ayerInfoStyle =
'background-color: #49b1f5; color: #fff; padding: 8px; font-size: 14px;';
const ayerURLStyle =
'background-color: #ffbca2; padding: 8px; font-size: 14px;';
const ayerNameStyle = 'background-color: #eaf8ff;';
console.log(
'%c%s%c%s%c%s',
ayerInfoStyle,
ayerInfo,
ayerURLStyle,
ayerURL,
ayerNameStyle,
ayerNameStr
);
})(jQuery);