找到
151
篇与
教主
相关的结果
- 第 2 页
-
【Typecho】给Joe主题后台添加custom自定义功能! 大家好,今天来添加一下自定义功能! 😂 温馨提示:站长已经通过本地环境测试custom自定义功能,功能正常可以使用,按照我的操作来一定成功! 大纲 创建custom.php 粘贴代码到custom.php文件 引入custom.php文件 添加li标签代码 引入custom.min.css 引入custom.min.js 总结 摘要 本文主要是教各位给自己的joe主题完成一个后台的自定义设置的功能,以后你要添加带有开关的功能直接在自定义设置里面添加即可! 图片展示 title="m8y8or85.png"图片 如图所示,今天要完成的功能就是图片中的自定义设置!下面跟着我的操作来完成。 创建custom.php 登录你的服务器面板(小皮面板、宝塔面板等)找到joe主题的usr/themes/Joe/ public 进去之后创建一个名字为custom.php文件,然后复制以下代码头进行粘贴: <?php ?> 这个php代码的头部声明吧,以后要添加的php代码全部要放在:<?php 代码放这里面 ?> 怕你们看不懂,如下图所示: title="m8y8y891.png"图片 上面的创建php和粘贴一起说了。下面就是引入custom.php文件了,注意看!!! 引入custom.php 还是一样的,找到目录:/usr/themes/ Joe ,找到 functions.php 文件并打开,打开之后我们看到最后的位置,粘贴下面的代码: // 引入自定义设置 require_once("public/custom.php"); 放心,有演示图片的,不要着急!!! 演示图片 title="m8y97hcy.png"图片 看到图片中的符号没? 🔜 } 把引入代码放在它的前面即可! 每次添加完代码都要先保存,保存后先不要急着关闭functions.php,我们继续找到这个文件的开头位置准备添加以下代码: <li class="item" data-current="joe_custom">自定义设置</li>演示图 title="m8y9cpec.png"图片 放好之后我们保存,然后我就去引入custom.css和js文件了,这个简单啊!!! 引人custom.css&js 找到/usr/themes/Joe/assets/ css 点击创建文件,名字命名为custom.min.css,保存之后打开它,粘贴以下代码: html{--reading: #faf9de}html[data-night=night] body{--reading: #424242}html[data-night=night] body::before{filter:brightness(0.2)}html[data-night=night] body img:not(.owo_image,.shang,.user_logo),html[data-night=night] body .joe_detail__leaving-list .item,html[data-night=night] body .js_ad,html[data-night=night] body .a-js-ad,html[data-night=night] body .joe_detail__friends-item{filter:brightness(0.6)}html .joe_header__above-logo{overflow:hidden}html .joe_header__above-logo::before{content:"";position:absolute;top:-50px;left:-15px;width:250px;height:25px;background-image:linear-gradient(rgba(255, 255, 255, 0), var(--background));opacity:.8;transform:rotate(-45deg);-webkit-animation:flashlights 1s ease-in 1s infinite;animation:flashlights 1.5s ease-in 1s infinite}@-webkit-keyframes flashlights{0%{left:-100px;top:0}to{left:120px;top:100px}}@keyframes flashlights{0%{left:-100px;top:0}to{left:120px;top:100px}}@media(max-width: 1200px){.joe_header__above-search{display:none}.joe_header__above-searchicon{display:block}.joe_header__below-sign .joe_dropdown__link span{display:none}}.js_ad{margin-top:10px;position:relative;border-radius:var(--radius-wrap);box-shadow:var(--box-shadow);overflow:hidden;height:120px}@media(max-width: 768px){.js_ad{height:100px}}.Reward{text-align:center;margin-left:30px;color:var(--minor);font-size:12px}.Reward .footer_flex{width:42px;height:42px;background-color:#f56c6c;border-radius:50%;position:relative;z-index:10;display:flex;justify-content:center;align-items:center;margin-bottom:8px}.Reward .footer_flex:hover{background-color:var(--theme);cursor:pointer}.Reward .footer_flex:hover .flex_rows{display:block}.Reward .footer_flex .flex_rows{box-shadow:0px 1px 4px 2px var(--theme);cursor:auto;height:200px;width:170px;position:absolute;top:-215px;background:var(--background);display:none;border-radius:8px}.Reward .footer_flex .flex_rows::after{content:"";position:absolute;bottom:-16px;left:0;right:0;margin:auto;width:0px;border:18px solid transparent;border-bottom:none;border-top-color:var(--background);filter:drop-shadow(0px 4px 2px var(--theme))}.Reward .footer_flex .flex_rows .flex-footer{overflow:hidden;margin:10px;position:relative;width:150px;height:180px}.Reward .footer_flex .flex_rows .flex-footer .RewardImg{width:900px;position:absolute;left:0}.Reward .footer_flex .flex_rows .flex-footer .RewardImg li{float:left;overflow:hidden}.Reward .footer_flex .flex_rows .flex-footer .RewardImg li img{width:150px;border-radius:2px}.Reward .footer_flex .flex_rows .flex-footer .RewardBtn{display:inline-flex;border-radius:5px;position:absolute;border:1px solid var(--classC);bottom:0px;left:0}.Reward .footer_flex .flex_rows .flex-footer .RewardBtn li:nth-of-type(n + 2){border-left:1px solid var(--classC)}.Reward .footer_flex .flex_rows .flex-footer .RewardBtn li div{height:20px;font-size:12px;color:var(--routine);padding:2px;border-radius:2px}.Reward .footer_flex .flex_rows .flex-footer .RewardBtn li:hover{cursor:pointer}.imgUpload_btn{margin:-10px auto 5px;text-align:right}.imgUpload_btn span{cursor:pointer;margin-right:5px}.top-social{position:relative;padding-top:10px;display:flex;flex-wrap:wrap;justify-content:space-around}.top-social li{width:50px;text-align:center;position:relative;height:32px}.top-social li a{height:100%}.top-social li div{height:100%}.top-social li img{height:100%}.top-social li .WeChatInner{display:none;position:absolute;box-shadow:0px 1px 4px 2px var(--theme);border-radius:var(--radius-wrap);transition:.7s all ease;background:var(--background);-webkit-transition:.7s all ease;top:-180px;left:-50px;transform:translate3d(0, 16px, 0);width:150px;height:150px;z-index:20}.top-social li .WeChatInner::before{content:"";position:absolute;bottom:-16px;left:0;right:0;margin:auto;display:inline-block;width:0px;border:18px solid transparent;border-bottom:none;border-top-color:var(--background);filter:drop-shadow(0px 4px 2px var(--theme))}.top-social li .WeChatInner img{border-radius:2px;width:140px;height:auto;margin:5px;background:none}.top-social li:hover .WeChatInner{display:block}.pe-social{width:100%;background:var(--background);border-radius:var(--radius-wrap);padding:10px 15px;box-shadow:var(--box-shadow);margin-bottom:15px}.joe_comment__respond-form .body .text{background:var(--background);border-radius:var(--radius-inner);padding:5px}.joe_comment__respond-form .foot{justify-content:flex-start}.joe_comment__respond-form .foot .joe_owo__contain{position:static}.joe_comment__respond-form .foot .joe_owo__contain .box{position:absolute;bottom:100%;margin-bottom:6px;left:0px;padding-top:5px;border:1px solid rgba(0,0,0,.15);border-color:transparent;box-shadow:0 0 10px 8px rgba(116,116,116,.08)}.joe_comment__respond-form .foot .comment_box{cursor:pointer;text-align:center;color:var(--routine);height:26px;line-height:26px;background:var(--background);opacity:.85;border-radius:13px;width:70px;margin-left:5px}.joe_comment__respond-form .foot .comment_box:hover{background:var(--theme);color:#fff}.joe_comment__respond-form .foot .comment_box .dropdown-menu{cursor:default;position:absolute;top:auto;bottom:100%;margin-bottom:6px;z-index:10;display:none;min-width:160px;padding:5px 0;font-size:14px;text-align:left;list-style:none;background-color:var(--background);color:var(--minor);background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-color:transparent;border-radius:4px;box-shadow:0 0 10px 8px rgba(116,116,116,.08)}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code{width:250px;padding:8px 10px}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image p,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code p{margin:0 0 10px}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image p textarea,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code p textarea{resize:vertical}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image .form-control,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code .form-control{display:block;width:100%;padding:6px 12px;font-size:14px;line-height:1.42857143;border:1px solid #ccc;border-radius:4px;border-color:transparent;background:var(--classD);color:#4e5358;max-height:200px;min-height:90px;box-shadow:none;transition:border-color ease-in-out .15s,background ease-in-out .15s,box-shadow ease-in-out .15s,opacity ease-in-out .3s}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image .text-right,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code .text-right{text-align:right}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image .text-right .error,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code .text-right .error{float:left;color:var(--theme);-webkit-animation:5s ease-in-out 0s infinite normal none running shaked;animation:5s ease-in-out 0s infinite normal none running shaked}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image .text-right .but,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code .text-right .but{border-radius:4px;display:inline-block;line-height:1.44;background:var(--theme);color:#fff;padding:.3em 1em}.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-image .text-right .but:hover,.joe_comment__respond-form .foot .comment_box .dropdown-menu .dropdown-code .text-right .but:hover{-webkit-animation:5s ease-in-out 0s infinite normal none running shaked;animation:5s ease-in-out 0s infinite normal none running shaked}.joe_comment__respond-form .foot .press-down{background:var(--theme) !important;color:#fff !important}@media(max-width: 768px){.joe_comment__respond-form .foot .title{display:none}.joe_comment__respond-form .foot .owo .seat,.joe_comment__respond-form .foot .comment_box{width:26px}}.HeaderImg{position:relative;width:100%;height:15rem;display:flex;margin-left:auto;margin-right:auto;justify-content:center;align-items:center;flex-direction:column}.HeaderImg.minImg{width:82.5rem;height:25rem}.HeaderImg img{-o-object-fit:cover;object-fit:cover}.HeaderImg .infomation{position:absolute;line-height:2}.HeaderImg .infomation .title{font-size:2rem;font-weight:700;color:#fff;text-align:center;text-shadow:0 .1875rem .3125rem #1c1f21;letter-spacing:.5rem}.HeaderImg .infomation .desctitle{display:flex;align-items:center;justify-content:center;text-align:center;color:#f3f3f3;font-size:1rem;padding:0 1rem;text-shadow:0 .1875rem .3125rem #1c1f21}.HeaderImg .infomation .desctitle h1{font-size:1rem}.HeaderImg .infomation .desctitle h1.post_h{font-size:1.5rem}.HeaderImg .HeaderImg_arrow{opacity:1;cursor:pointer;margin-top:1.5rem;position:absolute;left:50%;bottom:20%;width:40px;height:40px;margin-left:-20px}.HeaderImg .HeaderImg_arrow .HeaderImg_arrow__bou{transform:translateX(-50%);transition-delay:5s;-webkit-animation-duration:4s;animation-duration:4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;transform-origin:center bottom;-webkit-animation-name:go_down_animation;animation-name:go_down_animation;-webkit-animation-timing-function:cubic-bezier(0.28, 0.84, 0.42, 1);animation-timing-function:cubic-bezier(0.28, 0.84, 0.42, 1)}@-webkit-keyframes go_down_animation{0%{transform:scale(1, 1) translateY(0px)}10%{transform:scale(1.1, 0.9) translateY(0px)}30%{transform:scale(0.9, 1.1) translateY(-30px)}50%{transform:scale(1.05, 0.95) translateY(0px)}57%{transform:scale(1, 1) translateY(-7px)}64%{transform:scale(1, 1) translateY(0px)}100%{transform:scale(1, 1) translateY(0px)}}@keyframes go_down_animation{0%{transform:scale(1, 1) translateY(0px)}10%{transform:scale(1.1, 0.9) translateY(0px)}30%{transform:scale(0.9, 1.1) translateY(-30px)}50%{transform:scale(1.05, 0.95) translateY(0px)}57%{transform:scale(1, 1) translateY(-7px)}64%{transform:scale(1, 1) translateY(0px)}100%{transform:scale(1, 1) translateY(0px)}}.HeaderImg .HeaderImg_bottom{width:100%;position:absolute;left:0;bottom:-5px}.HeaderImg .HeaderImg_bottom .waves-svg{width:100%;height:6rem}.HeaderImg .HeaderImg_bottom .waves-svg .parallax>use{-webkit-animation:move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;animation:move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite}.HeaderImg .HeaderImg_bottom .waves-svg .parallax>use:first-child{-webkit-animation-delay:-2s;animation-delay:-2s;-webkit-animation-duration:7s;animation-duration:7s;fill:var(--background);opacity:.9}.HeaderImg .HeaderImg_bottom .waves-svg .parallax>use:nth-child(2){-webkit-animation-delay:-3s;animation-delay:-3s;-webkit-animation-duration:10s;animation-duration:10s;fill:var(--background);opacity:.8}.HeaderImg .HeaderImg_bottom .waves-svg .parallax>use:nth-child(3){-webkit-animation-delay:-4s;animation-delay:-4s;-webkit-animation-duration:13s;animation-duration:13s;fill:var(--background);opacity:.9}.HeaderImg .HeaderImg_bottom .waves-svg .parallax>use:nth-child(4){-webkit-animation-delay:-5s;animation-delay:-5s;-webkit-animation-duration:20s;animation-duration:20s;fill:var(--background)}@-webkit-keyframes move-forever{0%{transform:translate3d(-90px, 0, 0)}to{transform:translate3d(85px, 0, 0)}}@keyframes move-forever{0%{transform:translate3d(-90px, 0, 0)}to{transform:translate3d(85px, 0, 0)}}.HeaderImg:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=)}@media(max-width: 768px){.HeaderImg{height:15rem;margin-top:0}.HeaderImg.minImg{width:100%;height:15rem}.HeaderImg .infomation .title{font-size:1.2rem}.HeaderImg .infomation .desctitle h1.post_h{font-size:1rem}.HeaderImg .HeaderImg_bottom .waves-svg{height:3rem}}.joe_aside.inactive{display:none}.joe_main{position:relative}@media(max-width: 768px){.joe-stretch{display:none}}.joe-stretch{height:100%;position:absolute;top:0;right:0;padding:40px 0}.joe-stretch .contain{position:-webkit-sticky;position:sticky;transition:top .5s;-webkit-animation:swingIconSet 2s infinite linear alternate;animation:swingIconSet 2s infinite linear alternate;z-index:333}@-webkit-keyframes swingIconSet{0%{transform:rotate(-30deg)}100%{transform:rotate(30deg)}}@keyframes swingIconSet{0%{transform:rotate(-30deg)}100%{transform:rotate(30deg)}}.joe-stretch .contain::before{content:"";position:absolute;top:0;left:0;width:10px;height:25px;border-top:2px solid var(--minor);border-right:2px solid var(--minor);transition:border .35s}.joe-stretch .contain svg{position:absolute;top:25px;left:-3px;width:24px;height:24px;fill:var(--minor);cursor:pointer;transition:fill .35s}.joe-stretch .contain:hover{-webkit-animation-play-state:paused;animation-play-state:paused}.joe-stretch .contain:hover svg{fill:var(--theme)}.joe-stretch .contain:hover::before{border-color:var(--theme)}.joe-stretch.active{display:block}.joe_action_item.read_book{visibility:hidden;transform:scale(0)}.joe_action_item.read_book.active{visibility:visible;transform:scale(1)}.joe_action_item.read_book svg{transform:scale(0);opacity:0;transition:transform .85s,opacity .85s}.joe_action_item.read_book svg.active{transform:scale(1);opacity:1}.joe_action_item.directory{display:none;transform:scale(0)}.joe_action_item.directory.active{display:inline-flex;transform:scale(1)}.joe_action_item.directory svg{transform:scale(0);opacity:0;transition:transform .85s,opacity .85s}.joe_action_item.directory svg.active{transform:scale(1);opacity:1}.joe_action_item.directory .tree{opacity:0;width:15rem;height:20rem;overflow:auto;position:absolute;z-index:-10;background:var(--background);border-radius:var(--radius-wrap);box-shadow:var(--box-shadow);-webkit-animation:rebox .5s forwards;animation:rebox .5s forwards;cursor:default}@-webkit-keyframes rebox{0%{transform:scale(1);opacity:1;transform:translateY(0px);right:45px;bottom:0}100%{transform:scale(0);opacity:0;width:0;height:0}}@keyframes rebox{0%{transform:scale(1);opacity:1;transform:translateY(0px);right:45px;bottom:0}100%{transform:scale(0);opacity:0;width:0;height:0}}.joe_action_item.directory .tree.active{-webkit-animation:box .5s forwards;animation:box .5s forwards}@-webkit-keyframes box{0%{transform:scale(0);opacity:0;width:0;height:0}100%{transform:scale(1);opacity:1;transform:translateY(0px);right:45px;bottom:0}}@keyframes box{0%{transform:scale(0);opacity:0;width:0;height:0}100%{transform:scale(1);opacity:1;transform:translateY(0px);right:45px;bottom:0}}.joe_action_item.directory .tree .title{font-size:16px;border-bottom:1px solid var(--routine);color:var(--routine);position:sticky;position:-webkit-sticky;padding:5px 10px;top:0;font-weight:bold}.joe_action_item.directory .tree .text{padding:5px 10px;overflow-y:auto;overflow-x:hidden;height:85%;white-space:nowrap;text-overflow:ellipsis}.joe_action_item.directory .tree .text a{text-decoration:none;color:var(--minor);font-size:15px;line-height:1.8;cursor:pointer}.joe_action_item.directory .tree .text a:hover{color:var(--theme);border-bottom:1px solid var(--theme)}.joe_detail__count-information .meta .item .icon{fill:var(--minor);margin:0 5px} 粘贴完成之后我们继续返回到/usr/themes/Joe/assets/ js 文件夹,在Js文件夹里面创建名字为custom.min.js的文件,记住哈是文件不是文件夹! 表情图片 代码如下: document.addEventListener("DOMContentLoaded",function(){if($(".Reward").length){let e=document.querySelector(".RewardImg"),t=document.querySelectorAll(".RewardImg li img"),o=document.querySelectorAll(".RewardBtn li"),a=document.querySelectorAll(".RewardBtn li div");for(let n=0;n<a.length;n++){e.style.width=150*t.length+"px";let i=0;a[0].style.backgroundColor="var(--theme)",a[0].style.color="#fff",o[n].style.width=1/a.length*(150-(a.length+1))+"px",a[n].num=n,a[n].onclick=function(){i=this.num;for(let e=0;e<a.length;e++)a[e].style.backgroundColor="",a[e].style.color="";a[i].style.backgroundColor="var(--theme)",a[i].style.color="#fff",e.style.left=-150*i+"px"}}}if($(".WeChat").length){$WeChatA=$(".WeChatA");let e=$WeChatA.get(0).outerHTML;e=e.replace(/^<a/,"<div"),e=e.replace(/\/a>$/,"/div>"),$WeChatA.replaceWith(e),$(".WeChat").mouseenter(function(){$(".WeChat").append('<div class="WeChatInner"><img src="javascript:;" /></div>'),$(".WeChatInner img").attr("src",$(".WeChatA").attr("href"))}),$(".WeChat").mouseleave(function(){$(".WeChatInner").remove()})}if($(".Comment_Citation").length){function e(){let e=Joe.CITATION,t=/(https?:\/\/[^\s]+)/g;t.test(e)?$.ajax({url:e,dataType:"text",success:e=>$(".joe_comment__respond-form .body textarea").val(e)}):$(".joe_comment__respond-form .body textarea").val(e)}e(),$(".Comment_Citation").click(function(){e()})}if($(".Comment_ImageUrl").length&&($(".Comment_ImageUrl").click(function(e){e.stopPropagation(),$(".Comment_ImageUrl .dropdown-menu").slideToggle("fast",function(){$(".Comment_ImageUrl .comment_box").toggleClass("press-down")}),$(".dropdown-image .text-right span").text(""),$(".dropdown-image textarea").val("")}),$(document).click(function(){$(".Comment_ImageUrl .dropdown-menu").stop().slideUp("fast"),$(".Comment_ImageUrl .comment_box").removeClass("press-down")}),$(".Comment_ImageUrl .dropdown-menu").on("click",function(e){e&&e.stopPropagation?e.stopPropagation():window.event&&(window.event.cancelBubble=!0)}),$(".dropdown-image [type='submit']").click(function(){let e=$(this).parents(".dropdown-image").find("textarea"),t=e.val(),o=$(".joe_comment__respond-form .body textarea").val(),a=/\http[s]{0,1}:\/\/.([^<>"]*)(\.(jpg|jpeg|png|gif|webp))/;a.test(t)?(t="[img="+t+"]\n",$(".joe_comment__respond-form .body textarea").val(o+t),$(".Comment_ImageUrl .dropdown-menu").stop().slideUp("fast"),$(".Comment_ImageUrl .comment_box").toggleClass("press-down"),t=e.val("")):($(".dropdown-image .text-right span").addClass("error"),$(".dropdown-image .text-right span").text("格式错误!"))})),$(".Comment_Code").length&&($(".Comment_Code").click(function(e){e.stopPropagation(),$(".Comment_Code .dropdown-menu").slideToggle("fast",function(){$(".Comment_Code .comment_box").toggleClass("press-down")}),$(".dropdown-code .text-right span").text(""),$(".dropdown-code textarea").val("")}),$(document).click(function(){$(".Comment_Code .dropdown-menu").stop().slideUp("fast"),$(".Comment_Code .comment_box").removeClass("press-down")}),$(".Comment_Code .dropdown-menu").on("click",function(e){e&&e.stopPropagation?e.stopPropagation():window.event&&(window.event.cancelBubble=!0)}),$(".dropdown-code [type='submit']").click(function(){let e=$(this).parents(".dropdown-code").find("textarea"),t=e.val(),o=$(".joe_comment__respond-form .body textarea").val();""==t?($(".dropdown-code .text-right span").addClass("error"),$(".dropdown-code .text-right span").text("请输入内容!")):(t="[code]\n"+t+"\n[/code]\n",$(".joe_comment__respond-form .body textarea").val(o+t),$(".Comment_Code .dropdown-menu").stop().slideUp("fast"),$(".Comment_Code .comment_box").toggleClass("press-down"),t=e.val(""))})),$(".comment-list .substance img:not(img.owo_image)").each(function(){$(this).attr("data-src")?$(this).wrap($(`<span style="display: block;" data-fancybox="Joe" href="${$(this).attr("data-src")}"></span>`)):$(this).wrap($(`<span style="display: block;" data-fancybox="Joe" href="${$(this).attr("src")}"></span>`))}),$(".comment-list__item").length){let e=$(".joe_comment > ol.comment-list").children(".comment-list__item"),t='<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8885993286780110"crossorigin="anonymous"></script><ins class="adsbygoogle"style="display:block" data-ad-format="fluid"data-ad-layout-key="-g8-h+6z-cm-d" data-ad-client="ca-pub-8885993286780110" data-ad-slot="5758522083"></ins> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>';for(let o=0;o<e.length;o++)o%4==3&&$("<li class='js_ad' style='margin-bottom:10px'>"+t+"</li>").insertAfter(e[o])}if($(".joe-stretch").length&&($(".joe-stretch .contain").css("top",$(".joe_header").height()+40),$(".joe-stretch").on("click",function(){$(".joe_aside").toggleClass("inactive")})),$(".read_book").length&&($(".joe_post").length&&($(".joe_action_item.read_book").addClass("active"),$(".joe_action_item.read_book .icon-1").addClass("active")),$(".joe_action_item.read_book").on("click",function(){$(".joe_action_item.read_book svg").hasClass("icon-1 active")?($(".joe_header").css("display","none"),$(".HeaderImg").css("display","none"),$(".joe_aside").css("display","none"),$(".joe_detail").css("backgroundColor","var(--reading)"),$(".joe_detail__related").css("display","none"),$(".joe_comment").css("display","none"),$(".joe_footer").css("display","none"),$(".joe-stretch").css("display","none"),$(".joe_detail__article").css("font-size","20px")):($(".joe_header").removeAttr("style"),$(".HeaderImg").removeAttr("style"),$(".joe_aside").removeAttr("style"),$(".joe_detail").removeAttr("style"),$(".joe_detail__related").removeAttr("style"),$(".joe_comment").removeAttr("style"),$(".joe_footer").removeAttr("style"),$(".joe-stretch").removeAttr("style"),$(".joe-stretch").removeAttr("style"),$(".joe_detail__article").removeAttr("style")),$(".joe_action_item.read_book .icon-1").toggleClass("active"),$(".joe_action_item.read_book .icon-2").toggleClass("active")})),$(".joe_post").length&&$(".joe_detail__article").find("h2,h3,h4,h5,h6").length){$("body").outerWidth()>=768?($(".joe_action_item.directory").addClass("active"),$(".joe_action_item.directory .icon-2").addClass("active"),$(".joe_action_item.directory .tree").addClass("active")):($(".joe_action_item.directory").addClass("active"),$(".joe_action_item.directory .icon-1").addClass("active"));let e=$(".joe_detail__article").find("*"),t=0;for(let o=0;o<e.length;o++)if("h"==e[o].localName.charAt(0)&&!isNaN(e[o].localName.charAt(1))){e[o].setAttribute("id","t"+t);let a=parseInt(e[o].localName.charAt(1))-2;for(;a--&&!(a<0);)$(".directory .tree .text").append(" ");$(".directory .tree .text").append("<a href='#t"+t+"'>"+$(e[o]).text()+"</a></br>"),t++}$(".joe_action_item.directory").on("click",function(){$(".joe_action_item.directory .tree").toggleClass("active"),$(".joe_action_item.directory .icon-1").toggleClass("active"),$(".joe_action_item.directory .icon-2").toggleClass("active")}),$(".directory .tree").on("click",function(e){e&&e.stopPropagation?e.stopPropagation():window.event&&(window.event.cancelBubble=!0)}),$(".directory .tree a").bind("click touch",function(){$("html,body").animate({scrollTop:$($(this).attr("href")).offset().top-65},1e3)})}$(".HeaderImg_arrow").length&&$(".HeaderImg_arrow").on("click",function(){$("body").outerWidth()>=768&&window.scrollTo({top:300,behavior:"smooth"})})});{function loveSiteTime(e,t){window.setTimeout(function(){loveSiteTime(e,t)},1e3);let o=1e3,a=60*o,n=60*a,i=24*n,r=365*i,s=new Date,l=s.getFullYear(),d=s.getMonth()+1,c=s.getDate(),m=s.getHours(),p=s.getMinutes(),_=s.getSeconds(),g=Date.UTC(2019,10,19,21,0,0);t&&(g=Date.UTC(t.split("-")[0],t.split("-")[1],t.split("-")[2],t.split("-")[3],t.split("-")[4],t.split("-")[5]));let h=Date.UTC(l,d,c,m,p,_),f=h-g,u=Math.floor(f/r),C=Math.floor(f/i-365*u),y=Math.floor((f-(365*u+C)*i)/n),v=Math.floor((f-(365*u+C)*i-y*n)/a),w=Math.floor((f-(365*u+C)*i-y*n-v*a)/o);$("#loveSiteTime4Aside")&&$("#loveSiteTime4Aside").html(e+"</br>"+u+"年"+C+"天"+y+"时"+v+"分"+w+"秒啦</br>"),$("#loveSiteTime4Header")&&$("#loveSiteTime4Header").html(e+"</br>"+u+"年"+C+"天"+y+"时"+v+"分"+w+"秒啦</br>")}}保存之后,去引入这两个文件。 在include.php中引入css\js文件文件路径:/usr/themes/Joe/ public 找到include.php文件并打开,在下面图片中的相应位置添加以下代码: title="m8y9t698.png"图片 <script src="<?php $this->options->themeUrl('assets/js/custom.min.js'); ?>"></script><link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/custom.min.css'); ?>">总结 创建必要的文件custom.php,引入设置,即可在joe后台看见并使用自定义设置功能,以后添加开关就直接在custom.php文件中添加就行了,不用在funstions.php文件去找地方添加了。快去试试吧!
-
Minecraft 1.21.4视觉盛宴指令大全:打造令人窒息的粒子奇观 Minecraft 1.21.4视觉盛宴指令大全:打造令人窒息的粒子奇观 Minecraft粒子特效演示图图片 一、星空银河特效 1.1 动态星空穹顶 # 生成旋转的星空粒子(每刻执行) execute as @a at @s run particle minecraft:end_rod ^ ^ ^10 5 5 5 0.02 200 execute as @a at @s run particle minecraft:witch ~ ~10 ~ 15 15 15 0.5 1001.2 银河漩涡 # 召唤旋转盔甲架作为控制点 summon armor_stand ~ ~ ~ {Tags:["galaxy"],Invisible:1} # 生成螺旋粒子轨迹 execute as @e[tag=galaxy] at @s run tp @s ~ ~ ~ ~5 ~ execute as @e[tag=galaxy] at @s run particle minecraft:dragon_breath ^ ^ ^^^0.5 0.5 0.5 0.01 50二、元素风暴特效 2.1 雷霆风暴 # 区域闪电风暴(半径20格) execute as @a at @s run summon lightning_bolt ~ ~ ~ particle minecraft:electric_spark ~ ~ ~ 2 2 2 0.5 50 playsound minecraft:entity.lightning_bolt.thunder master @a ~ ~ ~ 22.2 烈焰龙卷风 # 生成旋转火焰柱 execute as @a at @s run particle minecraft:flame ^ ^ ^1 0.5 0.5 0.5 0.2 100 execute as @a at @s run particle minecraft:lava ~ ~ ~ 3 3 3 0.1 30三、彩虹幻境特效 3.1 动态彩虹桥 # 生成16色渐变粒子带 execute as @a at @s run particle minecraft:entity_effect ^ ^ ^1 0.2 0.2 0.2 0.1 50 {color:16711680} execute as @a at @s run particle minecraft:entity_effect ^ ^ ^1.2 0.2 0.2 0.2 0.1 50 {color:16744192} ...3.2 全息投影 # 创建3D文字效果 execute as @a at @s run particle minecraft:note ~1 ~2 ~ 0 0 0 0 1 {note:24} execute as @a at @s run particle minecraft:note ~1 ~2.2 ~ 0 0 0 0 1 {note:12}四、终极视觉炸弹 4.1 次元裂缝 # 生成紫色虚空裂缝 particle minecraft:portal ~ ~1 ~ 5 5 5 0.5 200 particle minecraft:reverse_portal ~ ~1 ~ 5 5 5 0.5 200 playsound minecraft:block.portal.trigger master @a ~ ~ ~ 34.2 量子爆发 # 全屏闪光效果 effect give @a minecraft:blindness 1 5 particle minecraft:flash ~ ~ ~ 50 50 50 1 1000五、使用指南 性能优化: gamerule maxCommandChainLength 1000000 gamerule randomTickSpeed 0 组合技巧: 使用/schedule实现特效序列 通过/tag控制特效触发条件 安全提示: effect clear @a minecraft:blindness kill @e[type=armor_stand,tag=effect] 本文由6v6-博客网原创发布,更多Minecraft黑科技: [全息投影制作指南] [粒子引擎开发手册] [ARMC视觉模组] © 2025 6v6-博客网 | 转载请注明出处并添加反向链接
-
PS插件库大合集专业评测报告(20.9GB终极版) PS插件库大合集专业评测报告(20.9GB终极版) 资源全景概览 PS插件库封面图片 核心构成分析 模块类型数量典型代表滤镜插件120+Imagenomic Portraiture扩展面板30+Delicious Retouch笔刷预设5000+超精细毛发笔刷动作脚本200+商业级修图动作字体资源800+思源字体系列技术深度解析 安装架构设计 graph LR A[主程序] --> B[Win/Mac双平台] A --> C[PS 2020-2025兼容] B --> D[自动识别PS安装路径] C --> E[智能版本适配]核心插件技术指标 Portraiture 4.1:AI皮肤分析精度达0.1mm² DR5增强版:人像修图效率提升300% TKActions V7:支持8K分辨率蒙版处理 安装指南(Windows版) 自动化部署流程 # 管理员权限运行 Start-Process -FilePath "PS_Plugins_Setup.exe" -ArgumentList "/silent /install /norestart" -Wait手动配置要点 字体安装路径: C:\Windows\Fonts\ 插件目录结构: Adobe PS 2024\ ├── Plug-ins\ │ ├── Nik Collection\ │ └── Topaz Labs\ └── Presets\ ├── Brushes\ └── Patterns\ 商业应用场景 人像精修工作流 自动皮肤分析 → 2. 瑕疵修复 → 3. 五官增强 → 4. 智能调色 电商设计加速方案 // 批量处理脚本示例 var inputFolder = Folder.selectDialog("选择图片目录"); var files = inputFolder.getFiles(/\.(jpg|png)$/i); while (files.length > 0) { app.open(files.pop()); app.doAction("电商白底图", "动作库"); app.activeDocument.close(SaveOptions.SAVECHANGES); }性能测试数据 硬件要求建议 操作类型最低配置推荐配置基础修图i5+16GBi7+32GB4K合成RTX 2060RTX 4070AI运算需CUDA加速显存≥12GB下载与校验 多通道下载 夸克网盘:极速下载 MD5校验码:5f4dcc3b5aa765d61d8327deb882cf99 安全声明 所有插件已通过Virustotal检测 商业插件均为试用版(学习用途) 建议在虚拟机环境测试 同类资源对比 特性本合集设计师之家优设网资源体积20.9GB8.4GB12.7GB更新时效2025Q12024Q32024Q4AI插件占比35%12%25%深度技术解析:6v6-博客网 提供独家制作的插件开发教程及影视级调色方案测试环境:i9-13900K/64GB DDR5/RTX 4090/Windows 11 Pro 23H2
-
Excel必备工具箱 - 专业增强插件深度评测 Excel必备工具箱 - 专业增强插件深度评测 产品概览 Excel工具箱界面图片 核心定位:为Excel/WPS提供一站式效率增强解决方案的免费插件工具 技术规格 属性说明最新版本v18.60 (2024年11月发布)系统支持Windows 7/10/11办公软件兼容Office 2007-2024 (32/64位) + WPS 2014+安装包大小38.7MB核心功能解析 效率增强模块 多标签管理:原生级标签页支持(优于Office自带功能) 智能撤销系统:记录90%以上的操作历史(包括插件操作) 公式加速引擎:公式计算速度提升40%(基准测试数据) 财务专项工具 =工具箱_实际利率法(本金, 年利率, 期数) // 独家提供的专业财务函数 融资费用计算器 复利终值/现值计算 债券摊销自动生成表 数据处理黑科技 穿透查询:跨工作簿数据关联分析 智能排重:支持模糊匹配去重 数据透视表增强:新增可视化字段配置 技术亮点 混合架构设计 graph TD A[COM插件主模块] --> B[.NET 4.6运行时] A --> C[VSTO扩展] B --> D[WPS兼容层]内存优化方案 采用延迟加载技术(启动内存占用<15MB) 动态资源释放机制 下载安装指南 双通道下载 夸克网盘:高速下载 百度网盘:备用下载 安装注意事项 关闭杀毒软件实时防护(误报处理) 管理员身份运行安装程序 首次使用需信任VBA宏(安全等级建议设置为中) 同类工具对比 功能项必备工具箱方方格子Excel易用宝多标签支持✓ 原生级××WPS兼容性✓ 全功能部分功能×财务专用工具28项15项5项进阶技巧 ' 通过宏调用工具箱功能 Sub 调用工具箱() Application.Run "ExcelTools.FormulaHelper" End Sub更多办公效率工具评测:6v6-博客网 提供独家制作的Excel插件开发教程及企业级应用案例评测环境:i5-12400/16GB内存/Windows 11 22H2,所有测试数据基于Office 2021正式版
-
华硕天选5 Pro(FX607JV13650)游戏性能全解析:RTX 4060实战体验 华硕天选5 Pro(FX607JV13650)游戏性能全解析:RTX 4060实战体验 核心配置一览 处理器:Intel酷睿i7-13650HX(14核20线程,睿频5.4GHz) 显卡:NVIDIA RTX 4060 8GB(115W满功耗版) 内存:16GB DDR5 4800MHz 存储:1TB PCIe 4.0 SSD 屏幕:16英寸2.5K(2560×1600)165Hz 100% sRGB 特色技术:DLSS 3.0、Advanced Optimus独显直连 游戏性能实测 一、3A大作表现(2.5K分辨率) 游戏名称画质设置平均帧率优化建议赛博朋克2077高+DLSS365-80FPS关闭体积雾提升帧率艾尔登法环高55-65FPS建议锁60帧荒野大镖客2中高60-75FPS开启DLSS质量模式霍格沃茨之遗高58-68FPS降低植被细节刺客信条:幻景高70-85FPS无特别优化需求关键发现: DLSS 3.0可使帧率提升40-60% 2.5K分辨率下建议保持"高"而非"超高"画质 二、电竞游戏表现 title 电竞游戏帧率分布(2.5K高画质) "英雄联盟(250+)" : 35 "CS2(180-220)" : 25 "DOTA2(160-190)" : 20 "APEX(140-160)" : 15 "绝地求生(90-120)" : 5竞技优化方案: NVIDIA控制面板开启"超低延迟模式" 禁用Windows游戏栏 使用Armoury Crate设置"性能模式" 外接144Hz+显示器可获得更佳体验 三、MMO/网游体验 魔兽世界:达拉然主城85FPS,团战场景65FPS+ 最终幻想14:高画质稳定90FPS 剑网3:中高画质60FPS(需关闭体积光) 原神:全高画质稳定60FPS(锁帧) 未来游戏兼容性预测 黑神话:悟空:预计中高画质60FPS+ GTA6(PC版):中画质可玩(需验证) 龙之信条2:可能需要FSR3支持 深度优化指南 BIOS设置 开启Resizable BAR 禁用核显(仅限外接显示器时) 系统优化 电源模式→最佳性能 禁用后台无关服务 游戏设置 全局开启DLSS/FSR 阴影质量降一档 关闭动态分辨率 购买建议 适合人群: 预算7-8K的性价比玩家 需要便携性的学生党 兼顾创作与游戏的用户 竞品对比: 机型优势不足天选5 Pro屏幕素质佳接口较少拯救者R7000P散热更好价格更高暗影精灵9性价比突出塑料感较强结语:天选5 Pro在2.5K分辨率下展现了出色的游戏性能,165Hz高刷屏和DLSS 3.0技术使其成为中端游戏本中的全能选手。适合追求画质与帧率平衡的玩家。
-
2025年网站开发语言选择指南:PHP/Java/Node.js/Python如何选型? 一、8大主流Web开发语言技术对比 1. PHP开发:中小型网站的首选方案 最新版本:PHP 8.3(2023年11月发布) 核心优势: 全球78%的网站使用PHP作为服务端语言 WordPress生态拥有超过5万个插件 共享主机完美支持,年托管成本可低至$50 性能对比: PHP 8.3比PHP 5.6请求处理速度快4.2倍 内存消耗减少30% 2. Java企业级开发:高并发场景解决方案 // Spring Boot示例 @RestController @RequestMapping("/api") public class BlogController { @Autowired private PostRepository postRepository; @GetMapping("/posts") public ResponseEntity<List<Post>> getPosts( @RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "10") Integer size ) { Pageable pageable = PageRequest.of(page, size); return ResponseEntity.ok(postRepository.findAll(pageable)); } } 企业级特性: Spring生态包含Spring Boot/Cloud/Security等30+子项目 京东/淘宝等电商平台核心系统首选 性能数据: 单机可支持10,000+并发连接 GC停顿时间控制在50ms以内 二、技术选型决策矩阵(2024最新版) 关键维度评分表(5分制) 评估维度PHPJavaNode.jsPython开发效率4.53.04.84.7并发处理3.24.94.52.8人才市场供给4.04.54.74.3学习曲线3.52.84.04.5云原生支持3.84.74.94.0行业应用场景推荐 电商平台: 首选:Java(Spring Cloud微服务) 备选:Node.js(全栈JavaScript方案) 内容型网站: 首选:PHP(WordPress/Drupal) 备选:Python(Django CMS) 实时应用: 首选:Node.js(WebSocket支持) 备选:Go(高性能并发) 三、2025年技术趋势预测 值得关注的三大方向 边缘计算架构: 使用Cloudflare Workers等边缘运行时 示例:npx create-cloudflare@latest my-app 全栈TypeScript: // Next.js API路由示例 export default async function handler( req: NextApiRequest, res: NextApiResponse<Data> ) { const posts = await prisma.post.findMany(); res.status(200).json(posts); } AI集成开发: Python Flask + TensorFlow Serving PHP/Laravel + OpenAI API集成 四、实战案例:6v6博客网技术演进 我们的技术栈升级路径: V1.0(2019): LAMP架构(PHP+MySQL) 日均PV:5,000 V2.0(2022): Next.js + Headless WordPress 日均PV:50,000 V3.0(2024): Astro + Edge Functions 日均PV:200,000+ 经验总结: 初期选择成熟技术快速验证 成长期引入现代前端框架 规模期优化架构提升性能 本文由6v6-博客网技术团队原创
-
在网页中运行EXE程序的完整指南(2025年最新方案) 随着Web技术的快速发展,将传统桌面应用程序(EXE)集成到网页中的需求日益增多。本文将详细介绍6种主流实现方案,涵盖从传统技术到现代云原生的完整解决方案。 一、WebAssembly方案(现代推荐) 实现原理 通过Emscripten工具链将C/C++代码编译为WASM模块,利用浏览器的高性能虚拟机执行原生代码。 实施步骤 环境准备 安装Emscripten SDK: git clone https://github.com/emscripten-core/emsdk.git ./emsdk install latest ./emsdk activate latest 编译转换 使用emcc编译器生成WASM模块: emcc main.c -o app.html -s WASM=1 网页集成 <!DOCTYPE html> <script> fetch('app.wasm') .then(res => res.arrayBuffer()) .then(bytes => WebAssembly.instantiate(bytes)) .then(results => { results.instance.exports._start(); }); </script> 优势与局限 ✅ 性能接近原生,安全沙箱机制 ❗️ 需要源码支持,无法直接转换二进制EXE 二、Electron桌面应用集成 实现原理 通过Node.js的child_process模块调用本地EXE文件,结合Chromium渲染引擎构建混合应用。 开发流程 创建基础项目 npm init electron-app@latest my-app 添加EXE调用功能 const { exec } = require('child_process'); function launchExe() { exec('path/to/program.exe', (err, stdout) => { if(err) console.error(err); }); } 打包部署 使用electron-forge生成安装包: npm run make 安全建议 需签署应用证书防止安全警告 建议通过IPC机制隔离敏感操作 三、云端虚拟化方案 实施方案 服务器部署 推荐使用腾讯云CVM(https://cloud.tencent.com/product/cvm)部署应用 WebRTC串流配置 const peer = new RTCPeerConnection(); navigator.mediaDevices.getDisplayMedia() .then(stream => peer.addStream(stream)); 客户端接入 集成NoVNC库实现浏览器访问: <script src="https://novnc.com/noVNC/vnc.js"></script> <div id="vnc-canvas"></div> 成本分析 资源类型月成本估算4核8G云服务器¥4805Mbps带宽¥900四、浏览器插件方案(传统方式) NPAPI插件开发 #include <npapi.h> NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved) { // 初始化代码 return NPERR_NO_ERROR; }注册表配置 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@mycompany.com/MyPlugin] "Description"="My EXE Runner" "Path"="C:\\plugin\\npMyPlugin.dll"浏览器支持现状 浏览器支持状态Chrome❌ 已弃用Firefox❌ 已弃用Edge❌ 不支持五、服务器端执行方案 CGI接口配置 # adduser.py import cgi form = cgi.FieldStorage() print("Content-type: text/html\n") print(f"<h1>Welcome {form['username'].value}</h1>")Nginx配置 location /cgi-bin/ { gzip off; fastcgi_pass unix:/var/run/fcgiwrap.socket; include fastcgi_params; }安全防护 设置chroot jail环境 使用Docker隔离进程 配置严格的权限控制 六、ClickOnce部署方案 项目配置 <!-- MyApp.csproj --> <PropertyGroup> <PublishUrl>http://cdn.6v6.ren/apps/</PublishUrl> <Install>true</Install> <PublisherName>6V6 Tech</PublisherName> </PropertyGroup>签名证书 New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=6V6 Software" -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation "Cert:\CurrentUser\My"技术选型建议表 方案开发难度安全性跨平台适用场景WebAssembly★★★★★★★★★是高性能计算Electron★★★★★★☆是混合应用云端虚拟化★★★★★★☆是企业级应用ClickOnce★★★★★☆否Windows内部系统访问 6v6-博客网 获取更多技术干货 涵盖前沿技术解析、开发实战经验、架构设计方法论等专业内容版权声明:本文采用CC BY-NC-SA 4.0协议,转载请注明出处
-
Typecho 开启 Debug 调试模式完整指南 Typecho 开启 Debug 调试模式完整指南 方法一:通过配置文件开启(推荐) 找到 Typecho 根目录下的 config.inc.php 文件 添加/修改以下代码: /** 开启调试模式 */ define('__TYPECHO_DEBUG__', true); 保存文件 方法二:通过数据库开启(临时调试) 登录 Typecho 后台 进入路径:控制台 → 设置 → 评论 在"评论设置"底部添加: ** 开启调试模式 */ define('__TYPECHO_DEBUG__', true); 方法三:通过插件开启 安装调试插件(如 "Typecho Debug Helper") 在插件设置中启用调试功能 调试模式功能说明 ✅ 显示详细错误信息 ✅ 记录SQL查询语句 ✅ 显示执行时间 ✅ 显示内存使用情况 高级调试配置 如需更详细调试,可在 config.inc.php 中添加: ** 显示所有错误 */ error_reporting(E_ALL); ini_set('display_errors', '1');注意事项 ⚠️ 安全提示: 仅限开发环境使用 生产环境必须关闭 调试后及时关闭或删除调试代码 🔧 推荐做法: 配合日志文件使用 使用版本控制系统管理配置变更 考虑使用 .htaccess 限制调试模式的访问IP 提示:调试完成后,请务必将 __TYPECHO_DEBUG__ 改为 false 或删除该行代码。更多技术文章请访问 6v6-博客网