jekyll-theme-h2o-ac 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +12 -17
  3. data/_data/collections.yml +2 -2
  4. data/_includes/{footer.html → layouts/footer.html} +9 -4
  5. data/_includes/{post-head.html → layouts/head.html} +36 -29
  6. data/_includes/{header.html → layouts/header.html} +24 -0
  7. data/_includes/layouts/metainfo.html +40 -0
  8. data/_includes/{paginate-article.html → layouts/paginate-article.html} +8 -1
  9. data/_includes/{paginate.html → layouts/paginate.html} +5 -5
  10. data/_includes/{sidebar.html → layouts/sidebar.html} +10 -9
  11. data/_includes/layouts/submenu.html +30 -0
  12. data/_includes/plugins/analytics/analytics.html +3 -0
  13. data/_includes/{analytics.html → plugins/analytics/google.html} +1 -2
  14. data/_includes/plugins/comments/comments_block.html +67 -0
  15. data/_includes/plugins/comments/comments_js.html +24 -0
  16. data/_includes/plugins/comments/disqus.html +19 -0
  17. data/_includes/plugins/comments/waline_css.html +3 -0
  18. data/_includes/plugins/comments/waline_js.html +14 -0
  19. data/_includes/plugins/i18n.html +32 -0
  20. data/_includes/plugins/markdown/fancybox_css.html +1 -0
  21. data/_includes/plugins/markdown/fancybox_js.html +24 -0
  22. data/_includes/plugins/markdown/hotkeys.html +31 -0
  23. data/_includes/plugins/markdown/markdown.html +7 -0
  24. data/_includes/plugins/markdown/mermaid_block.html +10 -0
  25. data/_includes/plugins/markdown/mermaid_js.html +12 -0
  26. data/_includes/plugins/markdown/prism_css.html +16 -0
  27. data/_includes/plugins/markdown/prism_js.html +3 -0
  28. data/_includes/{calendar.html → plugins/others/calendar_block.html} +1 -1
  29. data/_includes/plugins/others/calendar_css.html +3 -0
  30. data/_includes/plugins/others/calendar_js.html +8 -0
  31. data/_includes/plugins/others/social_block.html +5 -0
  32. data/_includes/plugins/others/social_css.html +1 -0
  33. data/_includes/plugins/others/social_js.html +15 -0
  34. data/_includes/plugins/search/docsearch_css.html +3 -0
  35. data/_includes/plugins/search/docsearch_js.html +19 -0
  36. data/_layouts/404.html +17 -0
  37. data/_layouts/archives.html +70 -65
  38. data/_layouts/blog.html +4 -10
  39. data/_layouts/categories.html +3 -1
  40. data/_layouts/default.html +64 -54
  41. data/_layouts/page.html +17 -87
  42. data/_layouts/post.html +145 -434
  43. data/_layouts/stats.html +32 -2
  44. data/_layouts/tags.html +2 -2
  45. data/assets/css/app.min.css +1 -1
  46. data/assets/css/app.min.css.map +1 -1
  47. data/assets/js/app.min.js +1 -1
  48. data/assets/js/app.min.js.map +1 -1
  49. metadata +42 -22
  50. data/_includes/comments.html +0 -53
  51. data/_includes/head.html +0 -51
  52. data/_includes/mermaid.html +0 -12
  53. data/_includes/submenu.html +0 -20
  54. data/_includes/waline.html +0 -3
  55. /data/_includes/{pageNav.html → layouts/pageNav.html} +0 -0
  56. /data/_includes/{toc.html → layouts/toc.html} +0 -0
  57. /data/_includes/{busuanzi.html → plugins/analytics/busuanzi.html} +0 -0
  58. /data/_includes/{umami.html → plugins/analytics/umami.html} +0 -0
  59. /data/_includes/{mathjax.html → plugins/markdown/mathjax.html} +0 -0
  60. /data/_includes/{pwa.html → plugins/others/pwa.html} +0 -0
  61. /data/_includes/{webpusher.html → plugins/others/webpusher.html} +0 -0
