首页
关 于
友 链
留言
更多
直播
壁纸
视频
推荐
导航页
个人图库
bing每日一图
视频去水印
网站监控
Search
1
Cuteen主题Mashiro同款LOGO
10465 阅读
2
Epic免费喜+15天,每天一款免费游戏!
8792 阅读
3
Nginx能做什么?
5922 阅读
4
Windows微信多开软件
5634 阅读
5
Cuteen主题侧栏添加人生倒计时
5510 阅读
文章
Search
标签搜索
epic喜+1
Cuteen
Cuteen主题
美化
Linux
生活
壁纸
SQL
steam
CentOS
Redis
Windows 10
耳机
EMUI11
软件教程
旅游
动漫壁纸
南京大屠杀纪念日
雪
TypechoL
J的故事
累计撰写
54
篇文章
累计收到
59
条评论
首页
栏目
文章
页面
关 于
友 链
留言
直播
壁纸
视频
推荐
导航页
个人图库
bing每日一图
视频去水印
网站监控
搜索到
3
篇与
Cuteen
的结果
2020-12-28
Cuteen主题侧栏添加在线时间
侧栏添加在线时间直接复制代码到/usr/themes/Cuteen/base/sidebar.php文件下-最新回复的上方 <div class="sidebar-box sidebar-box-1"> <div class="p-3">在线时间</div> <h5 class="widget-title m-t-none text-md"> <canvas id="canvas" style="width:100%;" width="820" height="250"></canvas> <script src="https://cdn.jsdelivr.net/gh/xbwlcm/Public/js/clock.js"></script> </h5> </div>效果
2020年12月28日
2,084 阅读
0 评论
0 点赞
2020-12-22
Cuteen主题侧栏添加人生倒计时
侧栏添加人生倒计时1.先找到路径 /usr/themes/Cuteen/base/sidebar.php文件下-最新回复的上方 <div class="sidebar-box classListBox"> <div class="aside aside-count"> <div class="p-3">人生倒计时</div> <div class="content"> <div class="item" id="dayProgress"> <div class="title">今日已经过去<span>21</span>小时</div> <div class="progress"> <div class="progress-bar"> <div class="progress-inner progress-inner-1" style="width: 88%;"></div> </div> <div class="progress-percentage">88%</div> </div> </div> <div class="item" id="weekProgress"> <div class="title">这周已经过去<span>2</span>天</div> <div class="progress"> <div class="progress-bar"> <div class="progress-inner progress-inner-2" style="width: 28%;"></div> </div> <div class="progress-percentage">28%</div> </div> </div> <div class="item" id="monthProgress"> <div class="title">本月已经过去<span>22</span>天</div> <div class="progress"> <div class="progress-bar"> <div class="progress-inner progress-inner-3" style="width: 70%;"></div> </div> <div class="progress-percentage">70%</div> </div> </div> <div class="item" id="yearProgress"> <div class="title">今年已经过去<span>12</span>个月</div> <div class="progress"> <div class="progress-bar"> <div class="progress-inner progress-inner-4" style="width: 100%;"></div> </div> <div class="progress-percentage">100%</div> </div> </div> </div> </div> </div>2.添加完成后,在主题后台自定义css里添加如下代码.aside-count .content { padding: 15px } .aside-count .content .item { margin-bottom: 15px } .aside-count .content .item:last-child { margin-bottom: 0 } .aside-count .content .item .title { font-size: 12px; color: var(--minor); margin-bottom: 5px; display: flex; align-items: center } .aside-count .content .item .title span { color: var(--theme); font-weight: 500; font-size: 14px; margin: 0 5px } .aside-count .content .item .progress { display: flex; align-items: center } .aside-count .content .item .progress .progress-bar { height: 10px; border-radius: 5px; overflow: hidden; background: var(--classC); width: 0; min-width: 0; flex: 1; margin-right: 5px } @keyframes progress { 0% { background-position: 0 0 } 100% { background-position: 30px 0 } } .aside-count .content .item .progress .progress-bar .progress-inner { width: 0; height: 100%; border-radius: 5px; transition: width 0.35s; -webkit-animation: progress 750ms linear infinite; animation: progress 750ms linear infinite } .aside-count .content .item .progress .progress-bar .progress-inner-1 { background: #bde6ff; background-image: linear-gradient(135deg, #50bfff 25%, transparent 25%, transparent 50%, #50bfff 50%, #50bfff 75%, transparent 75%, transparent 100%); background-size: 30px 30px } .aside-count .content .item .progress .progress-bar .progress-inner-2 { background: #ffd980; background-image: linear-gradient(135deg, #f7ba2a 25%, transparent 25%, transparent 50%, #f7ba2a 50%, #f7ba2a 75%, transparent 75%, transparent 100%); background-size: 30px 30px } .aside-count .content .item .progress .progress-bar .progress-inner-3 { background: #ffa9a9; background-image: linear-gradient(135deg, #ff4949 25%, transparent 25%, transparent 50%, #ff4949 50%, #ff4949 75%, transparent 75%, transparent 100%); background-size: 30px 30px } .aside-count .content .item .progress .progress-bar .progress-inner-4 { background: #67c23a; background-image: linear-gradient(135deg, #4f9e28 25%, transparent 25%, transparent 50%, #4f9e28 50%, #4f9e28 75%, transparent 75%, transparent 100%); background-size: 30px 30px } .aside-count .content .item .progress .progress-percentage { color: var(--info) }3.添加完成后,在到/usr/themes/Cuteen/static/js/里面创建名为timeinfo.js后把下面代码复制进去保存.function init_life_time() { function getAsideLifeTime() { /* 褰撳墠鏃堕棿鎴� */ let nowDate = +new Date(); /* 浠婂ぉ寮€濮嬫椂闂存埑 */ let todayStartDate = new Date(new Date().toLocaleDateString()).getTime(); /* 浠婂ぉ宸茬粡杩囧幓鐨勬椂闂� */ let todayPassHours = (nowDate - todayStartDate) / 1000 / 60 / 60; /* 浠婂ぉ宸茬粡杩囧幓鐨勬椂闂存瘮 */ let todayPassHoursPercent = (todayPassHours / 24) * 100; $('#dayProgress .title span').html(parseInt(todayPassHours)); $('#dayProgress .progress .progress-inner').css('width', parseInt(todayPassHoursPercent) + '%'); $('#dayProgress .progress .progress-percentage').html(parseInt(todayPassHoursPercent) + '%'); /* 褰撳墠鍛ㄥ嚑 */ let weeks = { 0: 7, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6 }; let weekDay = weeks[new Date().getDay()]; let weekDayPassPercent = (weekDay / 7) * 100; $('#weekProgress .title span').html(weekDay); $('#weekProgress .progress .progress-inner').css('width', parseInt(weekDayPassPercent) + '%'); $('#weekProgress .progress .progress-percentage').html(parseInt(weekDayPassPercent) + '%'); let year = new Date().getFullYear(); let date = new Date().getDate(); let month = new Date().getMonth() + 1; let monthAll = new Date(year, month, 0).getDate(); let monthPassPercent = (date / monthAll) * 100; $('#monthProgress .title span').html(date); $('#monthProgress .progress .progress-inner').css('width', parseInt(monthPassPercent) + '%'); $('#monthProgress .progress .progress-percentage').html(parseInt(monthPassPercent) + '%'); let yearPass = (month / 12) * 100; $('#yearProgress .title span').html(month); $('#yearProgress .progress .progress-inner').css('width', parseInt(yearPass) + '%'); $('#yearProgress .progress .progress-percentage').html(parseInt(yearPass) + '%'); } getAsideLifeTime(); setInterval(() => { getAsideLifeTime(); }, 1000); } init_life_time()4.最后到/usr/themes/Cuteen/base/head.php里面引入此js.(放在</head>上面即可)<script async="" src="https://qrj.hk/usr/themes/Cuteen/static/js/timeinfo.js"></script>效果[button color="danger" url="https://www.txmmp.cn/index.php/archives/28/" outline="" target="_self"]原文美化链接[/button]
2020年12月22日
5,510 阅读
1 评论
0 点赞
2020-12-21
Cuteen主题Mashiro同款LOGO
前言方法还是 F12 Mashiro大佬博客的,和大佬博客展示的一毛一样 (:зゝ∠)用了 CSS自定义字体 + 大佬博客爬到的CSS ,Mashiro大佬用的字体包只有 “樱花庄的白猫” 这几个字,所以字体包只能自己百度喜欢的啦(注意版权问题哦)!不多说 开干 :@(呲牙)1.首先找到一款你想要的字体,我这里用的萝莉小猫咪体。由于中文字体包都很大不利于WEB环境,这里我们需要使用 Fontmin,从字体包里提取出我们要使用的首先找到一款你想要的字体,我这里用的萝莉小猫咪体。由于中文字体包都很大不利于WEB环境,这里我们需要使用 Fontmin,从字体包里提取出我们要使用的字体。[btn href="https://blog.slienca.top/go/aHR0cHM6Ly9lY29tZmUuZ2l0aHViLmlvL2ZvbnRtaW4vI2FwcA" type="default"]下载Fontmin客户端[/btn] 和你要用的字体包。2.生成完成后会有个文件夹,将文件夹复制到 /usr/themes/Cuteen/static/font 目录下,文件夹重命名为你自己想要的名字,这里我用的是 LOGO3.打开后台-外观-设置外观-自定义设置-复制代码粘贴至 头部自定义内容 引用上面文件里的 miao.css 文件<link rel="stylesheet" type="text/css" href="/usr/themes/Cuteen/static/font/LOGO/miao.css">4.在/usr/themes/Cuteen/base中,打开navbar.php文件将第13行的代码删除掉,并添加以下代码 <li class="navbar-nav"> <span class="logolink miao"> <a href="https://qrj.hk/"> <span class="sakuraso">J</span> <span class="no">の</span> <span class="shironeko">故事</span> <i class="up-new"style="display:inline-block;vertical-align: middle;height: 35px;"> </i> </a> </span> </li>5.打开后台-外观-设置外观-自定义设置-复制代码粘贴至自定义Css样式.miao { font-family: 'miao', 'Merriweather Sans', Helvetica, Tahoma, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif; } .logolink .sakuraso { background-color: rgba(255, 255, 255, .5); border-radius: 5px; color: #464646; height: auto; line-height: 25px; margin-right: 0; padding-bottom: 0px; padding-top: 1px; text-size-adjust: 100%; width: auto; } .logolink a:hover .sakuraso { background-color: orange; color: #fff; } .logolink a:hover .shironeko{ color: orange; } .logolink.miao a { color: #464646; float: left; font-size: 25px; font-weight: 800; line-height: 56px; padding-left: 6px; padding-right: 15px; text-decoration-line: none; } .logolink.miao .sakuraso,.logolink.miao .no { font-size: 25px; border-radius: 9px; padding-bottom: 2px; padding-top: 5px; } .logolink.miao .no { display: inline-block; margin-left: 5px; } .logolink a:hover .no { color: orange; -webkit-animation: spin 1.5s linear infinite; animation: spin 1.5s linear infinite; } .up-new { padding-right: 30px; padding-bottom: 5px; background: url(https://xxx.png) no-repeat; }完成效果 想要の转起来,只需要加个悬挂喵就可以转了。
2020年12月21日
10,465 阅读
14 评论
1 点赞