本文内容大部分都来源于下面的美化教程,其中包含本站个人个性化自定义设置,因此仅供参考,如果你不知道设置里每句的具体含义,请勿无脑照抄
美化教程
插件
博主的介绍
<!--博主介绍的闪字特效-->
<span class="text-muted text-xs block">
<div id="chakhsu"></div>
<script>
var chakhsu = function (r) {
function t() {
return b[Math.floor(Math.random() * b.length)]
}
function e() {
return String.fromCharCode(94 * Math.random() + 33)
}
function n(r) {
for (var n = document.createDocumentFragment(), i = 0; r > i; i++) {
var l = document.createElement("span");
l.textContent = e(), l.style.color = t(), n.appendChild(l)
}
return n
}
function i() {
var t = o[c.skillI];
c.step ? c.step-- : (c.step = g, c.prefixP < l.length ? (c.prefixP >= 0 && (c.text += l[c.prefixP]),
c.prefixP++) : "forward" === c.direction ? c.skillP < t.length ? (c.text += t[c.skillP],
c.skillP++) : c.delay ? c.delay-- : (c.direction = "backward", c.delay = a) : c.skillP >
0 ? (c.text = c.text.slice(0, -1), c.skillP--) : (c.skillI = (c.skillI + 1) % o.length, c
.direction = "forward")), r.textContent = c.text, r.appendChild(n(c.prefixP < l.length ?
Math.min(s, s + c.prefixP) : Math.min(s, t.length - c.skillP))), setTimeout(i, d)
} /*以下内容自定义修改*/
var l = "",
o = ["我好菜啊"].map(function (r) {
return r + ""
}),
a = 2,
g = 1,
s = 5,
d = 75,
b = ["rgb(110,64,170)", "rgb(150,61,179)", "rgb(191,60,175)", "rgb(228,65,157)", "rgb(254,75,131)",
"rgb(255,94,99)", "rgb(255,120,71)", "rgb(251,150,51)", "rgb(226,183,47)", "rgb(198,214,60)",
"rgb(175,240,91)", "rgb(127,246,88)", "rgb(82,246,103)", "rgb(48,239,130)", "rgb(29,223,163)",
"rgb(26,199,194)", "rgb(35,171,216)", "rgb(54,140,225)", "rgb(76,110,219)", "rgb(96,84,200)"
],
c = {
text: "",
prefixP: -s,
skillI: 0,
skillP: 0,
direction: "forward",
delay: a,
step: g
};
i()
};
chakhsu(document.getElementById('chakhsu'));
</script>
</span>
左侧边栏导航
{"name":"留言板","class":"iconfont icon-liuyan","link":"https://www.2bboy.com/guestbook.html","target":"_self"},
{"name":"动态","class":"iconfont icon-dongtai2","link":"https://www.2bboy.com/cross.html","target":"_self"},
{"name":"归档","class":"iconfont icon-rili2","link":"https://www.2bboy.com/file.html","target":"_self"},
{"name":"追番","class":"iconfont icon-pgc_bangumi","link":"https://www.2bboy.com/bangumi.html","target":"_self"},
{"name":"云盘","class":"iconfont icon-yun","link":"https://pan.2bboy.com/Public"},
{"name":"home","status":"hide"}
顶部导航
{"name":"bilibili","class":"iconfont icon-bilibili-fill","link":"https://space.bilibili.com/22411920"},
{"name":"github","class":"iconfont icon-github","link":"https://github.com/kizx"},
{"name":"steam","class":"iconfont icon-steam","link":"https://steamcommunity.com/id/kizxmoe"},
{"name":"talk","status":"hide"}
时光机社交按钮
{"name":"微博","class":"fontello fontello-weibo","link":"https://weibo.com/u/5938819173"},
{"name":"github","class":"fa fa-github","link":"https://github.com/kizx"},
{"name":"gitee","class":"fa fa-git","link":"https://gitee.com/kizx"},
{"name":"steam","class":"fa fa-steam","link":"https://steamcommunity.com/id/kizxmoe"},
{"name":"bilibili","status":"single","link":"https://space.bilibili.com/22411920"},
{"name":"网易云","status":"single","link":"https://music.163.com/#/user/home?id=111496719"},
{"name":"bangumi","status":"single","class":"fa fa-heartbeat","link":"http://bangumi.tv/user/305237"}
pjax回调函数
<!--彩色标签云-->
let tags = document.querySelectorAll("#tag_cloud-2 a");
let colorArr = ["#428BCA", "#AEDCAE", "#ECA9A7", "#DA99FF", "#FFB380", "#D9B999"];
tags.forEach(tag => {
tagsColor = colorArr[Math.floor(Math.random() * colorArr.length)];
tag.style.backgroundColor = tagsColor;
});
<!--代码高亮-->
if (typeof Prism !== 'undefined') {
Prism.highlightAll(true,null);}
<!--复制提示-->
kaygb_copy();
博客底部左侧
<div class="github-badge">
<a href="./" title="©2019 kizx">
<span class="badge-subject">Copyright</span><span class="badge-value bg-blue">©2019 kizx</span>
</a>
</div>
|
<div class="github-badge">
<a href="http://beian.miit.gov.cn" target="_blank" title="陕ICP备19016973号" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;">
<span class="badge-subject">陕ICP备</span><span class="badge-value bg-green">19016973号</span>
</a>
</div>
博客底部右侧
<div class="github-badge">
<a href="http://www.typecho.org" target="_blank" title="由 Typecho 强力驱动" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;">
<span class="badge-subject">Powered</span><span class="badge-value bg-blue">Typecho</span>
</a>
</div>
|
<div class="github-badge">
<a href="https://www.ihewro.com/archives/489/" target="_blank" title="Handsome主题" style="cursor: url("/usr/plugins/HoerMouse/static/image/dew/link.cur"), pointer;">
<span class="badge-subject">Theme</span><span class="badge-value bg-orange">Handsome</span>
</a>
</div>
自定义css
/* 首页文章列表悬停上浮 */
.blog-post .panel:not(article) {
transition: all 0.3s;
}
.blog-post .panel:not(article):hover {
transform: translateY(-10px);
box-shadow: 0 8px 10px rgba(73, 90, 47, 0.47);
}
/* 头像呼吸光环和鼠标悬停旋转放大 */
.img-full {
width: 100px;
border-radius: 50%;
animation: light 4s ease-in-out infinite;
transition: 0.5s;
}
.img-square, .img-circle {
transition: 0.5s;
}
.img-square:hover, .img-circle:hover {
transform: scale(1.15) rotate(360deg);
}
.img-full:hover {
transform: scale(1.15) rotate(720deg);
}
@keyframes light {
0% {
box-shadow: 0 0 4px #f00;
}
25% {
box-shadow: 0 0 16px #0f0;
}
50% {
box-shadow: 0 0 4px #00f;
}
75% {
box-shadow: 0 0 16px #0f0;
}
100% {
box-shadow: 0 0 4px #f00;
}
}
/*底部页脚*/
.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 12px;
color: #fff;
line-height: 15px;
background-color: #abbac3;
margin-bottom: 5px;
}
.github-badge .badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.github-badge .bg-blue {
background-color: #007ec6;
}
.github-badge .bg-orange {
background-color: #ffa500;
}
.github-badge .bg-red {
background-color: #f00;
}
.github-badge .bg-green {
background-color: #3bca6e;
}
.github-badge .bg-purple {
background-color: #ab34e9;
}
/*Bilibili视频挂载*/
.iframe_video {
position: relative;
width: 100%;
}
@media only screen and (max-width: 767px) {
.iframe_video {
height: 15em;
}
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
.iframe_video {
height: 20em;
}
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
.iframe_video {
height: 30em;
}
}
@media only screen and (min-width: 1200px) {
.iframe_video {
height: 40em;
}
}
.iframe_cross {
position: relative;
width: 100%;
height: 0;
padding-bottom: 75%;
}
.iframe_cross iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
自定义javascript
/* 彩色标签云 */
let tags = document.querySelectorAll("#tag_cloud-2 a");
let colorArr = ["#428BCA", "#AEDCAE", "#ECA9A7", "#DA99FF", "#FFB380", "#D9B999"];
tags.forEach(tag => {
tagsColor = colorArr[Math.floor(Math.random() * colorArr.length)];
tag.style.backgroundColor = tagsColor;
})
/* 复制提示 */
kaygb_copy();
function kaygb_copy(){$(document).ready(function(){$("body").bind('copy',function(e){hellolayer()})});var sitesurl=window.location.href;function hellolayer(){
$.message({
message: "尊重原创,转载请注明出处!<br> 本文作者:醉后的星星<br>原文链接:<br>"+sitesurl,
title: "复制成功",
type: "success",
autoHide: !1,
time: "15000"
})
}}
自定义Head
<!--图标-->
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--分享内容-->
<meta itemprop="name" content="醉后的星星" />
<meta itemprop="image" content="https://www.2bboy.com/usr/uploads/txmk.jpg" />
<meta name="description" itemprop="description" content="我好菜啊" />
<!--百度统计-->
<!--动态标题-->
<script>document.addEventListener('visibilitychange', function () { if (document.visibilityState == 'hidden') { normal_title = document.title; document.title = '人呢?快回来!'; } else { document.title = normal_title; } });</script>
pio插件设置
{
"welcome": ["你好,欢迎来到本站!", "有问题欢迎留言"],
"touch": [
"你这个绅士!",
"别碰我!",
"你在干什么?",
"再摸我就报警了!",
"HENTAI!",
"你够了喔!",
"萝莉是什么呀"
],
"skin": ["想看看我的新服装吗?", "新衣服真漂亮~"],
"home": "点击这里回到首页",
"link": "https://docs.paul.ren/pio/#/",
"referer": "Hi,欢迎来自 %t 的朋友",
"close": "QWQ 下次再见吧~",
"custom": [
{
"type": "read",
"selector": ".post-meta>h2 a"
},
{
"selector": ".music-box",
"text": "你想听歌吗o((;=゚ 3゚ =))o~♪"
},
{
"selector": ".comment-form-comment",
"text": "填写真实邮箱可以收到回复通知哦(๑・ω-)~"
},
{
"selector": ".searchform",
"text": "会搜索的人运气不会太差o(≧▽≦)o"
},
{
"selector": ".dropdown:nth-last-child(4)",
"text": "想关注我的bilibili频道吗"
},
{
"selector": ".dropdown:nth-last-child(3)",
"text": "人生苦短"
},
{
"selector": ".dropdown:nth-last-child(2)",
"text": "可以不玩,不能没有"
}
]
}