From 261ea75aa044941cb254f55cb029da65dfd84e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=81=92?= <2323333339@qq.com> Date: Thu, 4 Mar 2021 11:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive.php | 5 +- .../{joe.archive.css => joe.archive.min.css} | 0 ...{joe.archive.scss => joe.archive.min.scss} | 0 .../{joe.global.css => joe.global.min.css} | 0 .../{joe.global.scss => joe.global.min.scss} | 0 .../css/{joe.index.css => joe.index.min.css} | 0 .../{joe.index.scss => joe.index.min.scss} | 0 assets/css/{joe.live.css => joe.live.min.css} | 0 .../css/{joe.live.scss => joe.live.min.scss} | 0 assets/css/{joe.mode.css => joe.mode.min.css} | 0 .../css/{joe.mode.scss => joe.mode.min.scss} | 0 ...oe.normalize.css => joe.normalize.min.css} | 0 ....normalize.scss => joe.normalize.min.scss} | 0 assets/css/{joe.post.css => joe.post.min.css} | 0 .../css/{joe.post.scss => joe.post.min.scss} | 0 ....responsive.css => joe.responsive.min.css} | 0 ...esponsive.scss => joe.responsive.min.scss} | 0 .../css/{joe.video.css => joe.video.min.css} | 0 .../{joe.video.scss => joe.video.min.scss} | 0 ...oe.wallpaper.css => joe.wallpaper.min.css} | 0 ....wallpaper.scss => joe.wallpaper.min.scss} | 0 assets/js/joe.archive.min.js | 1 + .../js/{joe.extend.js => joe.extend.min.js} | 0 assets/js/joe.global.min.js | 1 + assets/js/joe.index.min.js | 1 + assets/js/joe.live.min.js | 1 + assets/js/joe.post&page.min.js | 1 + assets/js/joe.video.min.js | 1 + assets/js/joe.wallpaper.min.js | 1 + core/factory.php | 6 +- core/function.php | 2 +- friends.php | 2 +- functions.php | 4 +- index.php | 4 +- library/debug.html | 16 +- live.php | 5 +- page.php | 2 +- post.php | 7 +- public/copyright.php | 1 - public/include.php | 12 +- .../joe.config.min.css} | 0 .../joe.config.min.scss} | 0 .../{joe.config.js => js/joe.config.min.js} | 0 .../joe.editor.min.css} | 0 .../joe.editor.min.scss} | 0 typecho/editor/joe.editor.js | 232 ----------------- typecho/editor/js/joe.editor.js | 241 ++++++++++++++++++ typecho/editor/js/joe.editor.min.js | 1 + .../{joe.extend.js => js/joe.extend.min.js} | 0 video.php | 5 +- wallpaper.php | 5 +- 51 files changed, 290 insertions(+), 267 deletions(-) rename assets/css/{joe.archive.css => joe.archive.min.css} (100%) rename assets/css/{joe.archive.scss => joe.archive.min.scss} (100%) rename assets/css/{joe.global.css => joe.global.min.css} (100%) rename assets/css/{joe.global.scss => joe.global.min.scss} (100%) rename assets/css/{joe.index.css => joe.index.min.css} (100%) rename assets/css/{joe.index.scss => joe.index.min.scss} (100%) rename assets/css/{joe.live.css => joe.live.min.css} (100%) rename assets/css/{joe.live.scss => joe.live.min.scss} (100%) rename assets/css/{joe.mode.css => joe.mode.min.css} (100%) rename assets/css/{joe.mode.scss => joe.mode.min.scss} (100%) rename assets/css/{joe.normalize.css => joe.normalize.min.css} (100%) rename assets/css/{joe.normalize.scss => joe.normalize.min.scss} (100%) rename assets/css/{joe.post.css => joe.post.min.css} (100%) rename assets/css/{joe.post.scss => joe.post.min.scss} (100%) rename assets/css/{joe.responsive.css => joe.responsive.min.css} (100%) rename assets/css/{joe.responsive.scss => joe.responsive.min.scss} (100%) rename assets/css/{joe.video.css => joe.video.min.css} (100%) rename assets/css/{joe.video.scss => joe.video.min.scss} (100%) rename assets/css/{joe.wallpaper.css => joe.wallpaper.min.css} (100%) rename assets/css/{joe.wallpaper.scss => joe.wallpaper.min.scss} (100%) create mode 100644 assets/js/joe.archive.min.js rename assets/js/{joe.extend.js => joe.extend.min.js} (100%) create mode 100644 assets/js/joe.global.min.js create mode 100644 assets/js/joe.index.min.js create mode 100644 assets/js/joe.live.min.js create mode 100644 assets/js/joe.post&page.min.js create mode 100644 assets/js/joe.video.min.js create mode 100644 assets/js/joe.wallpaper.min.js rename typecho/config/{joe.config.css => css/joe.config.min.css} (100%) rename typecho/config/{joe.config.scss => css/joe.config.min.scss} (100%) rename typecho/config/{joe.config.js => js/joe.config.min.js} (100%) rename typecho/editor/{joe.editor.css => css/joe.editor.min.css} (100%) rename typecho/editor/{joe.editor.scss => css/joe.editor.min.scss} (100%) delete mode 100644 typecho/editor/joe.editor.js create mode 100644 typecho/editor/js/joe.editor.js create mode 100644 typecho/editor/js/joe.editor.min.js rename typecho/editor/{joe.extend.js => js/joe.extend.min.js} (100%) diff --git a/archive.php b/archive.php index 526b081..f7737c6 100644 --- a/archive.php +++ b/archive.php @@ -3,10 +3,9 @@
need('public/include.php'); ?> - - + - + diff --git a/assets/css/joe.archive.css b/assets/css/joe.archive.min.css similarity index 100% rename from assets/css/joe.archive.css rename to assets/css/joe.archive.min.css diff --git a/assets/css/joe.archive.scss b/assets/css/joe.archive.min.scss similarity index 100% rename from assets/css/joe.archive.scss rename to assets/css/joe.archive.min.scss diff --git a/assets/css/joe.global.css b/assets/css/joe.global.min.css similarity index 100% rename from assets/css/joe.global.css rename to assets/css/joe.global.min.css diff --git a/assets/css/joe.global.scss b/assets/css/joe.global.min.scss similarity index 100% rename from assets/css/joe.global.scss rename to assets/css/joe.global.min.scss diff --git a/assets/css/joe.index.css b/assets/css/joe.index.min.css similarity index 100% rename from assets/css/joe.index.css rename to assets/css/joe.index.min.css diff --git a/assets/css/joe.index.scss b/assets/css/joe.index.min.scss similarity index 100% rename from assets/css/joe.index.scss rename to assets/css/joe.index.min.scss diff --git a/assets/css/joe.live.css b/assets/css/joe.live.min.css similarity index 100% rename from assets/css/joe.live.css rename to assets/css/joe.live.min.css diff --git a/assets/css/joe.live.scss b/assets/css/joe.live.min.scss similarity index 100% rename from assets/css/joe.live.scss rename to assets/css/joe.live.min.scss diff --git a/assets/css/joe.mode.css b/assets/css/joe.mode.min.css similarity index 100% rename from assets/css/joe.mode.css rename to assets/css/joe.mode.min.css diff --git a/assets/css/joe.mode.scss b/assets/css/joe.mode.min.scss similarity index 100% rename from assets/css/joe.mode.scss rename to assets/css/joe.mode.min.scss diff --git a/assets/css/joe.normalize.css b/assets/css/joe.normalize.min.css similarity index 100% rename from assets/css/joe.normalize.css rename to assets/css/joe.normalize.min.css diff --git a/assets/css/joe.normalize.scss b/assets/css/joe.normalize.min.scss similarity index 100% rename from assets/css/joe.normalize.scss rename to assets/css/joe.normalize.min.scss diff --git a/assets/css/joe.post.css b/assets/css/joe.post.min.css similarity index 100% rename from assets/css/joe.post.css rename to assets/css/joe.post.min.css diff --git a/assets/css/joe.post.scss b/assets/css/joe.post.min.scss similarity index 100% rename from assets/css/joe.post.scss rename to assets/css/joe.post.min.scss diff --git a/assets/css/joe.responsive.css b/assets/css/joe.responsive.min.css similarity index 100% rename from assets/css/joe.responsive.css rename to assets/css/joe.responsive.min.css diff --git a/assets/css/joe.responsive.scss b/assets/css/joe.responsive.min.scss similarity index 100% rename from assets/css/joe.responsive.scss rename to assets/css/joe.responsive.min.scss diff --git a/assets/css/joe.video.css b/assets/css/joe.video.min.css similarity index 100% rename from assets/css/joe.video.css rename to assets/css/joe.video.min.css diff --git a/assets/css/joe.video.scss b/assets/css/joe.video.min.scss similarity index 100% rename from assets/css/joe.video.scss rename to assets/css/joe.video.min.scss diff --git a/assets/css/joe.wallpaper.css b/assets/css/joe.wallpaper.min.css similarity index 100% rename from assets/css/joe.wallpaper.css rename to assets/css/joe.wallpaper.min.css diff --git a/assets/css/joe.wallpaper.scss b/assets/css/joe.wallpaper.min.scss similarity index 100% rename from assets/css/joe.wallpaper.scss rename to assets/css/joe.wallpaper.min.scss diff --git a/assets/js/joe.archive.min.js b/assets/js/joe.archive.min.js new file mode 100644 index 0000000..f8fcb77 --- /dev/null +++ b/assets/js/joe.archive.min.js @@ -0,0 +1 @@ +document.addEventListener("DOMContentLoaded",function(){var t=$(".joe_archive__list").attr("data-wow");"off"!==t&&t&&new WOW({boxClass:"wow",animateClass:"animated ".concat(t),offset:0,mobile:!0,live:!0,scrollContainer:null}).init()}); \ No newline at end of file diff --git a/assets/js/joe.extend.js b/assets/js/joe.extend.min.js similarity index 100% rename from assets/js/joe.extend.js rename to assets/js/joe.extend.min.js diff --git a/assets/js/joe.global.min.js b/assets/js/joe.global.min.js new file mode 100644 index 0000000..67da51c --- /dev/null +++ b/assets/js/joe.global.min.js @@ -0,0 +1 @@ +document.addEventListener("DOMContentLoaded",()=>{const changeURLArg=(url,arg,arg_val)=>{let pattern=arg+"=([^&]*)",replaceText=arg+"="+arg_val;if(url.match(pattern)){let tmp="/("+arg+"=)([^&]*)/gi";return url.replace(eval(tmp),replaceText)}return url.match("[?]")?url+"&"+replaceText:url+"?"+replaceText};localStorage.getItem("data-night")?($(".joe_action_item.mode .icon-1").addClass("active"),$(".joe_action_item.mode .icon-2").removeClass("active")):($("html").removeAttr("data-night"),$(".joe_action_item.mode .icon-1").removeClass("active"),$(".joe_action_item.mode .icon-2").addClass("active")),$(".joe_action_item.mode").on("click",()=>{localStorage.getItem("data-night")?($(".joe_action_item.mode .icon-1").removeClass("active"),$(".joe_action_item.mode .icon-2").addClass("active"),$("html").removeAttr("data-night"),localStorage.removeItem("data-night")):($(".joe_action_item.mode .icon-1").addClass("active"),$(".joe_action_item.mode .icon-2").removeClass("active"),$("html").attr("data-night","night"),localStorage.setItem("data-night","night"))}),Joe.IS_MOBILE||"off"===Joe.DYNAMIC_BACKGROUND||!Joe.DYNAMIC_BACKGROUND||Joe.WALLPAPER_BACKGROUND_PC||$.getScript(`https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/backdrop/${Joe.DYNAMIC_BACKGROUND}`),$(".joe_header__above-search .input").on("click",t=>{t.stopPropagation(),$(".joe_header__above-search .result").addClass("active")}),$(document).on("click",function(){$(".joe_header__above-search .result").removeClass("active")}),$(document).on("scroll",function(){$(".joe_header__above-search .result").removeClass("active")}),$(".joe_dropdown").each(function(t,e){const o=$(this).find(".joe_dropdown__menu"),a=$(e).attr("trigger")||"click",n=$(e).attr("placement")||$(this).height()||0;o.css("top",n),"hover"===a?$(this).hover(()=>$(this).addClass("active"),()=>$(this).removeClass("active")):($(this).on("click",function(t){$(this).toggleClass("active"),$(document).one("click",()=>$(this).removeClass("active")),t.stopPropagation()}),o.on("click",t=>t.stopPropagation()))});{const t=()=>(document.documentElement.scrollTop||document.body.scrollTop)>300?$(".joe_action_item.scroll").addClass("active"):$(".joe_action_item.scroll").removeClass("active");t(),$(window).on("scroll",()=>t()),$(".joe_action_item.scroll").on("click",()=>window.scrollTo({top:0,behavior:"smooth"}))}if(0!==$(".joe_aside__item.timelife").length){let t=[{title:"今日已经过去",endTitle:"小时",num:0,percent:"0%"},{title:"这周已经过去",endTitle:"天",num:0,percent:"0%"},{title:"本月已经过去",endTitle:"天",num:0,percent:"0%"},{title:"今年已经过去",endTitle:"个月",num:0,percent:"0%"}];{let e=+new Date,o=new Date((new Date).toLocaleDateString()).getTime(),a=(e-o)/1e3/60/60,n=a/24*100;t[0].num=parseInt(a),t[0].percent=parseInt(n)+"%"}{let e={0:7,1:1,2:2,3:3,4:4,5:5,6:6},o=e[(new Date).getDay()],a=o/7*100;t[1].num=parseInt(o),t[1].percent=parseInt(a)+"%"}{let e=(new Date).getFullYear(),o=(new Date).getDate(),a=(new Date).getMonth()+1,n=new Date(e,a,0).getDate(),i=o/n*100;t[2].num=o,t[2].percent=parseInt(i)+"%"}{let e=(new Date).getMonth()+1,o=e/12*100;t[3].num=e,t[3].percent=parseInt(o)+"%"}let e="";t.forEach((t,o)=>{e+=`\n\t\t\t\t\t\t${a.introduction}
\n \n数据加载失败!请检查!
');if(t.data.list.length){let e="";t.data.list.forEach(t=>{e+=`\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t${t.vod_year}\n\t\t\t\t\t\t\t\t\t${t.vod_name}
\n\t\t\t\t\t\t\t\t`}),$(".joe_video__list-item").html(e)}else $(".joe_video__list-item").css("display","block").html('暂无数据!
');a=t.data.pagecount,e()},complete:()=>o=!1})}function e(){if(0==a)return $(".joe_video__pagination").hide();$(".joe_video__pagination").show();let t="";1!=i.pg&&(t+=`\n \t\t${t.data}
`);if(!t.data.list.length)return $(".joe_video__detail-info").html('数据抓取异常!请检查!
');const e=t.data.list[0];$(".joe_video__detail-info").html(`\n\t\t\t\t\t