🚀 feat: showThemeInConsole
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user