博客园美化系列第五弹

<!-- 鼠标星星 -->
<script type="text/javascript">
    if (screen && screen.width > 860) {
        document.write('<script type="text/javascript" src="https://blog-static.cnblogs.com/files/vivin-echo/cursor-effects.js"><\/script>');
    }
</script>
<!-- 鼠标粒子吸附 -->
<script id="c_n_script" src="https://blog-static.cnblogs.com/files/hxun/canvas-nest.js" 
    color="0,0,0"//颜色
    opacity="1"
    count="500"//数量
    zindex="-1">
</script>
<!-- 浏览器标题切换-->
<div style = "display:none;" > </div>
<script> 
var OriginTitile = document.title;    // 保存之前页面标题
var titleTime; 
document.addEventListener('visibilitychange', function(){
    if (document.hidden){
        document.title ='你不要我了么?qwq';  // 切出文字
        clearTimeout(titleTime);
    }else{  
        document.title = '欢迎回来~';  // 切入文字
        titleTime = setTimeout(function() {document.title = OriginTitile;}, 1000); // 2秒后恢复原标题
    }
});
</script>

<!-- 浏览器标题图片 -->
<script type="text/javascript" language="javascript">
  var linkObject = document.createElement('link');
  linkObject.rel = "shortcut icon";
  linkObject.href = "https://files.cnblogs.com/files/ECJTUACM-873284962/favicon.ico"; // 好像不可更改呀,如果能告诉我一声。
  document.getElementsByTagName("head")[0].appendChild(linkObject);
</script>
<!-- 鼠标特效烟花 -->
 <script src="https://blog-static.cnblogs.com/files/yjlblog/cursor-effects.js"></script>
 <canvas width="1366" height="662" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
<!-- 樱花特效 -->
<script type="text/javascript">
    for(var i=1; i<=10; i++){$.getScript("https://files.cnblogs.com/files/blogs/710456/yinghua.js?t=1647783220");}
	// 更改樱花数量
</script>

主要配置

<!-- 小鱼-->
<div id="jsi-flying-fish-container" class="container" style="background-color:#F5f5f5"// 小鱼颜色></div> 
<script src='https://blog-static.cnblogs.com/files/yiyuzi/myfish.js'></script>
<style>
  @media only screen and (max-width: 767px){
  #sidebar_search_box input[type=text]{width:calc(100%-24px);   }}
  #jsi-flying-fish-container{
    opacity: 0.1;//小鱼透明度
    position:fixed;
    width: 100%; // 小鱼占长多少。
    height: 10%; // 小鱼占宽多少。
	bottom: 0;
  }
</style>
<!-- 主题配置根据https://www.yuque.com/awescnb/user/rycpvv更改 --> 
<script src="https://guangzan.gitee.io/awescnb/index.js"></script>
<script>
    const opts = {
    // 基本配置
    theme: {
        name: 'geek',
        color: '#87CEFA',
        avatar: 'https://pic.cnblogs.com/avatar/3230110/20230627230530.png', 
        headerBackground: 'http://www.98qy.com/sjbz/api.php',
    },
    // 文章目录
    catalog: {enable: true,},
    // 博文签名
    postSignature: {
        enable: false,
        enableLicense: false,
    },
    // 右下角按钮组
    tools: {
        enable: true,
        initialOpen: true,
    },
    // live2d模型
    live2d: {
        enable: true,
        page: 'all',
        agent: 'pc',
        model: 'haru-02',
        width: 250,
        height: 630,
        position: 'left',
        gap: '0px',
    },
    // 暗色模式
    darkMode: {enable: true,},
    github: {enable: false,},
    // 个性签名
    signature: {
        enable: true,
        contents: [
            "<b style='color:#87CEFA'>Welcome to Liukejie's blog🎉</b>",
        ],
    },
    // 背景图片或颜色
    bodyBackground: {
        enable: true,
        value: 'http://www.98qy.com/sjbz/api.php',
        opacity: 0.8,
    },
    // 评论输入框表情
    emoji: {
        enable: true,
        buttonIcon: "🥳",
        emojiList: [
            {value:"🥳",},
            {value:"😀",},
            {value:"😃",},
            {value:"😄",},
            {value:"😁",},
            {value:"😆",},
            {value:"😅",},
            {value:"🤣",},
            {value:"😂",},
            {value:"🙂",},
            {value:"🙃",},
            {value:"😉",},
            {value:"😊",},
            {value:"😇",},
            {value:"🥰",},
            {value:"😍",},
            {value:"🤩",},
            {value:"😘",},
            {value:"😗",},
            {value:"😚",},
            {value:"😙",},
            {value:"😋",},
            {value:"😛",},
            {value:"😜",},
            {value:"🤪",},
            {value:"😝",},
            {value:"🤑",},
            {value:"🤗",},
            {value:"🤭",},
            {value:"🤫",},
            {value:"🤔",},
            {value:"🤐",},
            {value:"🤨",},
            {value:"😐",},
            {value:"😑",},
            {value:"😶",},
            {value:"😶‍🌫️",},
            {value:"😏",},
            {value:"😒",},
            {value:"🙄",},
            {value:"😬",},
            {value:"😮‍💨",},
            {value:"🤥",},
            {value:"😌",},
            {value:"😔",},
            {value:"😪",},
            {value:"🤤",},
            {value:"😴",},
            {value:"😷",},
            {value:"🤒",},
            {value:"🤕",},
            {value:"🤢",},
            {value:"🤮",},
            {value:"🤧",},
            {value:"🥵",},
            {value:"🥶",},
            {value:"🥴",},
            {value:"😵",},
            {value:"😵‍💫",},
            {value:"🤯",},
            {value:"🤠",},
            {value:"🥳",},
            {value:"😎",},
            {value:"🤓",},
            {value:"🧐",},
            {value:"😕",},
            {value:"😟",},
            {value:"🙁",},
            {value:"☹",},
            {value:"😮",},
            {value:"😯",},
            {value:"😲",},
            {value:"😳",},
            {value:"🥺",},
            {value:"😦",},
            {value:"😧",},
            {value:"😨",},
            {value:"😰",},
            {value:"😥",},
            {value:"😢",},
            {value:"😭",},
            {value:"😱",},
            {value:"😖",},
            {value:"😣",},
            {value:"😞",},
            {value:"😓",},
            {value:"😩",},
            {value:"😫",},
            {value:"🥱",},
            {value:"😤",},
            {value:"😡",},
            {value:"😠",},
            {value:"🤬",},
            {value:"😈",},
            {value:"👿",},
            {value:"💀",},
            {value:"☠",},
            {value:"💩",},
            {value:"🤡",},
            {value:"👹",},
            {value:"👺",},
            {value:"👻",},
            {value:"👽",},
            {value:"👾",},
            {value:"🤖",},
            {value:"😺",},
            {value:"😸",},
            {value:"😹",},
            {value:"😻",},
            {value:"😼",},
            {value:"😽",},
            {value:"🙀",},
            {value:"😿",},
            {value:"😾",},
            {value:"🙈",},
            {value:"🙉",},
            {value:"🙊",},
        ]
    },
}
$.awesCnb(opts)
</script>
posted @ 2024-08-28 17:22  liukejie  阅读(6)  评论(0编辑  收藏  举报