data/assets/js/app.min.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t={774:()=>{$(document).ready((function(){document.body.addEventListener("touchstart",(function(){}),{passive:!0});var t=$(".g-nav"),e=$("meta[property='og:baseurl']").attr("content"),a=$("meta[property='og:lang']").attr("content"),o=$(".g-logo"),n=$(".g-banner").attr("data-theme");if(o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),u("cookieconsent_status")?$(".cookie-tip").removeClass("active"):$(".cookie-tip").addClass("active"),$("#accept-tos").on("click",(function(){p("cookieconsent_status","allow",365),$(".cookie-tip").removeClass("active")})),$("table").wrap("<div class='table-area'></div>"),$("#menu-toggle").on("click",(function(e){t.slideToggle(200),$(document).on("click",(function(){t.slideUp(200)})),e.stopPropagation()})),t.on("click",(function(t){t.stopPropagation()})),$(".g-nav li.dropdown").on("click",(function(){$(".g-nav li.dropdown").not($(this)).children("ul.dropdown-menu").removeClass("show"),$(".g-nav li.dropdown").not($(this)).children("a.dropdown-toggle").removeClass("show"),$(this).children("a.dropdown-toggle").toggleClass("show"),$(this).children("ul.dropdown-menu").toggleClass("show")})),$(document).on("click",(function(){$(".g-nav li.dropdown").children("a.dropdown-toggle").removeClass("show"),$(".g-nav li.dropdown").children("ul.dropdown-menu").removeClass("show")})),$(window).width()>695){var s=(c=$(".g-header")).outerHeight(),i=t.find("a"),l=$(document).scrollTop();o=$(".g-logo"),n=$(".g-banner").attr("data-theme"),$(document).scroll((function(){var a=$(this).scrollTop(),r="nav-"+n;a>s?(a>3*s&&c.addClass("headerUp"),c.css({"background-color":"rgba(255, 255, 255, .98)","box-shadow":"0 1px 12px rgba(0, 0, 0, .08)"}),o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),i.addClass("color-f-gray"),t.addClass(r)):(c.removeClass("headerUp"),$("#bttb").removeClass("active"),c.css({"background-color":"transparent","box-shadow":"none"}),o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),i.removeClass("color-f-gray"),t.removeClass(r)),l>a?(c.addClass("headerDown"),c.hasClass("headerUp")&&$("#bttb").addClass("active")):(c.removeClass("headerDown"),$("#bttb").removeClass("active")),l=a}))}else{var c;s=(c=$(".g-header")).outerHeight(),l=$(document).scrollTop(),$(document).scroll((function(){var t=$(this).scrollTop();t<100&&$("#bttb").removeClass("active"),l>t&&l>5?$("#bttb").addClass("active"):$("#bttb").removeClass("active"),l=t}))}function r(){$(".table-of-contents").toggleClass("active"),$("#tools .tool.toc .b1").toggleClass("active"),$("#tools .tool.toc .b2").toggleClass("active"),$(".submenu").removeClass("active"),$("#tools .tool.collection .b1").addClass("active"),$("#tools .tool.collection .b2").removeClass("active")}function d(){$(".submenu").toggleClass("active"),$("#tools .tool.collection .b1").toggleClass("active"),$("#tools .tool.collection .b2").toggleClass("active"),$(".table-of-contents").removeClass("active"),$("#tools .tool.toc .b1").addClass("active"),$("#tools .tool.toc .b2").removeClass("active")}function h(){var t,e,a,o=$("#search_input"),n=$(".search_result");o.focus((function(){$(".icon-search").css("color","#3199DB"),n.show()})),o.keyup((t=this.autoComplete,e=e||120,function(){var o=this,n=arguments;clearTimeout(a),a=setTimeout((function(){t.apply(o,n)}),e)})),$(document).click((function(t){"search_input"!==t.target.id&&"search_result"!==t.target.className&&"search_item"!==t.target.className&&($(".icon-search").css("color","#CAD3DC"),n.hide())}))}function g(){var t=$("article :header"),e=$(".table-of-contents").find("a"),a=$(window).scrollTop();a>0&&$(".g-header").addClass("headerUp");for(var o=0;o<t.length;o++)$(t[o]).offset().top-100<a&&($(e).removeClass("active"),$(e[o]).addClass("active"))}function u(t){for(var e=t+"=",a=document.cookie.split(";"),o=0;o<a.length;o++){var n=a[o].trim();if(0===n.indexOf(e))return n.substring(e.length,n.length)}return""}function p(t,a,o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3);var s="expires="+n.toGMTString();document.cookie=e?t+"="+a+"; path="+e+"; "+s:t+"="+a+"; path=/; "+s}function m(){var t=u("mode");""==t||"day"==t?(p("mode","night",1),$("body").addClass("night-mode")):(p("mode","day",1),$("body").removeClass("night-mode")),$("#disqus_thread").length>0&&DISQUS.reset({reload:!0}),$(".g-nav li.mode .icon").toggleClass("active"),$("#mode-toggle .icon").toggleClass("active"),$(".icon.up.day").toggleClass("active"),$(".icon.up.night").toggleClass("active"),"visible"==$(".table-of-contents").css("visibility")?($(".icon.exit.day").toggleClass("active"),$(".icon.exit.night").toggleClass("active")):($(".icon.list.day").toggleClass("active"),$(".icon.list.night").toggleClass("active"))}$("#tools .tool.toc").bind("click",(function(){r()})),$("#tools .tool.collection").bind("click",(function(){d()})),$(".table-of-contents").on("click",(function(){r()})),$(".submenu").on("click",(function(){d()})),$(".bttb").bind("click",(function(){$("html,body").animate({scrollTop:0},(function(){$("#bttb").removeClass("active")}))})),$(".read-next-item section").each((function(){var t=$(this).height(),e=$(".read-next-item").height();$(this).css("margin-top",(e-t)/2+"px"),$(this).fadeIn()})),$(".read-next-item img").each((function(){!function(t,e){t.width(),e.width();var a=t.height(),o=e.height();if(a<o){t.css({width:"auto",height:"100%"});var n=(t.width()-e.width())/2;t.css("margin-left","-"+n+"px")}else{var s=(o-a)/2;t.css("margin-top",s+"px")}t.fadeIn()}($(this),$(".read-next-item")),$(this).attr("data-src",$(this).attr("src")).removeAttr("src").addClass("lazyload")})),function(){for(var t=parseInt($("#total_pages").val()),e=parseInt($("#current_pages").val()),a=$("#base_url").val(),o="",n=e-3;n<e;n++)n>0&&1!==n?o+='<a href="'+a+"page"+n+'/index.html" class="page-link page-num">'+n+"</a>":1===n&&(o+='<a href="'+a+'" class="page-link page-num">'+n+"</a>");o+='<span class="page-link page-num active">'+e+"</span>";for(var s=e+1;s<=e+3;s++)s<=t&&(o+='<a href="'+a+"page"+s+'/index.html" class="page-link page-num">'+s+"</a>");$("#page-link-container").html(o)}(),h.prototype.autoComplete=function(){var t=this.value.toLowerCase();t.length?$(".icon-search").css("color","#3199DB"):$(".icon-search").css("color","#CAD3DC");var a=e+"/assets/search.json";$.getJSON(a).done((function(e){var a="";for(var o in e){var n=e[o],s=n.title,i=n.tags;n.url,""!==t&&(s+i).toLowerCase().indexOf(t)>=0&&(a+='<a class="search_item" href="'+n.url+'">'+n.title+"</a>")}$(".search_result").html(a)}))},new h,"true"===$("#nm-switch").val()&&function(){$("body");var t=(new Date).getHours();""==u("mode")&&(t<=6||t>=18)&&p("mode","night",1)}(),$(".post-content").on("mouseup",(function(t){var e,a=window.getSelection();a.toString().length>=30&&(e=a,e+="\n\n著作权归作者所有。\n商业转载请联系作者获得授权,非商业转载请注明出处。\n原文: "+location.href,$(".post-content").on("copy",(function(t){(window.clipboardData||t.originalEvent.clipboardData).setData("text/plain",e),t.preventDefault()})))})),g(),$(window).bind("scroll",g),"night"==u("mode")?($(".g-nav li.mode .night").addClass("active"),$("#mode-toggle .icon-night").addClass("active"),$("body").addClass("night-mode"),$(".icon.up.night").toggleClass("active"),$(".icon.list.night").toggleClass("active")):($(".g-nav li.mode .day").addClass("active"),$("#mode-toggle .icon-day").addClass("active"),$("body").removeClass("night-mode"),$(".icon.up.day").toggleClass("active"),$(".icon.list.day").toggleClass("active")),$(".g-nav li.mode").click((function(){m()})),$("#mode-toggle").click((function(){m()})),$("pre").each((function(t){var e="codeblock"+(t+1);$(this).attr("id",e);var a=$(this).attr("class").split(" ")[1].substring(9).toUpperCase();if("ERS"==a)if("MERMAID2"==(a=$(this).attr("class").split(" ")[0].substring(9).toUpperCase()))text=$(this).text(),$(this).before('<summary class="render-expand" aria-haspopup="dialog" role="button"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="octicon" style="display:inline-block;vertical-align:text-bottom"><path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 1.06L2.56 7h10.88l-2.22-2.22a.75.75 0 011.06-1.06l3.5 3.5a.75.75 0 010 1.06l-3.5 3.5a.75.75 0 11-1.06-1.06l2.22-2.22H2.56l2.22 2.22a.75.75 0 11-1.06 1.06l-3.5-3.5a.75.75 0 010-1.06l3.5-3.5z"></path></svg></summary>'),$(this).after('<div class="mermaid2">'+text+"</div>");else{$(this).wrap('<div class="highlight"></div>'),$(this).parent().wrap('<div class="'+$(this).attr("class").split(" ")[0]+' highlighter-rouge"></div>'),$(this).addClass("highlight");var o='<div class="copy-container"><span class="lang">'+a+'</span><button class="btn" data-bs-original-title="Copy" aria-label="Copy" data-clipboard-target="#'+e+'"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-copy"></use></svg><span class="tooltip unfinish">Copy</span><span class="tooltip finish">Copied</span></button></div>';$(this).before(o)}else o='<div class="copy-container"><span class="lang">'+a+'</span><button class="btn" data-bs-original-title="Copy" aria-label="Copy" data-clipboard-target="#'+e+'"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-copy"></use></svg><span class="tooltip unfinish">Copy</span><span class="tooltip finish">Copied</span></button></div>',$(this).before(o)})),new ClipboardJS(".btn").on("success",(function(t){t.clearSelection()})),$(".markdown-body .btn").hover((function(){$(this).find(".tooltip.unfinish").addClass("active")}),(function(){$(this).find(".tooltip.unfinish").removeClass("active")})),$(".markdown-body .btn").click((function(){$(this).find(".tooltip.unfinish").removeClass("active");var t=$(this).find(".tooltip.finish");t.addClass("active"),setTimeout((function(){t.removeClass("active")}),500)})),$("summary").click((function(t){var e=$(this).next().children().text();$(".modal .modal-content .container").html('<div class="mermaid2">'+e+"</div>"),mermaid.init(void 0,$(".modal .modal-content .mermaid2")),$(".modal").css("visibility","visible"),$(".modal .modal-content").click((function(t){t.target.classList.contains("close")&&$(".modal").css("visibility","hidden"),t.stopPropagation()})),t.stopPropagation()})),$(document).click((function(){$(".modal").css("visibility","hidden")})),document.addEventListener("error",(function(t){"IMG"==t.target.nodeName&&(t.target.src=e+"/assets/img/placeholder.webp")}),!0);var v=$(".alivetime_days"),f=$(".alivetime_hours"),b=$(".alivetime_minutes"),y=$(".alivetime_seconds");if(function t(){var e=$("meta[name='alivestart']").attr("content");window.setTimeout(t,1e3),BirthDay=new Date(e),today=new Date,timeold=today.getTime()-BirthDay.getTime(),secondsold=Math.floor(timeold/1e3),e_daysold=timeold/864e5,daysold=Math.floor(e_daysold),e_hrsold=24*(e_daysold-daysold),hrsold=Math.floor(e_hrsold),e_minsold=60*(e_hrsold-hrsold),minsold=Math.floor(e_minsold),seconds=Math.floor(60*(e_minsold-minsold)),v.html(daysold),f.html(hrsold),b.html(minsold),y.html(seconds)}(),today=new Date,year=today.getFullYear(),month=today.getMonth()+1,day=today.getDate(),endDay=year+"-"+("0"+month).slice(-2)+"-"+("0"+day).slice(-2),locales={"zh-Hans":"zh","zh-Hant":"zh-tw",en:"en",ja:"ja"},$("#cal-heatmap").length>0){const t=new CalHeatmap;axios.get(e+"/stats.json").then((e=>{stats_data=e.data,t.paint({itemSelector:"#cal-heatmap",domain:{type:"month",gutter:5,label:{text:"MMM",textAlign:"start",position:"top"}},subDomain:{type:"ghDay",gutter:5,width:13,height:13,radius:3,label:null},date:{start:new Date(dayjs(endDay).subtract(2,"month")),max:new Date(endDay),highlight:[new Date(endDay)],locale:locales[a]},range:3,data:{source:stats_data.calendar,x:"date",y:"count"},scale:{color:{type:"threshold",range:["#9be9a8","#40c463","#30a14e","#216e39"],domain:[4,6,8]}}},[[Tooltip,{text:function(t,e,a){return 1==e?e+" contribution on "+a.format("YYYY-MM-DD"):(e?e+" contributions":"No contribution")+" on "+a.format("YYYY-MM-DD")}}],[LegendLite,{includeBlank:!0,itemSelector:"#ex-ghDay-legend",radius:3,width:10,height:10,gutter:2}],[CalendarLabel,{width:30,textAlign:"start",text:()=>dayjs.weekdaysShort().map(((t,e)=>e%2==0?"":t)),padding:[25,0,0,0]}]]),$("#ex-ghDay-prev").on("click",(function(e){e.preventDefault(),t.previous()})),$("#ex-ghDay-next").on("click",(function(e){e.preventDefault(),t.next()})),$("#ex-ghDay-today").on("click",(function(e){e.preventDefault(),t.jumpTo(new Date(endDay))}))}))}if($("#archive-heatmap").length>0){postWidth=$(".post-content").width(),postWidth>=633?month=12:postWidth>=400?month=8:postWidth>=300?month=6:month=3;const t=new CalHeatmap;axios.get(e+"/stats.json").then((e=>{stats_data=e.data,t.paint({itemSelector:"#archive-heatmap",domain:{type:"month",gutter:2,label:{text:"MMM",textAlign:"start",position:"top"}},subDomain:{type:"ghDay",gutter:2,width:9,height:9,radius:2},date:{start:new Date(dayjs(endDay).subtract(month-1,"month")),max:new Date(endDay),highlight:[new Date(endDay)],locale:locales[a]},range:month,data:{source:stats_data.calendar,x:"date",y:"count"},scale:{color:{type:"threshold",range:["#9be9a8","#40c463","#30a14e","#216e39"],domain:[4,6,8]}}},[[Tooltip,{text:function(t,e,a){return 1==e?e+" contribution on "+a.format("YYYY-MM-DD"):(e?e+" contributions":"No contribution")+" on "+a.format("YYYY-MM-DD")}}],[LegendLite,{includeBlank:!0,itemSelector:"#ex-ghDay-legend2",radius:3,width:10,height:10,gutter:2}],[CalendarLabel,{width:30,textAlign:"start",text:()=>dayjs.weekdaysShort().map(((t,e)=>e%2==0?"":t)),padding:[25,0,0,0]}]]),$("#ex-ghDay-prev2").on("click",(function(e){e.preventDefault(),t.previous()})),$("#ex-ghDay-next2").on("click",(function(e){e.preventDefault(),t.next()})),$("#ex-ghDay-today2").on("click",(function(e){e.preventDefault(),t.jumpTo(new Date(endDay))}))}))}}))}},e={};function a(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,a),s.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";a(774)})()})();
1
+ (()=>{var t={774:()=>{$(document).ready((function(){document.body.addEventListener("touchstart",(function(){}),{passive:!0});var t=$(".g-nav"),e=$("meta[property='og:baseurl']").attr("content"),a=$("meta[property='og:lang']").attr("content"),o=$(".g-logo"),n=$(".g-banner").attr("data-theme");if(o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),u("cookieconsent_status")?$(".cookie-tip").removeClass("active"):$(".cookie-tip").addClass("active"),$("#accept-tos").on("click",(function(){p("cookieconsent_status","allow",365),$(".cookie-tip").removeClass("active")})),$("table").wrap("<div class='table-area'></div>"),$("#menu-toggle").on("click",(function(e){t.slideToggle(200),$(document).on("click",(function(){t.slideUp(200)})),e.stopPropagation()})),t.on("click",(function(t){t.stopPropagation()})),$(".g-nav li.dropdown").on("click",(function(){$(".g-nav li.dropdown").not($(this)).children("ul.dropdown-menu").removeClass("show"),$(".g-nav li.dropdown").not($(this)).children("a.dropdown-toggle").removeClass("show"),$(this).children("a.dropdown-toggle").toggleClass("show"),$(this).children("ul.dropdown-menu").toggleClass("show")})),$(document).on("click",(function(){$(".g-nav li.dropdown").children("a.dropdown-toggle").removeClass("show"),$(".g-nav li.dropdown").children("ul.dropdown-menu").removeClass("show")})),$(window).width()>695){var s=(r=$(".g-header")).outerHeight(),i=t.find("a"),l=$(document).scrollTop();o=$(".g-logo"),n=$(".g-banner").attr("data-theme"),$(document).scroll((function(){var a=$(this).scrollTop(),c="nav-"+n;a>s?(a>3*s&&r.addClass("headerUp"),r.css({"background-color":"rgba(255, 255, 255, .98)","box-shadow":"0 1px 12px rgba(0, 0, 0, .08)"}),o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),i.addClass("color-f-gray"),t.addClass(c)):(r.removeClass("headerUp"),$("#bttb").removeClass("active"),r.css({"background-color":"transparent","box-shadow":"none"}),o.css({background:"url("+e+"/assets/icons/"+n+".svg) no-repeat center","background-size":"100% 100%"}),i.removeClass("color-f-gray"),t.removeClass(c)),l>a?(r.addClass("headerDown"),r.hasClass("headerUp")&&$("#bttb").addClass("active")):(r.removeClass("headerDown"),$("#bttb").removeClass("active")),l=a}))}else{var r;s=(r=$(".g-header")).outerHeight(),l=$(document).scrollTop(),$(document).scroll((function(){var t=$(this).scrollTop();t<100&&$("#bttb").removeClass("active"),l>t&&l>5?$("#bttb").addClass("active"):$("#bttb").removeClass("active"),l=t}))}function c(){$(".table-of-contents").toggleClass("active"),$("#tools .tool.toc .b1").toggleClass("active"),$("#tools .tool.toc .b2").toggleClass("active"),$(".submenu").removeClass("active"),$("#tools .tool.collection .b1").addClass("active"),$("#tools .tool.collection .b2").removeClass("active")}function d(){$(".submenu").toggleClass("active"),$("#tools .tool.collection .b1").toggleClass("active"),$("#tools .tool.collection .b2").toggleClass("active"),$(".table-of-contents").removeClass("active"),$("#tools .tool.toc .b1").addClass("active"),$("#tools .tool.toc .b2").removeClass("active")}function g(){var t,e,a,o=$("#search_input"),n=$(".search_result");o.focus((function(){$(".icon-search").css("color","#3199DB"),n.show()})),o.keyup((t=this.autoComplete,e=e||120,function(){var o=this,n=arguments;clearTimeout(a),a=setTimeout((function(){t.apply(o,n)}),e)})),$(document).click((function(t){"search_input"!==t.target.id&&"search_result"!==t.target.className&&"search_item"!==t.target.className&&($(".icon-search").css("color","#CAD3DC"),n.hide())}))}function h(){var t=$("article :header"),e=$(".table-of-contents a").parent(),a=$(window).scrollTop();a>0&&$(".g-header").addClass("headerUp");for(var o=0;o<t.length;o++){var n=$(t[o]).offset().top-100;if(n<a){$(e).removeClass("active"),$(e[o]).addClass("active"),n=$(".toc-body li.active").offset().top-$(".toc-header h2").offset().top;var s=$(".toc-body li.active").offset().top-$(".toc-body li:first-child").offset().top;n<22&&$(".toc-body").scrollTop(s-350),n>350&&$(".toc-body").scrollTop(s-72)}}}function u(t){for(var e=t+"=",a=document.cookie.split(";"),o=0;o<a.length;o++){var n=a[o].trim();if(0===n.indexOf(e))return n.substring(e.length,n.length)}return""}function p(t,a,o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3);var s="expires="+n.toGMTString();document.cookie=e?t+"="+a+"; path="+e+"; "+s:t+"="+a+"; path=/; "+s}function m(){var t=u("mode");""==t||"day"==t?(p("mode","night",1),$("body").addClass("night-mode")):(p("mode","day",1),$("body").removeClass("night-mode")),$("#disqus_thread").length>0&&DISQUS.reset({reload:!0}),$(".g-nav li.mode .icon").toggleClass("active"),$("#mode-toggle .icon").toggleClass("active"),$(".icon.up.day").toggleClass("active"),$(".icon.up.night").toggleClass("active"),"visible"==$(".table-of-contents").css("visibility")?($(".icon.exit.day").toggleClass("active"),$(".icon.exit.night").toggleClass("active")):($(".icon.list.day").toggleClass("active"),$(".icon.list.night").toggleClass("active"))}$("#tools .tool.toc").bind("click",(function(){c()})),$("#tools .tool.collection").bind("click",(function(){d()})),$(".table-of-contents").on("click",(function(){c()})),$(".submenu").on("click",(function(){d()})),$(".bttb").bind("click",(function(){$("html,body").animate({scrollTop:0},(function(){$("#bttb").removeClass("active")}))})),$(".read-next-item section").each((function(){var t=$(this).height(),e=$(".read-next-item").height();$(this).css("margin-top",(e-t)/2+"px"),$(this).fadeIn()})),$(".read-next-item img").each((function(){!function(t,e){t.width(),e.width();var a=t.height(),o=e.height();if(a<o){t.css({width:"auto",height:"100%"});var n=(t.width()-e.width())/2;t.css("margin-left","-"+n+"px")}else{var s=(o-a)/2;t.css("margin-top",s+"px")}t.fadeIn()}($(this),$(".read-next-item")),$(this).attr("data-src",$(this).attr("src")).removeAttr("src").addClass("lazyload")})),function(){for(var t=parseInt($("#total_pages").val()),e=parseInt($("#current_pages").val()),a=$("#base_url").val(),o="",n=e-3;n<e;n++)n>0&&1!==n?o+='<a href="'+a+"page"+n+'/index.html" class="page-link page-num">'+n+"</a>":1===n&&(o+='<a href="'+a+'" class="page-link page-num">'+n+"</a>");o+='<span class="page-link page-num active">'+e+"</span>";for(var s=e+1;s<=e+3;s++)s<=t&&(o+='<a href="'+a+"page"+s+'/index.html" class="page-link page-num">'+s+"</a>");$("#page-link-container").html(o)}(),g.prototype.autoComplete=function(){var t=this.value.toLowerCase();t.length?$(".icon-search").css("color","#3199DB"):$(".icon-search").css("color","#CAD3DC");var a=e+"/assets/search.json";$.getJSON(a).done((function(e){var a="";for(var o in e){var n=e[o],s=n.title,i=n.tags;n.url,""!==t&&(s+i).toLowerCase().indexOf(t)>=0&&(a+='<a class="search_item" href="'+n.url+'">'+n.title+"</a>")}$(".search_result").html(a)}))},new g,"true"===$("#nm-switch").val()&&function(){$("body");var t=(new Date).getHours();""==u("mode")&&(t<=6||t>=18)&&p("mode","night",1)}(),$(".post-content").on("mouseup",(function(t){var e,a=window.getSelection();a.toString().length>=30&&(e=a,e+="\n\n著作权归作者所有。\n商业转载请联系作者获得授权,非商业转载请注明出处。\n原文: "+location.href,$(".post-content").on("copy",(function(t){(window.clipboardData||t.originalEvent.clipboardData).setData("text/plain",e),t.preventDefault()})))})),$(".toc-body").length>0&&($($(".table-of-contents a").parent()[0]).addClass("active"),h(),$(window).bind("scroll",h)),"night"==u("mode")?($(".g-nav li.mode .night").addClass("active"),$("#mode-toggle .icon-night").addClass("active"),$("body").addClass("night-mode"),$(".icon.up.night").toggleClass("active"),$(".icon.list.night").toggleClass("active")):($(".g-nav li.mode .day").addClass("active"),$("#mode-toggle .icon-day").addClass("active"),$("body").removeClass("night-mode"),$(".icon.up.day").toggleClass("active"),$(".icon.list.day").toggleClass("active")),$(".g-nav li.mode").click((function(){m()})),$("#mode-toggle").click((function(){m()})),$("pre").each((function(t){var e="codeblock"+(t+1);$(this).attr("id",e);var a=$(this).attr("class").split(" ")[1].substring(9).toUpperCase();if("ERS"==a)if("MERMAID2"==(a=$(this).attr("class").split(" ")[0].substring(9).toUpperCase()))text=$(this).text(),$(this).before('<summary class="render-expand" aria-haspopup="dialog" role="button"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="octicon" style="display:inline-block;vertical-align:text-bottom"><path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 1.06L2.56 7h10.88l-2.22-2.22a.75.75 0 011.06-1.06l3.5 3.5a.75.75 0 010 1.06l-3.5 3.5a.75.75 0 11-1.06-1.06l2.22-2.22H2.56l2.22 2.22a.75.75 0 11-1.06 1.06l-3.5-3.5a.75.75 0 010-1.06l3.5-3.5z"></path></svg></summary>'),$(this).after('<div class="mermaid2">'+text+"</div>");else{$(this).wrap('<div class="highlight"></div>'),$(this).parent().wrap('<div class="'+$(this).attr("class").split(" ")[0]+' highlighter-rouge"></div>'),$(this).addClass("highlight");var o='<div class="copy-container"><span class="lang">'+a+'</span><button class="btn" data-bs-original-title="Copy" aria-label="Copy" data-clipboard-target="#'+e+'"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-copy"></use></svg><span class="tooltip unfinish">Copy</span><span class="tooltip finish">Copied</span></button></div>';$(this).before(o)}else o='<div class="copy-container"><span class="lang">'+a+'</span><button class="btn" data-bs-original-title="Copy" aria-label="Copy" data-clipboard-target="#'+e+'"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-copy"></use></svg><span class="tooltip unfinish">Copy</span><span class="tooltip finish">Copied</span></button></div>',$(this).before(o)})),new ClipboardJS(".btn").on("success",(function(t){t.clearSelection()})),$(".markdown-body .btn").hover((function(){$(this).find(".tooltip.unfinish").addClass("active")}),(function(){$(this).find(".tooltip.unfinish").removeClass("active")})),$(".markdown-body .btn").click((function(){$(this).find(".tooltip.unfinish").removeClass("active");var t=$(this).find(".tooltip.finish");t.addClass("active"),setTimeout((function(){t.removeClass("active")}),500)})),$("summary").click((function(t){var e=$(this).next().children().text();$(".modal .modal-content .container").html('<div class="mermaid2">'+e+"</div>"),mermaid.init(void 0,$(".modal .modal-content .mermaid2")),$(".modal").css("visibility","visible"),$(".modal .modal-content").click((function(t){t.target.classList.contains("close")&&$(".modal").css("visibility","hidden"),t.stopPropagation()})),t.stopPropagation()})),$(document).click((function(){$(".modal").css("visibility","hidden")})),document.addEventListener("error",(function(t){"IMG"==t.target.nodeName&&(t.target.src=e+"/assets/img/placeholder.webp")}),!0);var v=$(".alivetime_days"),b=$(".alivetime_hours"),f=$(".alivetime_minutes"),y=$(".alivetime_seconds");!function t(){var e=$("meta[name='alivestart']").attr("content");window.setTimeout(t,1e3),BirthDay=new Date(e),today=new Date,timeold=today.getTime()-BirthDay.getTime(),secondsold=Math.floor(timeold/1e3),e_daysold=timeold/864e5,daysold=Math.floor(e_daysold),e_hrsold=24*(e_daysold-daysold),hrsold=Math.floor(e_hrsold),e_minsold=60*(e_hrsold-hrsold),minsold=Math.floor(e_minsold),seconds=Math.floor(60*(e_minsold-minsold)),v.html(daysold),b.html(hrsold),f.html(minsold),y.html(seconds)}();var C=$("meta[property='calendar-scale']").attr("content"),w=$("meta[property='calendar-scheme']").attr("content"),x=$("meta[property='calendar-color']").attr("content"),D={type:"threshold",domain:[4,6,8]};function k(t,e,o,n="False"){var s={},i=[[Tooltip,{text:function(t,e,a){return 1==e?e+" contribution on "+a.format(s.format):(e?e+" contributions":"No contribution")+" on "+a.format(s.format)}}],[LegendLite,{includeBlank:!0,itemSelector:e.legend,radius:3,width:10,height:10,gutter:2}]];if("month"==o){const e=function(t){return{name:"xMonth",allowedDomainType:["year"],rowsCount:()=>3,columnsCount:()=>4,mapping:(e,a)=>t.intervals("month",e,t.date(a)).map((e=>({t:e,x:t.date(e).month()%4,y:parseInt(t.date(e).month()/4)}))),extractUnit:e=>t.date(e).startOf("month").valueOf()}};t.addTemplates(e),s={format:"YYYY-MM",domain:{type:"year",gutter:5,label:{text:t=>dayjs(t).format("YYYY"),align:"middle"}},subDomain:{type:"xMonth",width:60,height:36,gutter:5,radius:3},range:1};var l=new Date(dayjs(endDay).startOf("year").add(1,"month"))}else if("year"==o){const e=function(t){return{name:"xYear",allowedDomainType:["year"],rowsCount:()=>1,columnsCount:()=>1,mapping:(e,a)=>t.intervals("year",e,t.date(a)).map(((t,e)=>({t,x:e,y:0}))),extractUnit:e=>t.date(e).startOf("year").valueOf()}};t.addTemplates(e),s={format:"YYYY",domain:{type:"year",gutter:5,label:{text:"YYYY",align:"middle"}},subDomain:{type:"xYear",width:36,height:36,gutter:5,radius:3},range:6},"False"==n&&(s.range=parseInt($("#cal-heatmap").width()/40)),l=new Date(dayjs(endDay).subtract(s.range-1,"year"))}else s={format:"YYYY-MM-DD",domain:{type:"month",gutter:5,label:{text:"MMM",align:"start"}},subDomain:{type:"ghDay",width:13,height:13,gutter:5,radius:3},range:3},l=new Date(dayjs(endDay).subtract(s.range-1,"month")),i[2]=[CalendarLabel,{width:30,textAlign:"start",text:()=>dayjs.weekdaysShort().map(((t,e)=>e%2==0?"":t)),padding:[25,0,0,0]}];if("True"==n&&(postWidth=$(".post-content").width(),postWidth>=633?s.range=12:postWidth>=400?s.range=8:postWidth>=300?s.range=6:s.range=3,s.domain.gutter=2,s.subDomain.width=9,s.subDomain.height=9,s.subDomain.gutter=2,s.subDomain.radius=2,l=new Date(dayjs(endDay).subtract(s.range-1,"month"))),"month"==o)var r=stats_data.calendar.by_month;else r="year"==o?stats_data.calendar.by_year:stats_data.calendar.by_day;return t.paint({itemSelector:e.cal,domain:{type:s.domain.type,gutter:s.domain.gutter,label:{text:s.domain.label.text,textAlign:s.domain.label.align,position:"top"}},subDomain:{type:s.subDomain.type,gutter:s.subDomain.gutter,width:s.subDomain.width,height:s.subDomain.height,radius:s.subDomain.radius,label:null},date:{start:l,max:new Date(endDay),highlight:[new Date(endDay)],locale:locales[a]},range:s.range,data:{source:r,x:"date",y:"count"},scale:{color:D}},i),$(e.prev).on("click",(function(e){e.preventDefault(),t.previous()})),$(e.next).on("click",(function(e){e.preventDefault(),t.next()})),$(e.today).on("click",(function(e){e.preventDefault(),t.jumpTo(new Date(endDay))})),t}"null"!==w?["blues","greens","greys","oranges","purples","reds","bugn","bupu","gnbu","orrd","pubu","pubugn","purd","rdpu","ylgn","ylgnbu","ylorbr","ylorrd","cividis","inferno","magma","plasma","viridis","cubehelix","turbo","warm","cool","brbg","prgn","piyg","puor","rdbu","rdgy","rdylbu","rdylgn","spectral","burd","buylrd","rainbow","sinebow"].includes(w)?D.scheme=w:(D.range=["#9be9a8","#40c463","#30a14e","#216e39"],console.log("'"+w+"' is not supported. Please check it in https://cal-heatmap.com/!")):D.range="null"!==x?x:["#9be9a8","#40c463","#30a14e","#216e39"],today=new Date,year=today.getFullYear(),month=today.getMonth()+1,day=today.getDate(),endDay=year+"-"+("0"+month).slice(-2)+"-"+("0"+day).slice(-2),locales={"zh-Hans":"zh","zh-Hant":"zh-tw",en:"en",ja:"ja"},axios.get(e+"/stats.json").then((t=>{if(stats_data=t.data,$("#cal-heatmap").length>0){var e=new CalHeatmap;selectors={cal:"#cal-heatmap",legend:"#ex-ghDay-legend",prev:"#ex-ghDay-prev",next:"#ex-ghDay-next",today:"#ex-ghDay-today"},e=k(e,selectors,C)}if($("#archive-heatmap").length>0){var a=new CalHeatmap;selectors2={cal:"#archive-heatmap",legend:"#ex-ghDay-legend2",prev:"#ex-ghDay-prev2",next:"#ex-ghDay-next2",today:"#ex-ghDay-today2"},a=k(a,selectors2,"day","True")}})).catch((function(t){console.log("'stats.json' is not found. Calendar will be abnormal. Please make sure it exits.")}))}))}},e={};function a(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,a),s.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";a(774)})()})();
@@ -1 +1 @@
1
- {"version":3,"file":"app.min.js","mappings":"sBAAAA,EAAEC,UAAUC,OAAM,WACdD,SAASE,KAAKC,iBAAiB,cAAc,WAAc,GAAG,CAAEC,SAAS,IAEzE,IAAIC,EAAMN,EAAE,UACRO,EAAUP,EAAE,+BAA+BQ,KAAK,WAChDC,EAAOT,EAAE,4BAA4BQ,KAAK,WAC1CE,EAAOV,EAAE,WACTW,EAAaX,EAAE,aAAaQ,KAAK,cAwDrC,GAvDAE,EAAKE,IAAI,CACL,WAAc,OAASL,EAAU,iBAAmBI,EAAa,yBACjE,kBAAmB,cAMIE,EAAU,wBAEjCb,EAAE,eAAec,YAAY,UAE7Bd,EAAE,eAAee,SAAS,UAE9Bf,EAAE,eAAegB,GAAG,SAAS,WACzBC,EAAU,uBAAwB,QAAS,KAC3CjB,EAAE,eAAec,YAAY,SACjC,IAKAd,EAAE,SAASkB,KAAK,kCAMhBlB,EAAE,gBAAgBgB,GAAG,SAAS,SAAUG,GAEpCb,EAAIc,YADW,KAEfpB,EAAEC,UAAUe,GAAG,SAAS,WACpBV,EAAIe,QAHO,IAIf,IACAF,EAAEG,iBACN,IAEAhB,EAAIU,GAAG,SAAS,SAAUG,GACtBA,EAAEG,iBACN,IAEAtB,EAAE,sBAAsBgB,GAAG,SAAS,WAChChB,EA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MkB,gBAAgBC,KAAI,CAAClJ,EAAGf,IAAOA,EAAI,GAAK,EAAI,GAAKe,IACnEmJ,QAAS,CAAC,GAAI,EAAG,EAAG,OAKpCpO,EAAE,mBAAmBgB,GAAG,SAAS,SAAUG,GACvCA,EAAEyH,iBACFiD,EAAIwC,UACR,IACArO,EAAE,mBAAmBgB,GAAG,SAAS,SAAUG,GACvCA,EAAEyH,iBACFiD,EAAIpC,MACR,IACAzJ,EAAE,oBAAoBgB,GAAG,SAAS,SAAUG,GACxCA,EAAEyH,iBACFiD,EAAIyC,OAAO,IAAIpJ,KAAKwG,QACxB,GAAE,GAEV,CACJ,G,GCtxBI8C,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqB9E,IAAjB+E,EACH,OAAOA,EAAaC,QAGrB,IAAIC,EAASL,EAAyBE,GAAY,CAGjDE,QAAS,CAAC,GAOX,OAHAE,EAAoBJ,GAAUG,EAAQA,EAAOD,QAASH,GAG/CI,EAAOD,OACf,CCrBAH,EAAoB1I,EAAK8I,IACxB,IAAIE,EAASF,GAAUA,EAAOG,WAC7B,IAAOH,EAAiB,QACxB,IAAM,EAEP,OADAJ,EAAoBxJ,EAAE8J,EAAQ,CAAEE,EAAGF,IAC5BA,CAAM,ECLdN,EAAoBxJ,EAAI,CAAC2J,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMvD,IAAKkD,EAAWC,IAE1E,ECNDV,EAAoBW,EAAI,CAACI,EAAKC,IAAUJ,OAAOjI,UAAUsI,eAAeC,KAAKH,EAAKC,G","sources":["webpack://jekyll-theme-h2o-ac/./dev/js/index.js","webpack://jekyll-theme-h2o-ac/webpack/bootstrap","webpack://jekyll-theme-h2o-ac/webpack/runtime/compat get default export","webpack://jekyll-theme-h2o-ac/webpack/runtime/define property getters","webpack://jekyll-theme-h2o-ac/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["$(document).ready(function () {\n document.body.addEventListener('touchstart', function () { }, { passive: true });\n\n var nav = $('.g-nav');\n var baseurl = $(\"meta[property='og:baseurl']\").attr('content');\n var lang = $(\"meta[property='og:lang']\").attr('content');\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n\n /**\n * Cookie Tips\n */\n var cookieconsent_status = getCookie(\"cookieconsent_status\");\n if (cookieconsent_status) {\n $('.cookie-tip').removeClass('active');\n } else {\n $('.cookie-tip').addClass('active');\n }\n $('#accept-tos').on('click', function () {\n setCookie(\"cookieconsent_status\", \"allow\", 365);\n $('.cookie-tip').removeClass('active');\n });\n\n /**\n * Fix table for small screens\n */\n $(\"table\").wrap(\"<div class='table-area'></div>\");\n\n\n /**\n * Responsive Navigation\n */\n $('#menu-toggle').on('click', function (e) {\n var duration = 200;\n nav.slideToggle(duration);\n $(document).on('click', function () {\n nav.slideUp(duration);\n });\n e.stopPropagation();\n });\n\n nav.on('click', function (e) {\n e.stopPropagation();\n });\n\n $(\".g-nav li.dropdown\").on(\"click\", function () {\n $(\".g-nav li.dropdown\").not($(this)).children(\"ul.dropdown-menu\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").not($(this)).children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(this).children(\"a.dropdown-toggle\").toggleClass(\"show\");\n $(this).children(\"ul.dropdown-menu\").toggleClass(\"show\");\n });\n $(document).on(\"click\", function () {\n $(\".g-nav li.dropdown\").children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").children(\"ul.dropdown-menu\").removeClass(\"show\");\n });\n\n /**\n * Header Bar\n */\n if ($(window).width() > 695) {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var navText = nav.find('a');\n var scFlag = $(document).scrollTop();\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n var navClassName = 'nav-' + themeStyle;\n if (scrollTop > headerHeight) {\n if (scrollTop > 3 * headerHeight) {\n header.addClass('headerUp');\n }\n header.css({\n 'background-color': 'rgba(255, 255, 255, .98)',\n 'box-shadow': '0 1px 12px rgba(0, 0, 0, .08)'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.addClass('color-f-gray');\n nav.addClass(navClassName);\n } else {\n header.removeClass('headerUp');\n // console.log(\"rm up\");\n $('#bttb').removeClass(\"active\");\n header.css({\n 'background-color': 'transparent',\n 'box-shadow': 'none'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.removeClass('color-f-gray');\n nav.removeClass(navClassName);\n }\n\n // scroll action\n if (scFlag > scrollTop) {\n header.addClass('headerDown');\n if (header.hasClass('headerUp')) {\n $('#bttb').addClass(\"active\");\n }\n } else {\n header.removeClass('headerDown');\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n } else {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var scFlag = $(document).scrollTop();\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n\n if (scrollTop < 100) {\n $('#bttb').removeClass(\"active\");\n }\n\n // scroll action\n if (scFlag > scrollTop && scFlag > 5) {\n $('#bttb').addClass(\"active\");\n } else {\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n }\n\n /**\n * List for contents\n */\n function clickTOC() {\n $('.table-of-contents').toggleClass(\"active\");\n $('#tools .tool.toc .b1').toggleClass(\"active\");\n $('#tools .tool.toc .b2').toggleClass(\"active\");\n $('.submenu').removeClass(\"active\");\n $('#tools .tool.collection .b1').addClass(\"active\");\n $('#tools .tool.collection .b2').removeClass(\"active\");\n }\n function clickSubmenu() {\n $('.submenu').toggleClass(\"active\");\n $('#tools .tool.collection .b1').toggleClass(\"active\");\n $('#tools .tool.collection .b2').toggleClass(\"active\");\n $('.table-of-contents').removeClass(\"active\");\n $('#tools .tool.toc .b1').addClass(\"active\");\n $('#tools .tool.toc .b2').removeClass(\"active\");\n }\n $('#tools .tool.toc').bind('click', function () {\n clickTOC()\n });\n $('#tools .tool.collection').bind('click', function () {\n clickSubmenu()\n });\n $(\".table-of-contents\").on('click', function () {\n clickTOC()\n });\n $(\".submenu\").on('click', function () {\n clickSubmenu()\n });\n\n\n /**\n * Back To Top Button\n */\n $('.bttb').bind('click', function () {\n $('html,body').animate({ scrollTop: 0 }, function () {\n $('#bttb').removeClass(\"active\");\n });\n });\n\n /**\n * Post Cover Resize\n */\n function postCover(img, container) {\n var imgWidth = img.width();\n var containerWidth = container.width();\n var imgHeight = img.height();\n var containerHeight = container.height();\n\n if (imgHeight < containerHeight) {\n img.css({\n 'width': 'auto',\n 'height': '100%'\n });\n imgWidth = img.width();\n containerWidth = container.width();\n var marginLeft = (imgWidth - containerWidth) / 2;\n img.css('margin-left', '-' + marginLeft + 'px');\n } else {\n var marginTop = (containerHeight - imgHeight) / 2;\n img.css('margin-top', marginTop + 'px');\n }\n\n img.fadeIn();\n }\n\n /**\n * The Post Navigator\n */\n $('.read-next-item section').each(function () {\n var n = $(this).height();\n var rn = $('.read-next-item').height();\n $(this).css('margin-top', (rn - n) / 2 + 'px');\n $(this).fadeIn();\n });\n\n $('.read-next-item img').each(function () {\n postCover($(this), $('.read-next-item'));\n // $(this).addClass(\"lazyload\");\n $(this).attr('data-src', $(this).attr('src')).removeAttr('src').addClass(\"lazyload\");\n });\n\n /**\n * Pagination\n */\n function pagination() {\n var total = parseInt($('#total_pages').val());\n var current = parseInt($('#current_pages').val());\n var baseUrl = $('#base_url').val();\n var limit = 3;\n\n var link_html = '';\n\n for (var i = current - limit; i < current; i++) {\n if (i > 0 && i !== 1) {\n link_html += '<a href=\"' + baseUrl + 'page' + i + '/index.html\" class=\"page-link page-num\">' + i + '</a>';\n } else if (i === 1) {\n link_html += '<a href=\"' + baseUrl + '\" class=\"page-link page-num\">' + i + '</a>';\n }\n }\n\n link_html += '<span class=\"page-link page-num active\">' + current + '</span>';\n\n for (var j = current + 1; j <= current + limit; j++) {\n if (j <= total) {\n link_html += '<a href=\"' + baseUrl + 'page' + j + '/index.html\" class=\"page-link page-num\">' + j + '</a>';\n }\n }\n\n $('#page-link-container').html(link_html);\n }\n pagination();\n\n /**\n * Search\n */\n function Search() {\n var self = this;\n var input = $('#search_input');\n var result = $('.search_result');\n\n input.focus(function () {\n $('.icon-search').css('color', '#3199DB');\n result.show();\n });\n\n input.keyup(debounce(this.autoComplete));\n\n $(document).click(function (e) {\n if (e.target.id === 'search_input' || e.target.className === 'search_result' || e.target.className === 'search_item') {\n return;\n }\n $('.icon-search').css('color', '#CAD3DC');\n result.hide();\n });\n }\n\n Search.prototype.autoComplete = function () {\n var keywords = this.value.toLowerCase();\n\n if (keywords.length) {\n $('.icon-search').css('color', '#3199DB');\n } else {\n $('.icon-search').css('color', '#CAD3DC');\n }\n\n var jsonfile = baseurl + '/assets/search.json';\n $.getJSON(jsonfile).done(function (data) {\n var html = '';\n for (var i in data) {\n var item = data[i];\n var title = item.title;\n var tags = item.tags;\n var url = item.url;\n\n var k = title + tags;\n if (keywords !== '' && k.toLowerCase().indexOf(keywords) >= 0) {\n html += '<a class=\"search_item\" href=\"' + item.url + '\">' + item.title + '</a>';\n }\n }\n $('.search_result').html(html);\n });\n };\n\n function debounce(fn, delay) {\n var timer;\n delay = delay || 120;\n\n return function () {\n var ctx = this;\n var args = arguments;\n var later = function () {\n fn.apply(ctx, args);\n };\n clearTimeout(timer);\n timer = setTimeout(later, delay);\n };\n }\n\n new Search();\n\n /**\n * Night mode\n */\n function nightMode() {\n var el = $('body');\n var className = 'night-mode';\n\n var date = new Date();\n var hour = date.getHours();\n\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n // console.log(mode);\n if (hour <= 6 || hour >= 18) {\n // console.log(\"Start night mode\");\n setCookie(\"mode\", \"night\", 1)\n }\n // el.addClass(className);\n }\n }\n\n if ($('#nm-switch').val() === 'true') {\n nightMode();\n }\n\n /**\n * Copy and copyright\n */\n function setClipboardData(str) {\n str += '\\n\\n著作权归作者所有。\\n商业转载请联系作者获得授权,非商业转载请注明出处。\\n原文: ' + location.href;\n $('.post-content').on('copy', function (e) {\n var data = window.clipboardData || e.originalEvent.clipboardData;\n data.setData('text/plain', str);\n e.preventDefault();\n });\n }\n $('.post-content').on('mouseup', function (e) {\n var txt = window.getSelection();\n if (txt.toString().length >= 30) {\n setClipboardData(txt);\n }\n });\n\n /**\n * TOC highlight with the corresponding content\n */\n function locateCatelogList() {\n /*获取文章目录集合,可通过:header过滤器*/\n var alis = $('article :header');\n /*获取侧边栏目录列表集合**/\n var sidebar_alis = $('.table-of-contents').find('a');\n /*获取滚动条到顶部的距离*/\n var scroll_height = $(window).scrollTop();\n if (scroll_height > 0) {\n $('.g-header').addClass('headerUp');\n }\n for (var i = 0; i < alis.length; i++) {\n /*获取锚点集合中的元素分别到顶点的距离*/\n var a_height = $(alis[i]).offset().top - 100;\n if (a_height < scroll_height) {\n /*高亮显示*/\n $(sidebar_alis).removeClass('active');\n $(sidebar_alis[i]).addClass('active');\n }\n }\n }\n\n locateCatelogList();\n $(window).bind('scroll', locateCatelogList);\n\n /**\n * Day/Night mode switch button\n */\n function getCookie(cname) {\n var name = cname + \"=\";\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i].trim();\n if (c.indexOf(name) === 0) return c.substring(name.length, c.length);\n }\n return \"\";\n }\n\n function setCookie(cname, cvalue, exdays) {\n var d = new Date();\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\n var expires = \"expires=\" + d.toGMTString();\n if (!baseurl) {\n document.cookie = cname + \"=\" + cvalue + \"; path=/; \" + expires;\n } else {\n document.cookie = cname + \"=\" + cvalue + \"; path=\" + baseurl + \"; \" + expires;\n }\n }\n\n var mode = getCookie(\"mode\");\n // console.log(mode);\n if (mode == \"night\") {\n $(\".g-nav li.mode .night\").addClass(\"active\");\n $(\"#mode-toggle .icon-night\").addClass(\"active\");\n $(\"body\").addClass(\"night-mode\");\n $(\".icon.up.night\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n } else {\n $(\".g-nav li.mode .day\").addClass(\"active\");\n $(\"#mode-toggle .icon-day\").addClass(\"active\");\n $(\"body\").removeClass(\"night-mode\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.list.day\").toggleClass(\"active\");\n }\n\n function changeMode() {\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else if (mode == \"day\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else {\n setCookie(\"mode\", \"day\", 1)\n $(\"body\").removeClass(\"night-mode\");\n }\n // console.log(mode + \"-->\" + getCookie(\"mode\"));\n if ($(\"#disqus_thread\").length > 0) {\n DISQUS.reset({\n reload: true\n });\n }\n $(\".g-nav li.mode .icon\").toggleClass(\"active\");\n $(\"#mode-toggle .icon\").toggleClass(\"active\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.up.night\").toggleClass(\"active\");\n if ($('.table-of-contents').css('visibility') == \"visible\") {\n $(\".icon.exit.day\").toggleClass(\"active\");\n $(\".icon.exit.night\").toggleClass(\"active\");\n } else {\n $(\".icon.list.day\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n }\n }\n\n $(\".g-nav li.mode\").click(function () {\n changeMode();\n });\n\n $(\"#mode-toggle\").click(function () {\n changeMode();\n });\n\n /**\n * Copy code blocks\n */\n // get all <code> elements\n var allCodeBlocksElements = $(\"pre\");\n allCodeBlocksElements.each(function (i) {\n // add different id for each code block\n // target\n var currentId = \"codeblock\" + (i + 1);\n $(this).attr('id', currentId);\n var lang = $(this).attr(\"class\").split(\" \")[1].substring(9).toUpperCase();\n\n if (lang == \"ERS\") {\n lang = $(this).attr(\"class\").split(\" \")[0].substring(9).toUpperCase();\n if (lang == \"MERMAID2\") {\n text = $(this).text();\n $(this).before('<summary class=\"render-expand\" aria-haspopup=\"dialog\" role=\"button\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"octicon\" style=\"display:inline-block;vertical-align:text-bottom\"><path fill-rule=\"evenodd\" d=\"M3.72 3.72a.75.75 0 011.06 1.06L2.56 7h10.88l-2.22-2.22a.75.75 0 011.06-1.06l3.5 3.5a.75.75 0 010 1.06l-3.5 3.5a.75.75 0 11-1.06-1.06l2.22-2.22H2.56l2.22 2.22a.75.75 0 11-1.06 1.06l-3.5-3.5a.75.75 0 010-1.06l3.5-3.5z\"></path></svg></summary>');\n $(this).after('<div class=\"mermaid2\">' + text + '</div>');\n } else {\n $(this).wrap('<div class=\"highlight\"></div>');\n $(this).parent().wrap('<div class=\"' + $(this).attr(\"class\").split(\" \")[0] + ' highlighter-rouge\"></div>');\n $(this).addClass(\"highlight\");\n //trigger\n var clipButton = '<div class=\"copy-container\"><span class=\"lang\">' + lang + '</span><button class=\"btn\" data-bs-original-title=\"Copy\" aria-label=\"Copy\" data-clipboard-target=\"#' + currentId + '\"><svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-copy\"></use></svg><span class=\"tooltip unfinish\">Copy</span><span class=\"tooltip finish\">Copied</span></button></div>';\n $(this).before(clipButton);\n }\n } else {\n //trigger\n var clipButton = '<div class=\"copy-container\"><span class=\"lang\">' + lang + '</span><button class=\"btn\" data-bs-original-title=\"Copy\" aria-label=\"Copy\" data-clipboard-target=\"#' + currentId + '\"><svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-copy\"></use></svg><span class=\"tooltip unfinish\">Copy</span><span class=\"tooltip finish\">Copied</span></button></div>';\n $(this).before(clipButton);\n }\n });\n\n var clipboard = new ClipboardJS('.btn');\n clipboard.on('success', function (e) {\n e.clearSelection();\n });\n\n $(\".markdown-body .btn\").hover(function () {\n $(this).find(\".tooltip.unfinish\").addClass(\"active\");\n }, function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n });\n\n $(\".markdown-body .btn\").click(function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n var finish = $(this).find(\".tooltip.finish\")\n finish.addClass(\"active\");\n setTimeout(function () {\n finish.removeClass(\"active\");\n }, 500);\n });\n\n /**\n * Expand the mermaid figure\n */\n $(\"summary\").click(function (event) {\n var text = $(this).next().children().text();\n $(\".modal .modal-content .container\").html('<div class=\"mermaid2\">' + text + '</div>')\n mermaid.init(undefined, $('.modal .modal-content .mermaid2'));\n $('.modal').css(\"visibility\", \"visible\");\n $(\".modal .modal-content\").click(function (event) {\n if (event.target.classList.contains(\"close\")) {\n $(\".modal\").css(\"visibility\", \"hidden\");\n }\n event.stopPropagation();\n });\n event.stopPropagation();\n });\n\n $(document).click(function () {\n $(\".modal\").css(\"visibility\", \"hidden\");\n });\n\n /**\n * Error image loading\n */\n document.addEventListener('error', function (e) {\n if (e.target.nodeName == 'IMG') { e.target.src = baseurl + '/assets/img/placeholder.webp'; }\n }, true);\n\n /**\n * Alive time\n */\n\n var alivetime_days = $(\".alivetime_days\")\n var alivetime_hours = $(\".alivetime_hours\")\n var alivetime_minutes = $(\".alivetime_minutes\")\n var alivetime_seconds = $(\".alivetime_seconds\")\n function alive_time() {\n var alivestart = $(\"meta[name='alivestart']\").attr('content');\n window.setTimeout(alive_time, 1000);\n // Start at\n BirthDay = new Date(alivestart);\n // Now at\n today = new Date();\n timeold = (today.getTime() - BirthDay.getTime());\n secondsold = Math.floor(timeold / 1000);\n e_daysold = timeold / (24 * 60 * 60 * 1000);\n daysold = Math.floor(e_daysold);\n e_hrsold = (e_daysold - daysold) * 24;\n hrsold = Math.floor(e_hrsold);\n e_minsold = (e_hrsold - hrsold) * 60;\n minsold = Math.floor(e_minsold)\n seconds = Math.floor((e_minsold - minsold) * 60);\n alivetime_days.html(daysold)\n alivetime_hours.html(hrsold)\n alivetime_minutes.html(minsold)\n alivetime_seconds.html(seconds)\n // alivetime.html(daysold + \" 天 \" + hrsold + \" 小时 \" + minsold + \" 分 \" + seconds + \" 秒\");\n }\n alive_time();\n\n /**\n * Calendar plugin\n **/\n today = new Date();\n year = today.getFullYear();\n month = today.getMonth() + 1;\n day = today.getDate();\n endDay = year + '-' + (\"0\" + month).slice(-2) + '-' + (\"0\" + day).slice(-2);\n locales = { \"zh-Hans\": \"zh\", \"zh-Hant\": \"zh-tw\", \"en\": \"en\", \"ja\": \"ja\" };\n if ($(\"#cal-heatmap\").length > 0) {\n const cal = new CalHeatmap();\n axios.get(baseurl + \"/stats.json\").then(res => {\n stats_data = res.data;\n cal.paint(\n {\n itemSelector: \"#cal-heatmap\",\n domain: {\n type: 'month',\n gutter: 5,\n label: {\n text: 'MMM',\n textAlign: 'start',\n position: 'top'\n }\n },\n subDomain: {\n type: 'ghDay',\n gutter: 5,\n width: 13,\n height: 13,\n radius: 3,\n label: null\n },\n date: {\n start: new Date(dayjs(endDay).subtract(2, 'month')),\n max: new Date(endDay),\n highlight: [new Date(endDay)],\n locale: locales[lang]\n },\n range: 3,\n data: {\n source: stats_data.calendar,\n x: 'date',\n y: 'count',\n },\n scale: {\n color: {\n type: 'threshold',\n // range: ['#b0f5e5', '#35f2c6', '#0fbdb4', '#077485'],\n range: ['#9be9a8', '#40c463', '#30a14e', '#216e39'],\n domain: [4, 6, 8]\n }\n }\n },\n [\n [\n Tooltip,\n {\n text: function (date, value, dayjsDate) {\n if (value == 1) {\n return value + ' contribution on ' + dayjsDate.format('YYYY-MM-DD');\n }\n return (\n (value ? value + ' contributions' : 'No contribution') + ' on ' + dayjsDate.format('YYYY-MM-DD')\n );\n },\n },\n ],\n [\n LegendLite,\n {\n includeBlank: true,\n itemSelector: \"#ex-ghDay-legend\",\n radius: 3,\n width: 10,\n height: 10,\n gutter: 2,\n },\n ],\n [\n CalendarLabel,\n {\n width: 30,\n textAlign: 'start',\n text: () => dayjs.weekdaysShort().map((d, i) => (i % 2 == 0 ? '' : d)),\n padding: [25, 0, 0, 0],\n },\n ],\n ]\n );\n $(\"#ex-ghDay-prev\").on('click', function (e) {\n e.preventDefault();\n cal.previous();\n });\n $(\"#ex-ghDay-next\").on('click', function (e) {\n e.preventDefault();\n cal.next();\n });\n $(\"#ex-ghDay-today\").on('click', function (e) {\n e.preventDefault();\n cal.jumpTo(new Date(endDay));\n });\n });\n }\n if ($(\"#archive-heatmap\").length > 0) {\n postWidth = $(\".post-content\").width()\n if (postWidth >= 633) {\n month = 12\n } else if (postWidth >= 400) {\n month = 8\n } else if (postWidth >= 300) {\n month = 6\n } else {\n month = 3\n }\n\n const cal = new CalHeatmap();\n axios.get(baseurl + \"/stats.json\").then(res => {\n stats_data = res.data;\n cal.paint(\n {\n itemSelector: \"#archive-heatmap\",\n domain: {\n type: 'month',\n gutter: 2,\n label: {\n text: 'MMM',\n textAlign: 'start',\n position: 'top'\n }\n },\n subDomain: {\n type: 'ghDay',\n gutter: 2,\n width: 9,\n height: 9,\n radius: 2,\n },\n date: {\n start: new Date(dayjs(endDay).subtract(month - 1, 'month')),\n max: new Date(endDay),\n highlight: [new Date(endDay)],\n locale: locales[lang]\n },\n range: month,\n data: {\n source: stats_data.calendar,\n x: 'date',\n y: 'count',\n },\n scale: {\n color: {\n type: 'threshold',\n // range: ['#b0f5e5', '#35f2c6', '#0fbdb4', '#077485'],\n range: ['#9be9a8', '#40c463', '#30a14e', '#216e39'],\n domain: [4, 6, 8]\n }\n }\n },\n [\n [\n Tooltip,\n {\n text: function (date, value, dayjsDate) {\n if (value == 1) {\n return value + ' contribution on ' + dayjsDate.format('YYYY-MM-DD');\n }\n return (\n (value ? value + ' contributions' : 'No contribution') + ' on ' + dayjsDate.format('YYYY-MM-DD')\n );\n },\n },\n ],\n [\n LegendLite,\n {\n includeBlank: true,\n itemSelector: \"#ex-ghDay-legend2\",\n radius: 3,\n width: 10,\n height: 10,\n gutter: 2,\n },\n ],\n [\n CalendarLabel,\n {\n width: 30,\n textAlign: 'start',\n text: () => dayjs.weekdaysShort().map((d, i) => (i % 2 == 0 ? '' : d)),\n padding: [25, 0, 0, 0],\n },\n ],\n ]\n );\n $(\"#ex-ghDay-prev2\").on('click', function (e) {\n e.preventDefault();\n cal.previous();\n });\n $(\"#ex-ghDay-next2\").on('click', function (e) {\n e.preventDefault();\n cal.next();\n });\n $(\"#ex-ghDay-today2\").on('click', function (e) {\n e.preventDefault();\n cal.jumpTo(new Date(endDay));\n });\n });\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))"],"names":["$","document","ready","body","addEventListener","passive","nav","baseurl","attr","lang","logo","themeStyle","css","getCookie","removeClass","addClass","on","setCookie","wrap","e","slideToggle","slideUp","stopPropagation","not","this","children","toggleClass","window","width","headerHeight","header","outerHeight","navText","find","scFlag","scrollTop","scroll","navClassName","hasClass","clickTOC","clickSubmenu","Search","fn","delay","timer","input","result","focus","show","keyup","autoComplete","ctx","args","arguments","clearTimeout","setTimeout","apply","click","target","id","className","hide","locateCatelogList","alis","sidebar_alis","scroll_height","i","length","offset","top","cname","name","ca","cookie","split","c","trim","indexOf","substring","cvalue","exdays","d","Date","setTime","getTime","expires","toGMTString","changeMode","mode","DISQUS","reset","reload","bind","animate","each","n","height","rn","fadeIn","img","container","imgHeight","containerHeight","marginLeft","marginTop","postCover","removeAttr","total","parseInt","val","current","baseUrl","link_html","j","html","pagination","prototype","keywords","value","toLowerCase","jsonfile","getJSON","done","data","item","title","tags","url","hour","getHours","nightMode","str","txt","getSelection","toString","location","href","clipboardData","originalEvent","setData","preventDefault","currentId","toUpperCase","text","before","after","parent","clipButton","ClipboardJS","clearSelection","hover","finish","event","next","mermaid","init","undefined","classList","contains","nodeName","src","alivetime_days","alivetime_hours","alivetime_minutes","alivetime_seconds","alive_time","alivestart","BirthDay","today","timeold","secondsold","Math","floor","e_daysold","daysold","e_hrsold","hrsold","e_minsold","minsold","seconds","year","getFullYear","month","getMonth","day","getDate","endDay","slice","locales","cal","CalHeatmap","axios","get","then","res","stats_data","paint","itemSelector","domain","type","gutter","label","textAlign","position","subDomain","radius","date","start","dayjs","subtract","max","highlight","locale","range","source","calendar","x","y","scale","color","Tooltip","dayjsDate","format","LegendLite","includeBlank","CalendarLabel","weekdaysShort","map","padding","previous","jumpTo","postWidth","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","getter","__esModule","a","definition","key","o","Object","defineProperty","enumerable","obj","prop","hasOwnProperty","call"],"sourceRoot":""}
1
+ {"version":3,"file":"app.min.js","mappings":"sBAAAA,EAAEC,UAAUC,OAAM,WACdD,SAASE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AAoBrL,EAAKyL,IACxB,IAAIE,EAASF,GAAUA,EAAOG,WAC7B,IAAOH,EAAiB,QACxB,IAAM,EAEP,OADAJ,EAAoBnM,EAAEyM,EAAQ,CAAEE,EAAGF,IAC5BA,CAAM,ECLdN,EAAoBnM,EAAI,CAACsM,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMvB,IAAKkB,EAAWC,IAE1E,ECNDV,EAAoBW,EAAI,CAACI,EAAKC,IAAUJ,OAAO5K,UAAUiL,eAAeC,KAAKH,EAAKC,G","sources":["webpack://jekyll-theme-h2o-ac/./dev/js/index.js","webpack://jekyll-theme-h2o-ac/webpack/bootstrap","webpack://jekyll-theme-h2o-ac/webpack/runtime/compat get default export","webpack://jekyll-theme-h2o-ac/webpack/runtime/define property getters","webpack://jekyll-theme-h2o-ac/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["$(document).ready(function () {\n document.body.addEventListener('touchstart', function () { }, { passive: true });\n\n var nav = $('.g-nav');\n var baseurl = $(\"meta[property='og:baseurl']\").attr('content');\n var lang = $(\"meta[property='og:lang']\").attr('content');\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n\n /**\n * Cookie Tips\n */\n var cookieconsent_status = getCookie(\"cookieconsent_status\");\n if (cookieconsent_status) {\n $('.cookie-tip').removeClass('active');\n } else {\n $('.cookie-tip').addClass('active');\n }\n $('#accept-tos').on('click', function () {\n setCookie(\"cookieconsent_status\", \"allow\", 365);\n $('.cookie-tip').removeClass('active');\n });\n\n /**\n * Fix table for small screens\n */\n $(\"table\").wrap(\"<div class='table-area'></div>\");\n\n\n /**\n * Responsive Navigation\n */\n $('#menu-toggle').on('click', function (e) {\n var duration = 200;\n nav.slideToggle(duration);\n $(document).on('click', function () {\n nav.slideUp(duration);\n });\n e.stopPropagation();\n });\n\n nav.on('click', function (e) {\n e.stopPropagation();\n });\n\n $(\".g-nav li.dropdown\").on(\"click\", function () {\n $(\".g-nav li.dropdown\").not($(this)).children(\"ul.dropdown-menu\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").not($(this)).children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(this).children(\"a.dropdown-toggle\").toggleClass(\"show\");\n $(this).children(\"ul.dropdown-menu\").toggleClass(\"show\");\n });\n $(document).on(\"click\", function () {\n $(\".g-nav li.dropdown\").children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").children(\"ul.dropdown-menu\").removeClass(\"show\");\n });\n\n /**\n * Header Bar\n */\n if ($(window).width() > 695) {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var navText = nav.find('a');\n var scFlag = $(document).scrollTop();\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n var navClassName = 'nav-' + themeStyle;\n if (scrollTop > headerHeight) {\n if (scrollTop > 3 * headerHeight) {\n header.addClass('headerUp');\n }\n header.css({\n 'background-color': 'rgba(255, 255, 255, .98)',\n 'box-shadow': '0 1px 12px rgba(0, 0, 0, .08)'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.addClass('color-f-gray');\n nav.addClass(navClassName);\n } else {\n header.removeClass('headerUp');\n // console.log(\"rm up\");\n $('#bttb').removeClass(\"active\");\n header.css({\n 'background-color': 'transparent',\n 'box-shadow': 'none'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.removeClass('color-f-gray');\n nav.removeClass(navClassName);\n }\n\n // scroll action\n if (scFlag > scrollTop) {\n header.addClass('headerDown');\n if (header.hasClass('headerUp')) {\n $('#bttb').addClass(\"active\");\n }\n } else {\n header.removeClass('headerDown');\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n } else {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var scFlag = $(document).scrollTop();\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n\n if (scrollTop < 100) {\n $('#bttb').removeClass(\"active\");\n }\n\n // scroll action\n if (scFlag > scrollTop && scFlag > 5) {\n $('#bttb').addClass(\"active\");\n } else {\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n }\n\n /**\n * List for contents\n */\n function clickTOC() {\n $('.table-of-contents').toggleClass(\"active\");\n $('#tools .tool.toc .b1').toggleClass(\"active\");\n $('#tools .tool.toc .b2').toggleClass(\"active\");\n $('.submenu').removeClass(\"active\");\n $('#tools .tool.collection .b1').addClass(\"active\");\n $('#tools .tool.collection .b2').removeClass(\"active\");\n }\n function clickSubmenu() {\n $('.submenu').toggleClass(\"active\");\n $('#tools .tool.collection .b1').toggleClass(\"active\");\n $('#tools .tool.collection .b2').toggleClass(\"active\");\n $('.table-of-contents').removeClass(\"active\");\n $('#tools .tool.toc .b1').addClass(\"active\");\n $('#tools .tool.toc .b2').removeClass(\"active\");\n }\n $('#tools .tool.toc').bind('click', function () {\n clickTOC()\n });\n $('#tools .tool.collection').bind('click', function () {\n clickSubmenu()\n });\n $(\".table-of-contents\").on('click', function () {\n clickTOC()\n });\n $(\".submenu\").on('click', function () {\n clickSubmenu()\n });\n\n\n /**\n * Back To Top Button\n */\n $('.bttb').bind('click', function () {\n $('html,body').animate({ scrollTop: 0 }, function () {\n $('#bttb').removeClass(\"active\");\n });\n });\n\n /**\n * Post Cover Resize\n */\n function postCover(img, container) {\n var imgWidth = img.width();\n var containerWidth = container.width();\n var imgHeight = img.height();\n var containerHeight = container.height();\n\n if (imgHeight < containerHeight) {\n img.css({\n 'width': 'auto',\n 'height': '100%'\n });\n imgWidth = img.width();\n containerWidth = container.width();\n var marginLeft = (imgWidth - containerWidth) / 2;\n img.css('margin-left', '-' + marginLeft + 'px');\n } else {\n var marginTop = (containerHeight - imgHeight) / 2;\n img.css('margin-top', marginTop + 'px');\n }\n\n img.fadeIn();\n }\n\n /**\n * The Post Navigator\n */\n $('.read-next-item section').each(function () {\n var n = $(this).height();\n var rn = $('.read-next-item').height();\n $(this).css('margin-top', (rn - n) / 2 + 'px');\n $(this).fadeIn();\n });\n\n $('.read-next-item img').each(function () {\n postCover($(this), $('.read-next-item'));\n // $(this).addClass(\"lazyload\");\n $(this).attr('data-src', $(this).attr('src')).removeAttr('src').addClass(\"lazyload\");\n });\n\n /**\n * Pagination\n */\n function pagination() {\n var total = parseInt($('#total_pages').val());\n var current = parseInt($('#current_pages').val());\n var baseUrl = $('#base_url').val();\n var limit = 3;\n\n var link_html = '';\n\n for (var i = current - limit; i < current; i++) {\n if (i > 0 && i !== 1) {\n link_html += '<a href=\"' + baseUrl + 'page' + i + '/index.html\" class=\"page-link page-num\">' + i + '</a>';\n } else if (i === 1) {\n link_html += '<a href=\"' + baseUrl + '\" class=\"page-link page-num\">' + i + '</a>';\n }\n }\n\n link_html += '<span class=\"page-link page-num active\">' + current + '</span>';\n\n for (var j = current + 1; j <= current + limit; j++) {\n if (j <= total) {\n link_html += '<a href=\"' + baseUrl + 'page' + j + '/index.html\" class=\"page-link page-num\">' + j + '</a>';\n }\n }\n\n $('#page-link-container').html(link_html);\n }\n pagination();\n\n /**\n * Search\n */\n function Search() {\n var self = this;\n var input = $('#search_input');\n var result = $('.search_result');\n\n input.focus(function () {\n $('.icon-search').css('color', '#3199DB');\n result.show();\n });\n\n input.keyup(debounce(this.autoComplete));\n\n $(document).click(function (e) {\n if (e.target.id === 'search_input' || e.target.className === 'search_result' || e.target.className === 'search_item') {\n return;\n }\n $('.icon-search').css('color', '#CAD3DC');\n result.hide();\n });\n }\n\n Search.prototype.autoComplete = function () {\n var keywords = this.value.toLowerCase();\n\n if (keywords.length) {\n $('.icon-search').css('color', '#3199DB');\n } else {\n $('.icon-search').css('color', '#CAD3DC');\n }\n\n var jsonfile = baseurl + '/assets/search.json';\n $.getJSON(jsonfile).done(function (data) {\n var html = '';\n for (var i in data) {\n var item = data[i];\n var title = item.title;\n var tags = item.tags;\n var url = item.url;\n\n var k = title + tags;\n if (keywords !== '' && k.toLowerCase().indexOf(keywords) >= 0) {\n html += '<a class=\"search_item\" href=\"' + item.url + '\">' + item.title + '</a>';\n }\n }\n $('.search_result').html(html);\n });\n };\n\n function debounce(fn, delay) {\n var timer;\n delay = delay || 120;\n\n return function () {\n var ctx = this;\n var args = arguments;\n var later = function () {\n fn.apply(ctx, args);\n };\n clearTimeout(timer);\n timer = setTimeout(later, delay);\n };\n }\n\n new Search();\n\n /**\n * Night mode\n */\n function nightMode() {\n var el = $('body');\n var className = 'night-mode';\n\n var date = new Date();\n var hour = date.getHours();\n\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n // console.log(mode);\n if (hour <= 6 || hour >= 18) {\n // console.log(\"Start night mode\");\n setCookie(\"mode\", \"night\", 1)\n }\n // el.addClass(className);\n }\n }\n\n if ($('#nm-switch').val() === 'true') {\n nightMode();\n }\n\n /**\n * Copy and copyright\n */\n function setClipboardData(str) {\n str += '\\n\\n著作权归作者所有。\\n商业转载请联系作者获得授权,非商业转载请注明出处。\\n原文: ' + location.href;\n $('.post-content').on('copy', function (e) {\n var data = window.clipboardData || e.originalEvent.clipboardData;\n data.setData('text/plain', str);\n e.preventDefault();\n });\n }\n $('.post-content').on('mouseup', function (e) {\n var txt = window.getSelection();\n if (txt.toString().length >= 30) {\n setClipboardData(txt);\n }\n });\n\n /**\n * TOC highlight with the corresponding content\n */\n function locateCatelogList() {\n /*获取文章目录集合,可通过:header过滤器*/\n var alis = $('article :header');\n /*获取侧边栏目录列表集合**/\n var sidebar_alis = $('.table-of-contents a').parent();\n /*获取滚动条到顶部的距离*/\n var scroll_height = $(window).scrollTop();\n if (scroll_height > 0) {\n $('.g-header').addClass('headerUp');\n }\n for (var i = 0; i < alis.length; i++) {\n /*获取锚点集合中的元素分别到顶点的距离*/\n var a_height = $(alis[i]).offset().top - 100;\n if (a_height < scroll_height) {\n /*高亮显示*/\n $(sidebar_alis).removeClass('active');\n $(sidebar_alis[i]).addClass('active');\n a_height = $(\".toc-body li.active\").offset().top - $(\".toc-header h2\").offset().top\n var t_height = $(\".toc-body li.active\").offset().top-$(\".toc-body li:first-child\").offset().top\n if (a_height < 22) {\n $(\".toc-body\").scrollTop(t_height-350);\n }\n if (a_height > 350) {\n $(\".toc-body\").scrollTop(t_height-72);\n }\n }\n }\n }\n if($(\".toc-body\").length >0){\n $($('.table-of-contents a').parent()[0]).addClass('active');\n locateCatelogList();\n $(window).bind('scroll', locateCatelogList);\n }\n\n /**\n * Day/Night mode switch button\n */\n function getCookie(cname) {\n var name = cname + \"=\";\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i].trim();\n if (c.indexOf(name) === 0) return c.substring(name.length, c.length);\n }\n return \"\";\n }\n\n function setCookie(cname, cvalue, exdays) {\n var d = new Date();\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\n var expires = \"expires=\" + d.toGMTString();\n if (!baseurl) {\n document.cookie = cname + \"=\" + cvalue + \"; path=/; \" + expires;\n } else {\n document.cookie = cname + \"=\" + cvalue + \"; path=\" + baseurl + \"; \" + expires;\n }\n }\n\n var mode = getCookie(\"mode\");\n // console.log(mode);\n if (mode == \"night\") {\n $(\".g-nav li.mode .night\").addClass(\"active\");\n $(\"#mode-toggle .icon-night\").addClass(\"active\");\n $(\"body\").addClass(\"night-mode\");\n $(\".icon.up.night\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n } else {\n $(\".g-nav li.mode .day\").addClass(\"active\");\n $(\"#mode-toggle .icon-day\").addClass(\"active\");\n $(\"body\").removeClass(\"night-mode\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.list.day\").toggleClass(\"active\");\n }\n\n function changeMode() {\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else if (mode == \"day\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else {\n setCookie(\"mode\", \"day\", 1)\n $(\"body\").removeClass(\"night-mode\");\n }\n // console.log(mode + \"-->\" + getCookie(\"mode\"));\n if ($(\"#disqus_thread\").length > 0) {\n DISQUS.reset({\n reload: true\n });\n }\n $(\".g-nav li.mode .icon\").toggleClass(\"active\");\n $(\"#mode-toggle .icon\").toggleClass(\"active\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.up.night\").toggleClass(\"active\");\n if ($('.table-of-contents').css('visibility') == \"visible\") {\n $(\".icon.exit.day\").toggleClass(\"active\");\n $(\".icon.exit.night\").toggleClass(\"active\");\n } else {\n $(\".icon.list.day\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n }\n }\n\n $(\".g-nav li.mode\").click(function () {\n changeMode();\n });\n\n $(\"#mode-toggle\").click(function () {\n changeMode();\n });\n\n /**\n * Copy code blocks\n */\n // get all <code> elements\n var allCodeBlocksElements = $(\"pre\");\n allCodeBlocksElements.each(function (i) {\n // add different id for each code block\n // target\n var currentId = \"codeblock\" + (i + 1);\n $(this).attr('id', currentId);\n var lang = $(this).attr(\"class\").split(\" \")[1].substring(9).toUpperCase();\n\n if (lang == \"ERS\") {\n lang = $(this).attr(\"class\").split(\" \")[0].substring(9).toUpperCase();\n if (lang == \"MERMAID2\") {\n text = $(this).text();\n $(this).before('<summary class=\"render-expand\" aria-haspopup=\"dialog\" role=\"button\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"currentColor\" class=\"octicon\" style=\"display:inline-block;vertical-align:text-bottom\"><path fill-rule=\"evenodd\" d=\"M3.72 3.72a.75.75 0 011.06 1.06L2.56 7h10.88l-2.22-2.22a.75.75 0 011.06-1.06l3.5 3.5a.75.75 0 010 1.06l-3.5 3.5a.75.75 0 11-1.06-1.06l2.22-2.22H2.56l2.22 2.22a.75.75 0 11-1.06 1.06l-3.5-3.5a.75.75 0 010-1.06l3.5-3.5z\"></path></svg></summary>');\n $(this).after('<div class=\"mermaid2\">' + text + '</div>');\n } else {\n $(this).wrap('<div class=\"highlight\"></div>');\n $(this).parent().wrap('<div class=\"' + $(this).attr(\"class\").split(\" \")[0] + ' highlighter-rouge\"></div>');\n $(this).addClass(\"highlight\");\n //trigger\n var clipButton = '<div class=\"copy-container\"><span class=\"lang\">' + lang + '</span><button class=\"btn\" data-bs-original-title=\"Copy\" aria-label=\"Copy\" data-clipboard-target=\"#' + currentId + '\"><svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-copy\"></use></svg><span class=\"tooltip unfinish\">Copy</span><span class=\"tooltip finish\">Copied</span></button></div>';\n $(this).before(clipButton);\n }\n } else {\n //trigger\n var clipButton = '<div class=\"copy-container\"><span class=\"lang\">' + lang + '</span><button class=\"btn\" data-bs-original-title=\"Copy\" aria-label=\"Copy\" data-clipboard-target=\"#' + currentId + '\"><svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-copy\"></use></svg><span class=\"tooltip unfinish\">Copy</span><span class=\"tooltip finish\">Copied</span></button></div>';\n $(this).before(clipButton);\n }\n });\n\n var clipboard = new ClipboardJS('.btn');\n clipboard.on('success', function (e) {\n e.clearSelection();\n });\n\n $(\".markdown-body .btn\").hover(function () {\n $(this).find(\".tooltip.unfinish\").addClass(\"active\");\n }, function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n });\n\n $(\".markdown-body .btn\").click(function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n var finish = $(this).find(\".tooltip.finish\")\n finish.addClass(\"active\");\n setTimeout(function () {\n finish.removeClass(\"active\");\n }, 500);\n });\n\n /**\n * Expand the mermaid figure\n */\n $(\"summary\").click(function (event) {\n var text = $(this).next().children().text();\n $(\".modal .modal-content .container\").html('<div class=\"mermaid2\">' + text + '</div>')\n mermaid.init(undefined, $('.modal .modal-content .mermaid2'));\n $('.modal').css(\"visibility\", \"visible\");\n $(\".modal .modal-content\").click(function (event) {\n if (event.target.classList.contains(\"close\")) {\n $(\".modal\").css(\"visibility\", \"hidden\");\n }\n event.stopPropagation();\n });\n event.stopPropagation();\n });\n\n $(document).click(function () {\n $(\".modal\").css(\"visibility\", \"hidden\");\n });\n\n /**\n * Error image loading\n */\n document.addEventListener('error', function (e) {\n if (e.target.nodeName == 'IMG') { e.target.src = baseurl + '/assets/img/placeholder.webp'; }\n }, true);\n\n /**\n * Alive time\n */\n\n var alivetime_days = $(\".alivetime_days\")\n var alivetime_hours = $(\".alivetime_hours\")\n var alivetime_minutes = $(\".alivetime_minutes\")\n var alivetime_seconds = $(\".alivetime_seconds\")\n function alive_time() {\n var alivestart = $(\"meta[name='alivestart']\").attr('content');\n window.setTimeout(alive_time, 1000);\n // Start at\n BirthDay = new Date(alivestart);\n // Now at\n today = new Date();\n timeold = (today.getTime() - BirthDay.getTime());\n secondsold = Math.floor(timeold / 1000);\n e_daysold = timeold / (24 * 60 * 60 * 1000);\n daysold = Math.floor(e_daysold);\n e_hrsold = (e_daysold - daysold) * 24;\n hrsold = Math.floor(e_hrsold);\n e_minsold = (e_hrsold - hrsold) * 60;\n minsold = Math.floor(e_minsold)\n seconds = Math.floor((e_minsold - minsold) * 60);\n alivetime_days.html(daysold)\n alivetime_hours.html(hrsold)\n alivetime_minutes.html(minsold)\n alivetime_seconds.html(seconds)\n // alivetime.html(daysold + \" 天 \" + hrsold + \" 小时 \" + minsold + \" 分 \" + seconds + \" 秒\");\n }\n alive_time();\n\n /**\n * Calendar plugin\n **/\n var calendarScale = $(\"meta[property='calendar-scale']\").attr('content');\n var calendarScheme = $(\"meta[property='calendar-scheme']\").attr('content');\n var calendarColor = $(\"meta[property='calendar-color']\").attr('content');\n var cal_color = { 'type': 'threshold', 'domain': [4, 6, 8] };\n var d3Colors = ['blues', 'greens', 'greys', 'oranges', 'purples', 'reds', 'bugn', 'bupu', 'gnbu', 'orrd', 'pubu', 'pubugn', 'purd', 'rdpu', 'ylgn', 'ylgnbu', 'ylorbr', 'ylorrd', 'cividis', 'inferno', 'magma', 'plasma', 'viridis', 'cubehelix', 'turbo', 'warm', 'cool', 'brbg', 'prgn', 'piyg', 'puor', 'rdbu', 'rdgy', 'rdylbu', 'rdylgn', 'spectral', 'burd', 'buylrd', 'rainbow', 'sinebow']\n if (calendarScheme !== \"null\") {\n if (d3Colors.includes(calendarScheme)) {\n cal_color.scheme = calendarScheme\n } else {\n cal_color.range = ['#9be9a8', '#40c463', '#30a14e', '#216e39']\n console.log(\"'\" + calendarScheme + \"' is not supported. Please check it in https://cal-heatmap.com/!\")\n }\n } else if (calendarColor !== \"null\") {\n cal_color.range = calendarColor\n } else {\n cal_color.range = ['#9be9a8', '#40c463', '#30a14e', '#216e39']\n }\n today = new Date();\n year = today.getFullYear();\n month = today.getMonth() + 1;\n day = today.getDate();\n endDay = year + '-' + (\"0\" + month).slice(-2) + '-' + (\"0\" + day).slice(-2);\n locales = { \"zh-Hans\": \"zh\", \"zh-Hant\": \"zh-tw\", \"en\": \"en\", \"ja\": \"ja\" };\n\n axios.get(baseurl + \"/stats.json\").then(res => {\n stats_data = res.data;\n if ($(\"#cal-heatmap\").length > 0) {\n var cal = new CalHeatmap();\n selectors = {\n 'cal': '#cal-heatmap',\n 'legend': '#ex-ghDay-legend',\n 'prev': '#ex-ghDay-prev',\n 'next': '#ex-ghDay-next',\n 'today': '#ex-ghDay-today',\n }\n cal = makeCalendar(cal, selectors, calendarScale);\n }\n if ($(\"#archive-heatmap\").length > 0) {\n var cal2 = new CalHeatmap();\n selectors2 = {\n 'cal': '#archive-heatmap',\n 'legend': '#ex-ghDay-legend2',\n 'prev': '#ex-ghDay-prev2',\n 'next': '#ex-ghDay-next2',\n 'today': '#ex-ghDay-today2',\n }\n cal2 = makeCalendar(cal2, selectors2, \"day\", \"True\")\n }\n }).catch(function (error) {\n console.log(\"'stats.json' is not found. Calendar will be abnormal. Please make sure it exits.\");\n });\n\n\n function makeCalendar(cal, selectors, by, archive = \"False\") {\n var paras = {}\n var options = [[\n Tooltip,\n {\n text: function (date, value, dayjsDate) {\n if (value == 1) {\n return value + ' contribution on ' + dayjsDate.format(paras.format);\n }\n return (\n (value ? value + ' contributions' : 'No contribution') + ' on ' + dayjsDate.format(paras.format)\n );\n },\n },\n ], [\n LegendLite,\n {\n includeBlank: true,\n itemSelector: selectors.legend,\n radius: 3,\n width: 10,\n height: 10,\n gutter: 2,\n },\n ]]\n if (by == \"month\") {\n const xMonth = function (DateHelper) {\n return {\n name: 'xMonth',\n allowedDomainType: [\"year\"],\n rowsCount: () => 3,\n columnsCount: () => 4,\n mapping: (startTimestamp, endTimestamp) => DateHelper.intervals(\n 'month',\n startTimestamp,\n DateHelper.date(endTimestamp)\n ).map((ts) => ({\n t: ts,\n x: DateHelper.date(ts).month() % 4,\n y: parseInt(DateHelper.date(ts).month() / 4),\n })),\n extractUnit: (ts) => DateHelper.date(ts).startOf('month').valueOf(),\n };\n };\n cal.addTemplates(xMonth);\n var paras = {\n 'format': 'YYYY-MM',\n 'domain': {\n 'type': 'year',\n 'gutter': 5,\n 'label': { 'text': (ts) => dayjs(ts).format(\"YYYY\"), 'align': 'middle' }\n },\n 'subDomain': { 'type': 'xMonth', 'width': 60, 'height': 36, 'gutter': 5, 'radius': 3 },\n 'range': 1,\n };\n var start_date = new Date(dayjs(endDay).startOf('year').add(1, 'month'))\n } else if (by == \"year\") {\n const xYear = function (DateHelper) {\n return {\n name: 'xYear',\n allowedDomainType: [\"year\"],\n rowsCount: () => 1,\n columnsCount: () => 1,\n mapping: (startTimestamp, endTimestamp) => DateHelper.intervals(\n 'year',\n startTimestamp,\n DateHelper.date(endTimestamp)\n ).map((ts, index) => ({\n t: ts,\n x: index,\n y: 0,\n })),\n extractUnit: (ts) => DateHelper.date(ts).startOf('year').valueOf(),\n };\n };\n cal.addTemplates(xYear);\n var paras = {\n 'format': 'YYYY',\n 'domain': { 'type': 'year', 'gutter': 5, 'label': { 'text': 'YYYY', 'align': 'middle' } },\n 'subDomain': { 'type': 'xYear', 'width': 36, 'height': 36, 'gutter': 5, 'radius': 3 },\n 'range': 6,\n };\n if (archive == \"False\") {\n paras.range = parseInt($(\"#cal-heatmap\").width() / 40)\n }\n var start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'year'))\n } else {\n var paras = {\n 'format': 'YYYY-MM-DD',\n 'domain': { 'type': 'month', 'gutter': 5, 'label': { 'text': 'MMM', 'align': 'start' } },\n 'subDomain': { 'type': 'ghDay', 'width': 13, 'height': 13, 'gutter': 5, 'radius': 3 },\n 'range': 3,\n };\n var start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'month'))\n options[2] = [\n CalendarLabel,\n {\n width: 30,\n textAlign: 'start',\n text: () => dayjs.weekdaysShort().map((d, i) => (i % 2 == 0 ? '' : d)),\n padding: [25, 0, 0, 0],\n },\n ];\n }\n if (archive == \"True\") {\n postWidth = $(\".post-content\").width()\n if (postWidth >= 633) {\n paras.range = 12\n } else if (postWidth >= 400) {\n paras.range = 8\n } else if (postWidth >= 300) {\n paras.range = 6\n } else {\n paras.range = 3\n }\n paras.domain.gutter = 2\n paras.subDomain.width = 9\n paras.subDomain.height = 9\n paras.subDomain.gutter = 2\n paras.subDomain.radius = 2\n start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'month'))\n }\n if (by == \"month\") {\n var source_data = stats_data.calendar.by_month\n } else if (by == \"year\") {\n var source_data = stats_data.calendar.by_year\n } else {\n var source_data = stats_data.calendar.by_day\n }\n cal.paint(\n {\n itemSelector: selectors.cal,\n domain: {\n type: paras.domain.type,\n gutter: paras.domain.gutter,\n label: {\n text: paras.domain.label.text,\n textAlign: paras.domain.label.align,\n position: 'top'\n }\n },\n subDomain: {\n type: paras.subDomain.type,\n gutter: paras.subDomain.gutter,\n width: paras.subDomain.width,\n height: paras.subDomain.height,\n radius: paras.subDomain.radius,\n label: null\n },\n date: {\n start: start_date,\n max: new Date(endDay),\n highlight: [new Date(endDay)],\n locale: locales[lang]\n },\n range: paras.range,\n data: { source: source_data, x: 'date', y: 'count' },\n scale: { color: cal_color }\n },\n options\n );\n $(selectors.prev).on('click', function (e) {\n e.preventDefault();\n cal.previous();\n });\n $(selectors.next).on('click', function (e) {\n e.preventDefault();\n cal.next();\n });\n $(selectors.today).on('click', function (e) {\n e.preventDefault();\n cal.jumpTo(new Date(endDay));\n });\n return cal;\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))"],"names":["$","document","ready","body","addEventListener","passive","nav","baseurl","attr","lang","logo","themeStyle","css","getCookie","removeClass","addClass","on","setCookie","wrap","e","slideToggle","slideUp","stopPropagation","not","this","children","toggleClass","window","width","headerHeight","header","outerHeight","navText","find","scFlag","scrollTop","scroll","navClassName","hasClass","clickTOC","clickSubmenu","Search","fn","delay","timer","input","result","focus","show","keyup","autoComplete","ctx","args","arguments","clearTimeout","setTimeout","apply","click","target","id","className","hide","locateCatelogList","alis","sidebar_alis","parent","scroll_height","i","length","a_height","offset","top","t_height","cname","name","ca","cookie","split","c","trim","indexOf","substring","cvalue","exdays","d","Date","setTime","getTime","expires","toGMTString","changeMode","mode","DISQUS","reset","reload","bind","animate","each","n","height","rn","fadeIn","img","container","imgHeight","containerHeight","marginLeft","marginTop","postCover","removeAttr","total","parseInt","val","current","baseUrl","link_html","j","html","pagination","prototype","keywords","value","toLowerCase","jsonfile","getJSON","done","data","item","title","tags","url","hour","getHours","nightMode","str","txt","getSelection","toString","location","href","clipboardData","originalEvent","setData","preventDefault","currentId","toUpperCase","text","before","after","clipButton","ClipboardJS","clearSelection","hover","finish","event","next","mermaid","init","undefined","classList","contains","nodeName","src","alivetime_days","alivetime_hours","alivetime_minutes","alivetime_seconds","alive_time","alivestart","BirthDay","today","timeold","secondsold","Math","floor","e_daysold","daysold","e_hrsold","hrsold","e_minsold","minsold","seconds","calendarScale","calendarScheme","calendarColor","cal_color","makeCalendar","cal","selectors","by","archive","paras","options","Tooltip","date","dayjsDate","format","LegendLite","includeBlank","itemSelector","legend","radius","gutter","xMonth","DateHelper","allowedDomainType","rowsCount","columnsCount","mapping","startTimestamp","endTimestamp","intervals","map","ts","t","x","month","y","extractUnit","startOf","valueOf","addTemplates","dayjs","start_date","endDay","add","xYear","index","range","subtract","CalendarLabel","textAlign","weekdaysShort","padding","postWidth","domain","subDomain","source_data","stats_data","calendar","by_month","by_year","by_day","paint","type","label","align","position","start","max","highlight","locale","locales","source","scale","color","prev","previous","jumpTo","includes","scheme","console","log","year","getFullYear","getMonth","day","getDate","slice","axios","get","then","res","CalHeatmap","cal2","selectors2","catch","error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","getter","__esModule","a","definition","key","o","Object","defineProperty","enumerable","obj","prop","hasOwnProperty","call"],"sourceRoot":""}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-h2o-ac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhonger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-27 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-paginate-v2
@@ -125,26 +125,46 @@ files:
125
125
  - _data/locales/ja.yml
126
126
  - _data/locales/zh-Hans.yml
127
127
  - _data/locales/zh-Hant.yml
128
- - _includes/analytics.html
129
- - _includes/busuanzi.html
130
- - _includes/calendar.html
131
- - _includes/comments.html
132
- - _includes/footer.html
133
- - _includes/head.html
134
- - _includes/header.html
135
- - _includes/mathjax.html
136
- - _includes/mermaid.html
137
- - _includes/pageNav.html
138
- - _includes/paginate-article.html
139
- - _includes/paginate.html
140
- - _includes/post-head.html
141
- - _includes/pwa.html
142
- - _includes/sidebar.html
143
- - _includes/submenu.html
144
- - _includes/toc.html
145
- - _includes/umami.html
146
- - _includes/waline.html
147
- - _includes/webpusher.html
128
+ - _includes/layouts/footer.html
129
+ - _includes/layouts/head.html
130
+ - _includes/layouts/header.html
131
+ - _includes/layouts/metainfo.html
132
+ - _includes/layouts/pageNav.html
133
+ - _includes/layouts/paginate-article.html
134
+ - _includes/layouts/paginate.html
135
+ - _includes/layouts/sidebar.html
136
+ - _includes/layouts/submenu.html
137
+ - _includes/layouts/toc.html
138
+ - _includes/plugins/analytics/analytics.html
139
+ - _includes/plugins/analytics/busuanzi.html
140
+ - _includes/plugins/analytics/google.html
141
+ - _includes/plugins/analytics/umami.html
142
+ - _includes/plugins/comments/comments_block.html
143
+ - _includes/plugins/comments/comments_js.html
144
+ - _includes/plugins/comments/disqus.html
145
+ - _includes/plugins/comments/waline_css.html
146
+ - _includes/plugins/comments/waline_js.html
147
+ - _includes/plugins/i18n.html
148
+ - _includes/plugins/markdown/fancybox_css.html
149
+ - _includes/plugins/markdown/fancybox_js.html
150
+ - _includes/plugins/markdown/hotkeys.html
151
+ - _includes/plugins/markdown/markdown.html
152
+ - _includes/plugins/markdown/mathjax.html
153
+ - _includes/plugins/markdown/mermaid_block.html
154
+ - _includes/plugins/markdown/mermaid_js.html
155
+ - _includes/plugins/markdown/prism_css.html
156
+ - _includes/plugins/markdown/prism_js.html
157
+ - _includes/plugins/others/calendar_block.html
158
+ - _includes/plugins/others/calendar_css.html
159
+ - _includes/plugins/others/calendar_js.html
160
+ - _includes/plugins/others/pwa.html
161
+ - _includes/plugins/others/social_block.html
162
+ - _includes/plugins/others/social_css.html
163
+ - _includes/plugins/others/social_js.html
164
+ - _includes/plugins/others/webpusher.html
165
+ - _includes/plugins/search/docsearch_css.html
166
+ - _includes/plugins/search/docsearch_js.html
167
+ - _layouts/404.html
148
168
  - _layouts/archives.html
149
169
  - _layouts/blog.html
150
170
  - _layouts/categories.html
@@ -1,53 +0,0 @@
1
- {% if page.comments.disqus %}
2
- <script>
3
- /**
4
- * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
5
- * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
6
- /*
7
- var disqus_config = function () {
8
- this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
9
- this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
10
- };
11
- */
12
- (function() { // DON'T EDIT BELOW THIS LINE
13
- var d = document, s = d.createElement('script');
14
- s.src = '{{ site.comments.disqus_url }}';
15
- s.setAttribute('data-timestamp', +new Date());
16
- (d.head || d.body).appendChild(s);
17
- })();
18
-
19
- </script>
20
- {% endif %}
21
-
22
- <script>
23
- $(document).ready(function(){
24
- {% if page.comments.waline %}
25
- Waline.init({
26
- el: '#waline',
27
- serverURL: '{{ site.comments.waline_url }}',
28
- reaction: {{ site.comments.waline_reaction }},
29
- comment: true,
30
- locale: {{ site.comments.waline_locale }}
31
- });
32
- {% endif %}
33
-
34
- if($("#comments-switch").length > 0){
35
- var comment_status = $("#cmn-toggle-4")[0].checked;
36
- if(comment_status){
37
- $("#waline").addClass("active");
38
- }else {
39
- $("#disqus_thread").addClass("active");
40
- }
41
- $("#cmn-toggle-4").click(function(){
42
- $("#disqus_thread").toggleClass("active");
43
- $("#waline").toggleClass("active");
44
- })
45
- }else {
46
- if($("#disqus_thread").length > 0) {
47
- $("#disqus_thread").addClass("active");
48
- }else if($("#waline").length > 0) {
49
- $("#waline").addClass("active");
50
- }
51
- }
52
- })
53
- </script>
data/_includes/head.html DELETED
@@ -1,51 +0,0 @@
1
- <head>
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
5
- <meta name="author" content="{{ site.author }}">
6
- <meta name="description" content="{{ site.description }}">
7
- <meta name="keywords" content="{{ site.keyword }}">
8
- <!-- Open Graph -->
9
- <meta property="og:title" content="{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.title }}{% endif %}">
10
- <meta property="og:type" content="website">
11
- <meta property="og:url" content="{{ page.url | prepend: site.url }}">
12
- <meta property="og:baseurl" content="{{ site.baseurl }}">
13
- <meta property="og:description" content="{{ site.description }}">
14
- <meta property="og:site_name" content="{{ site.title }}">
15
- <meta property="og:gray" content="{{ site.gray }}">
16
- <meta property="og:lang" content="{{ lang }}">
17
- {% if site.alivetime %}
18
- <meta name="alivestart" content="{{ site.alivestart }}">
19
- {% endif %}
20
- {% if site.google_search %}
21
- <meta name="google-site-verification" content="{{ site.google_search }}" />
22
- {% endif %}
23
- <meta name="theme-color" content="{{ site.pwa.color }}" />
24
- <link rel="manifest" href="{{ "/manifest.json" | prepend: site.baseurl }}" />
25
- <link rel="apple-touch-icon" href="{{ "/assets/img/touch/apple-touch-icon.png" | prepend: site.baseurl }}" />
26
- <link rel="Shortcut Icon" href="{{ site.favicon | prepend: site.baseurl }}">
27
- <link rel="icon" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
28
- <link rel="bookmark" href="{{ site.favicon | prepend: site.baseurl }}" type="image/x-icon" />
29
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.min.css" async>
30
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
31
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5.2.0/github-markdown-light.min.css">
32
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/css/share.min.css">
33
- {% assign prisms1 = "coy,dark,funky,okaidia,solarizedlight,tomorrow,twilight" | split: "," %}
34
- {% assign prisms2 = "a11y-dark,atom-dark,base16-ateliersulphurpool.light,cb,coldark-cold,coy-without-shadows,darcula,duotone-dark,duotone-earth,duotone-light,dutone-sea,dutone-space,ghcolors,gruvbox-dark,gruvbox-light,holi-theme,hopscotch,lucario,material-dark,material-light,material-oceanic,night-owl,nord,one-dark,one-light,pojoaque,shades-of-purple,solarized-dark-atom,synthwave84,vs,vsc-dark-plus,xonokai,z-touch" | split: "," %}
35
- {% if prisms1 contains site.prism.theme %}
36
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism-{{site.prism.theme}}.min.css" />
37
- {% else if prisms2 contains site.prism.theme %}
38
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prism-themes@1.9.0/themes/prism-{{site.prism.theme}}.min.css" />
39
- {% else %}
40
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.min.css">
41
- {% endif %}
42
- {% if site.prism.line_numbers %}
43
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/line-numbers/prism-line-numbers.min.css">
44
- {% endif %}
45
- {% if site.calendar %}
46
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cal-heatmap@4.2.4/dist/cal-heatmap.min.css">
47
- {% endif %}
48
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.css" />
49
- <link rel="stylesheet" href="{{ "/assets/css/app.min.css" | prepend: site.baseurl }}">
50
- <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
51
- </head>
@@ -1,12 +0,0 @@
1
- {% if page.mermaid or site.mermaid %}
2
- <script src="https://cdn.jsdelivr.net/npm/mermaid@9.1.6/dist/mermaid.min.js"></script>
3
- <script>
4
- $(document).ready(function (){
5
- mermaid.initialize({
6
- startOnLoad:true,
7
- theme: "default",
8
- });
9
- mermaid.init(undefined, $('.mermaid2'));
10
- });
11
- </script>
12
- {% endif %}
@@ -1,20 +0,0 @@
1
- {% if page.submenu %}
2
- <div class="submenu">
3
- {% for collection in site.data.collections %}
4
- {% if collection.id == page.submenu %}
5
- <h4>
6
- <svg class="icon" aria-hidden="true">
7
- <use xlink:href="#icon-submenu"></use>
8
- </svg>{{ collection.name }}
9
- </h4>
10
- <ul>
11
- {% for article in collection.articles %}
12
- <li><a href="{{ article.url | prepend: site.baseurl }}">{{ article.name }}</a></li>
13
- {% endfor %}
14
- </ul>
15
- {% endif %}
16
- {% endfor %}
17
- {% else %}
18
- <div class="submenu hidden">
19
- {% endif %}
20
- </div>
@@ -1,3 +0,0 @@
1
- {% if site.comments.waline or page.comments.waline %}
2
- <script src="https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.umd.js"></script>
3
- {% endif %}
File without changes
File without changes