jekyll-zeta 0.10.5.1 → 0.10.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e032ac0150eb96062308817744cad048184a4bd7b37d4e6673697d9c8bb2a1ed
4
- data.tar.gz: 9d2583667c960183eb5c4e4a963b6831c9cd3fbdeb7c73f1eaca7ea8490e76fb
3
+ metadata.gz: 946ce2afdd0770b9b0417e9c4adac3d6ca99d120aea6e2e1a181a749cf00e84f
4
+ data.tar.gz: 703bf01ec8ab6cf38b352da57299e8730836e0f7de9e7734ba5f4c879a31e6a5
5
5
  SHA512:
6
- metadata.gz: 151edba2ea8a55814bfa3dca1f7336aa21c38527a317a75716bb168d9ea9d32c46dbbfd117dbb382871e8007877c978e299a6883376b4dfdd2e4351dd44ab425
7
- data.tar.gz: fa4de56ee4323dc91be764618f1713932d6ea0a37d8ae253bd63dadb1383ca43805cf306feb0539124e99423b85c5466cee8fa6eb5399375da19f81a4a1a7ebe
6
+ metadata.gz: ad0626433e2394be70ed39f33e2a95fc7f00ff60e3f9fbea3980e8f0e25dd46810d72ca6ce020a796e8839324b6c418bdba5c8c0b5c5592e9c2a229ff7fc98d5
7
+ data.tar.gz: bd409ff5abeeec188a67bfaa3e1ff83f3e41f79372fa79b80cc4745b96da5904843a96c270cbb05c710dbf4491dcaaea5ed293ec26f1b42596ea73629fe2233f
@@ -1,17 +1,20 @@
1
- function _InitEnc(e,t,n,c,o){!function(){const a=crypto.subtle,r=e,i=t.substring(3),d=base64js.decode(i);d.subarray(0,12),d.subarray(12);async function l(e,t,n){
2
- if(e.length<8)throw n&&(n.count=e.length),"err";let c=0;for(let t=0;t<4;t++)c|=(e[t]^e[t+4]^t)<<8*(3-t);if(n&&(n.count=c),e.length<c)return;let o=e.slice(4,20),r=e.slice(20,c)
3
- ;var i=await a.importKey("raw",t,{name:"AES-CTR"},!1,["decrypt"]),d={name:"AES-CTR",counter:o,length:64};try{let e=await a.decrypt(d,i,r);return new Uint8Array(e)}catch(e){throw e}}
4
- async function s(o,r){var i="";if(r)i=u();else{var d=e+o+e;i=await async function(e){var t=(new TextEncoder).encode(e),n=await a.importKey("raw",t,"PBKDF2",!1,["deriveBits"]);let c={name:"PBKDF2",
5
- hash:"SHA-256",iterations:12345,salt:(new TextEncoder).encode("this is a salt string 20221019")};return await a.deriveBits(c,n,256)}(d)}if(0!=i.length)try{let e=await async function(e){
6
- const t=c.split("."),o=t[0],a=t[1],r=base64js.decode(a),i=base64js.decode(n);let d=null,s=0,u=0;for(;s++<400&&!(u>=i.length);){let t=i.slice(u);try{let n={count:0},c=await l(t,e,n);if(u+=n.count,c){
7
- let e=await l(r,c);if((new TextDecoder).decode(e)==o){d=c;break}}}catch(e){}}return d}(i);if(!e)throw"error psw";var s=await async function(e,t){const n=e,c=base64js.decode(n);return await l(c,t)
8
- }(t,e),m=(new TextDecoder).decode(s);y(i),document.getElementById("encrypted").style.display="none",document.getElementById("decrypted").style.display="block",
9
- document.getElementById("decryptContent").innerHTML=m;const o=window._after_dec_fun;o&&"function"==typeof o&&o(),setTimeout((function(){var e=document.createEvent("Event");e.initEvent("load",!0,!0)
10
- ;var t=document.createEvent("Event");t.initEvent("DOMContentLoaded",!0,!0),window.dispatchEvent(e),window.dispatchEvent(t)}),100)}catch(e){
11
- document.getElementById("passwordinput").classList.add("errPsw"),setTimeout((()=>{document.getElementById("passwordinput").classList.remove("errPsw")}),500)}}
12
- document.getElementById("DecryptBtn").onclick=function(){s(document.getElementById("passwordinput").value)},document.getElementById("EncryptBtn").onclick=function(){
13
- document.getElementById("encrypted").style.display="block",document.getElementById("decrypted").style.display="none",document.getElementById("decryptContent").innerHTML=":)",m()
14
- ;const e=window._after_enc_fun;e&&"function"==typeof e&&e()},document.getElementById("ClearBtn1").onclick=function(){localStorage.clear(),document.getElementById("passwordinput").value=""},
15
- document.getElementById("ClearBtn2").onclick=function(){localStorage.clear()};const u=o?function(){}:function(){var e=r,t=localStorage.getItem(e);return t?base64js.decode(t):null
16
- },y=o?function(e){}:function(e){var t=r,n=new Uint8Array(e),c=base64js.encode(n);return localStorage.setItem(t,c)},m=o?function(){}:function(){var e=r;localStorage.removeItem(e)};var w=u();w&&s(w,!0)
17
- }()}
1
+
2
+
3
+
4
+ /*********** encrypt_page.js ***********/
5
+
6
+ function _InitEnc(e,t,n,c,o){!function(){const a=crypto.subtle,r=e,i=t.substring(3),d=base64js.decode(i);d.subarray(0,12),d.subarray(12);async function l(e,t,n){if(e.length<8)throw n&&(n.count=e.length),"err";let c=0
7
+ ;for(let t=0;t<4;t++)c|=(e[t]^e[t+4]^t)<<8*(3-t);if(n&&(n.count=c),e.length<c)return;let o=e.slice(4,20),r=e.slice(20,c);var i=await a.importKey("raw",t,{name:"AES-CTR"},!1,["decrypt"]),d={name:"AES-CTR",counter:o,length:64};try{
8
+ let e=await a.decrypt(d,i,r);return new Uint8Array(e)}catch(e){throw e}}async function s(o,r){var i="";if(r)i=u();else{var d=e+o+e;i=await async function(e){var t=(new TextEncoder).encode(e),n=await a.importKey("raw",t,"PBKDF2",!1,["deriveBits"])
9
+ ;let c={name:"PBKDF2",hash:"SHA-256",iterations:12345,salt:(new TextEncoder).encode("this is a salt string 20221019")};return await a.deriveBits(c,n,256)}(d)}if(0!=i.length)try{let e=await async function(e){
10
+ const t=c.split("."),o=t[0],a=t[1],r=base64js.decode(a),i=base64js.decode(n);let d=null,s=0,u=0;for(;s++<400&&!(u>=i.length);){let t=i.slice(u);try{let n={count:0},c=await l(t,e,n);if(u+=n.count,c){let e=await l(r,c)
11
+ ;if((new TextDecoder).decode(e)==o){d=c;break}}}catch(e){}}return d}(i);if(!e)throw"error psw";var s=await async function(e,t){const n=e,c=base64js.decode(n);return await l(c,t)}(t,e),m=(new TextDecoder).decode(s);y(i),
12
+ document.getElementById("encrypted").style.display="none",document.getElementById("decrypted").style.display="block",document.getElementById("decryptContent").innerHTML=m;const o=window._after_dec_fun;o&&"function"==typeof o&&o(),
13
+ setTimeout((function(){var e=document.createEvent("Event");e.initEvent("load",!0,!0);var t=document.createEvent("Event");t.initEvent("DOMContentLoaded",!0,!0),window.dispatchEvent(e),window.dispatchEvent(t)}),100)}catch(e){
14
+ document.getElementById("passwordinput").classList.add("errPsw"),setTimeout((()=>{document.getElementById("passwordinput").classList.remove("errPsw")}),500)}}document.getElementById("DecryptBtn").onclick=function(){
15
+ s(document.getElementById("passwordinput").value)},document.getElementById("EncryptBtn").onclick=function(){document.getElementById("encrypted").style.display="block",document.getElementById("decrypted").style.display="none",
16
+ document.getElementById("decryptContent").innerHTML=":)",m();const e=window._after_enc_fun;e&&"function"==typeof e&&e()},document.getElementById("ClearBtn1").onclick=function(){localStorage.clear(),document.getElementById("passwordinput").value=""},
17
+ document.getElementById("ClearBtn2").onclick=function(){localStorage.clear()};const u=o?function(){}:function(){var e=r,t=localStorage.getItem(e);return t?base64js.decode(t):null},y=o?function(e){}:function(e){
18
+ var t=r,n=new Uint8Array(e),c=base64js.encode(n);return localStorage.setItem(t,c)},m=o?function(){}:function(){var e=r;localStorage.removeItem(e)};var w=u();w&&s(w,!0)}()}
19
+
20
+
@@ -1,6 +1,12 @@
1
- function hm_getPostData(e,t){e=(""+e).substring(0,4);let n=t.split("/");n.pop();const r=n.join("/");var l=window.__GDATA__;l||(l={},window.__GDATA__);let a=window._y_queue||[];function i(e){
2
- if(l[e=""+e])return l[e];let t="_singleyearFlg"+e,n="_singleyearQueue"+e;if(1==l[t]){let e=l[n];return e||(e=[],l[n]=e),new Promise((t=>{e.push(t)}))}return l[t]=1,
3
- fetch(`${r}/${e}.json`).then((e=>e.json())).then((r=>{l[t]=0,l[e]=r;let a=l[n];return a&&a.length&&(a.forEach((e=>{e(r)})),a.length=0,l[n]=void 0),r})).catch((e=>null))}return window._y_queue=a,
4
- function(){let n=""+e,r=""+(Number(n)-1);return(l._allYear?l._allYear:1==window._isFetchAllYearData?new Promise((e=>{a.push(e)})):(window._isFetchAllYearData=1,
5
- fetch(t).then((e=>e.json())).then((e=>(window._isFetchAllYearData=0,a.length&&(a.forEach((t=>{t(e)})),a.length=0),l._allYear=e,e))))).then((e=>{let t=e,l=[];return t[n]&&l.push(i(n)),
6
- t[r]&&l.push(i(r)),Promise.all(l).then((e=>{let t={},n=e[0],r=e[1];return n&&n.year&&(t[n.year]=n),r&&r.year&&(t[r.year]=r),Promise.resolve(t)}))}))}()}
1
+
2
+
3
+
4
+ /*********** getPostData.js ***********/
5
+
6
+ function hm_getPostData(e,t){e=(""+e).substring(0,4);let n=t.split("/");n.pop();const r=n.join("/");var l=window.__GDATA__;l||(l={},window.__GDATA__);let a=window._y_queue||[];function i(e){if(l[e=""+e])return l[e]
7
+ ;let t="_singleyearFlg"+e,n="_singleyearQueue"+e;if(1==l[t]){let e=l[n];return e||(e=[],l[n]=e),new Promise((t=>{e.push(t)}))}return l[t]=1,fetch(`${r}/${e}.json`).then((e=>e.json())).then((r=>{l[t]=0,l[e]=r;let a=l[n]
8
+ ;return a&&a.length&&(a.forEach((e=>{e(r)})),a.length=0,l[n]=void 0),r})).catch((e=>null))}return window._y_queue=a,function(){let n=""+e,r=""+(Number(n)-1);return(l._allYear?l._allYear:1==window._isFetchAllYearData?new Promise((e=>{a.push(e)
9
+ })):(window._isFetchAllYearData=1,fetch(t).then((e=>e.json())).then((e=>(window._isFetchAllYearData=0,a.length&&(a.forEach((t=>{t(e)})),a.length=0),l._allYear=e,e))))).then((e=>{let t=e,l=[];return t[n]&&l.push(i(n)),t[r]&&l.push(i(r)),
10
+ Promise.all(l).then((e=>{let t={},n=e[0],r=e[1];return n&&n.year&&(t[n.year]=n),r&&r.year&&(t[r.year]=r),Promise.resolve(t)}))}))}()}
11
+
12
+
@@ -1,17 +1,21 @@
1
- !function(){var t=100;function e(t){const e=t.split("-").map(Number);if(3!==e.length)throw new Error(`Invalid date format: ${t}`);const[n,r,l]=e;return new Date(n,r-1,l)}function n(t){if(t){
2
- const e=t.split("-");return`${e[0]}-${e[1].padStart(2,"0")}-${e[2].padStart(2,"0")}`}return t}function r(t){let e=t.getMonth()+1,n=t.getDate()
3
- ;return`${t.getFullYear()}-${e<10?"0"+e:e}-${n<10?"0"+n:n}`}function l(t,i){if(!t)return null;let a=t.trim();if(!a)return null;if(i&&function(t,e){if(t&&t.startsWith("#")){let n=t.split(" ")
4
- ;if(n.length>=2){let r=n[0].substring(1);if(r)return e[r]=t.substring(r.length+2).trim(),1}}return 0}(a,i))return null;var o=a.split(" "),u=o[0];if(u=u.replace("~","~"),i&&u.indexOf("~")>0){
5
- let t=u.split("~"),i=t[0],a=t[1],f=e(n(i));if(!f||isNaN(f))return;let s=7;if(a){let t=e(n(a));t&&!isNaN(t)&&(s=Math.floor((t.getTime()-f.getTime())/864e5)+1)
6
- }else s=Math.floor((Date.now()-f.getTime())/864e5)+1,s>7&&(s=7);const c=o.slice(1).join(" ");let d=[];const g=f.getTime();for(let t=0;t<s;t++){const e=l(r(new Date(g+864e5*t))+" "+c);e&&d.push(e)}
7
- return d.length?d:null}let f="";if(!u)return null;{let t=u.split("-");if(3==t.length){let e=t[0],n=t[1],r=t[2],l=Number(e),i=Number(n),a=Number(n)
8
- ;if(isNaN(l)||isNaN(a)||isNaN(i)||l<1900||l>2100||i<1||i>12||a<1||a>31)return null;f=e+"-"+n.padStart(2,"0")+"-"+r.padStart(2,"0")}}if(!f)return null;var s="";let c;if(o.length>1){
9
- s=o.slice(1).join(" ");const t=/#[0-9a-fA-F]{6}/;let e=t.exec(s);e&&e.length&&(c=e[0],s=s.replace(t,""))}return{date:f,title:s,color:c}}function i(t,e){if(!e)return
10
- ;let n=e.date.substring(0,4),r=e.date.substring(5,7),l=t.allYear[n];t.allYear[n]=l?l+1:1;let i=t[n];i||(i={},t[n]=i);let a=i[r];a||(a=[],i[r]=a),a.push(e)}function a(e,n){let r={},a={allYear:r
11
- },o=0,u=new Date,f=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a)
12
- ;n&&Array.isArray(n)?n.forEach((t=>{i(a,t),t&&t.date>=f&&o++})):(i(a,n),n&&n.date>=f&&o++)})),a.title){let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",
13
- n.parentNode.insertBefore(t,n)}let s=Object.keys(r).sort().reverse(),c=a.recent,d=!0;d=c?"1"==c:o&&s.length>1,d&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<s.length;e++){
14
- let r=s[e];create_heatmap_lv("lmp"+r+t++,r,a,void 0,void 0,n)}n.style.display="none"}async function o(){let t=document.querySelectorAll("pre > code")
15
- ;if(t&&0!=t.length&&t.length>0)for(let n=0;n<t.length;n++){const r=t[n];var e=r.textContent;if(!e.startsWith("#mapdata"))return;a(e,r.parentNode.parentNode.parentNode)}}o(),
16
- window._after_dec_fun=function(){let t=document.getElementById("loveiContainer");if(!t){let e=document.getElementById("decryptContent");if(!e)return;t=document.createElement("div"),
17
- t.id="loveiContainer",e.insertBefore(t,e.firstChild)}o()},window._after_enc_fun=function(){document.getElementById("loveiContainer").innerHTML=""}}();
1
+
2
+
3
+
4
+ /*********** getmapdata.js ***********/
5
+
6
+ !function(){var t=100;function e(t){const e=t.split("-").map(Number);if(3!==e.length)throw new Error(`Invalid date format: ${t}`);const[n,r,l]=e;return new Date(n,r-1,l)}function n(t){if(t){const e=t.split("-")
7
+ ;return`${e[0]}-${e[1].padStart(2,"0")}-${e[2].padStart(2,"0")}`}return t}function r(t){let e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0"+e:e}-${n<10?"0"+n:n}`}function l(t,i){if(!t)return null;let a=t.trim();if(!a)return null
8
+ ;if(i&&function(t,e){if(t&&t.startsWith("#")){let n=t.split(" ");if(n.length>=2){let r=n[0].substring(1);if(r)return e[r]=t.substring(r.length+2).trim(),1}}return 0}(a,i))return null;var o=a.split(" "),u=o[0];if(u=u.replace("~","~"),
9
+ i&&u.indexOf("~")>0){let t=u.split("~"),i=t[0],a=t[1],f=e(n(i));if(!f||isNaN(f))return;let s=7;if(a){let t=e(n(a));t&&!isNaN(t)&&(s=Math.floor((t.getTime()-f.getTime())/864e5)+1)}else s=Math.floor((Date.now()-f.getTime())/864e5)+1,s>7&&(s=7)
10
+ ;const c=o.slice(1).join(" ");let d=[];const g=f.getTime();for(let t=0;t<s;t++){const e=l(r(new Date(g+864e5*t))+" "+c);e&&d.push(e)}return d.length?d:null}let f="";if(!u)return null;{let t=u.split("-");if(3==t.length){
11
+ let e=t[0],n=t[1],r=t[2],l=Number(e),i=Number(n),a=Number(n);if(isNaN(l)||isNaN(a)||isNaN(i)||l<1900||l>2100||i<1||i>12||a<1||a>31)return null;f=e+"-"+n.padStart(2,"0")+"-"+r.padStart(2,"0")}}if(!f)return null;var s="";let c;if(o.length>1){
12
+ s=o.slice(1).join(" ");const t=/#[0-9a-fA-F]{6}/;let e=t.exec(s);e&&e.length&&(c=e[0],s=s.replace(t,""))}return{date:f,title:s,color:c}}function i(t,e){if(!e)return;let n=e.date.substring(0,4),r=e.date.substring(5,7),l=t.allYear[n]
13
+ ;t.allYear[n]=l?l+1:1;let i=t[n];i||(i={},t[n]=i);let a=i[r];a||(a=[],i[r]=a),a.push(e)}function a(e,n){let r={},a={allYear:r
14
+ },o=0,u=new Date,f=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a);n&&Array.isArray(n)?n.forEach((t=>{i(a,t),
15
+ t&&t.date>=f&&o++})):(i(a,n),n&&n.date>=f&&o++)})),a.title){let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}let s=Object.keys(r).sort().reverse(),c=a.recent,d=!0
16
+ ;d=c?"1"==c:o&&s.length>1,d&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<s.length;e++){let r=s[e];create_heatmap_lv("lmp"+r+t++,r,a,void 0,void 0,n)}n.style.display="none"}async function o(){
17
+ let t=document.querySelectorAll("pre > code");if(t&&0!=t.length&&t.length>0)for(let n=0;n<t.length;n++){const r=t[n];var e=r.textContent;if(!e.startsWith("#mapdata"))return;a(e,r.parentNode.parentNode.parentNode)}}o(),
18
+ window._after_dec_fun=function(){let t=document.getElementById("loveiContainer");if(!t){let e=document.getElementById("decryptContent");if(!e)return;t=document.createElement("div"),t.id="loveiContainer",e.insertBefore(t,e.firstChild)}o()},
19
+ window._after_enc_fun=function(){document.getElementById("loveiContainer").innerHTML=""}}();
20
+
21
+
data/_includes/heatmap.js CHANGED
@@ -1,28 +1,29 @@
1
- function __filldata(e,t,n,a,l,r,c,s){function o(e){let t=new Date(y-36e5*($-1-e)*24),n=t.getMonth()+1,a=t.getDate();return`${t.getFullYear()}-${n<10?"0"+n:n}-${a<10?"0"+a:a}`}
2
- const i=parseInt(n),h=s&&s.color;var m=s&&s.beginDate;m&&10!=m.length&&(beginDateArr=m.split("-"),
3
- 3==beginDateArr.length&&(m=`${beginDateArr[0]}-${beginDateArr[1].padStart(2,"0")}-${beginDateArr[2].padStart(2,"0")}`));var d=window._G_DATA;d||(d={},window._G_DATA=d);const u=function(e){
4
- let t=e.getMonth()+1,n=e.getDate();return`${e.getFullYear()}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}(new Date);var p=`${t}-12-31`;t&&4==t.length?p=`${t}-12-31`:t&&10==t.length?p=t:t||(p=u),
5
- t=p.substring(0,4);const f=`${Number(t)-1}${p.substring(4)}`,g=t&&4==t.length?new Date(p):new Date,y=g.getTime(),w=Math.random().toString(16).substring(2);let b=c.split("/");b.pop()
6
- ;const D=b.join("/"),E=(g.getDay()-i+7)%7+1,$=364+E;let _=window._y_queue||[];window._y_queue=_,function(){let e=""+g.getFullYear(),t=""+(e-1);function n(e){if(e=""+e,s)return Promise.resolve(s[e])
7
- ;if(d[e])return d[e];let t="_singleyearFlg"+e,n="_singleyearQueue"+e;if(1==d[t]){let e=d[n];return e||(e=[],d[n]=e),new Promise((t=>{e.push(t)}))}return d[t]=1,
8
- fetch(`${D}/${e}.json`).then((e=>e.json())).then((a=>{d[t]=0,d[e]=a;let l=d[n];return l&&l.length&&(l.forEach((e=>{e(a)})),l.length=0,d[n]=void 0),a})).catch((e=>null))}
9
- (s&&s.allYear?Promise.resolve(s.allYear):d._allYear?d._allYear:1==window._isFetchAllYearData?new Promise((e=>{_.push(e)})):(window._isFetchAllYearData=1,
10
- fetch(c).then((e=>e.json())).then((e=>(window._isFetchAllYearData=0,_.length&&(_.forEach((t=>{t(e)})),_.length=0),d._allYear=e,e))))).then((l=>{let r=l,c=[];r[e]&&c.push(n(e)),r[t]&&c.push(n(t)),
11
- Promise.all(c).then((e=>{let t={},n=e[0],l=e[1];for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)){const a=n[e];t["K1-"+e]=a}for(const e in l)if(Object.prototype.hasOwnProperty.call(l,e)){
12
- const n=l[e];t["K2-"+e]=n}!function(e){if(!e)return;let t=document.getElementById(w).childNodes,n={};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const a=e[t]
13
- ;Array.isArray(a)&&a.forEach((e=>{if(e.date){let t=n[e.date];t||(t=[],n[e.date]=t),t.push(e)}}))}let l=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&l.push(e);var r=$-1;function c(e){
14
- let t=e.length;for(;0!=t;){let n=Math.floor(Math.random()*t);t--,[e[t],e[n]]=[e[n],e[t]]}}const s=new Array($);let i=$;for(;i-- >0;)s[i]=i;function d(){if(r<0)return;const e=s[r--]
15
- ;let a=o(e),l=n[a],c=!1;f&&(c=a<f);let i=a>u;const d=t[e]
16
- ;if(d.dataset.x=a,c)d.classList="heatmap-day-cell hm-check-notyet";else if(i)d.classList=parseInt(a.substring(5,7))%2==1?"heatmap-day-cell hm-check-future-b":"heatmap-day-cell hm-check-future-a";else if(m&&a<m&&(!l||0==l.length)){
1
+
2
+
3
+
4
+ /*********** heatmap.js ***********/
5
+
6
+ function __filldata(e,t,n,a,l,r,c,s){function o(e){let t=new Date(y-36e5*($-1-e)*24),n=t.getMonth()+1,a=t.getDate();return`${t.getFullYear()}-${n<10?"0"+n:n}-${a<10?"0"+a:a}`}const i=parseInt(n),h=s&&s.color;var m=s&&s.beginDate
7
+ ;m&&10!=m.length&&(beginDateArr=m.split("-"),3==beginDateArr.length&&(m=`${beginDateArr[0]}-${beginDateArr[1].padStart(2,"0")}-${beginDateArr[2].padStart(2,"0")}`));var d=window._G_DATA;d||(d={},window._G_DATA=d);const u=function(e){
8
+ let t=e.getMonth()+1,n=e.getDate();return`${e.getFullYear()}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}(new Date);var p=`${t}-12-31`;t&&4==t.length?p=`${t}-12-31`:t&&10==t.length?p=t:t||(p=u),t=p.substring(0,4)
9
+ ;const f=`${Number(t)-1}${p.substring(4)}`,g=t&&4==t.length?new Date(p):new Date,y=g.getTime(),w=Math.random().toString(16).substring(2);let b=c.split("/");b.pop();const D=b.join("/"),E=(g.getDay()-i+7)%7+1,$=364+E;let _=window._y_queue||[]
10
+ ;window._y_queue=_,function(){let e=""+g.getFullYear(),t=""+(e-1);function n(e){if(e=""+e,s)return Promise.resolve(s[e]);if(d[e])return d[e];let t="_singleyearFlg"+e,n="_singleyearQueue"+e;if(1==d[t]){let e=d[n];return e||(e=[],d[n]=e),
11
+ new Promise((t=>{e.push(t)}))}return d[t]=1,fetch(`${D}/${e}.json`).then((e=>e.json())).then((a=>{d[t]=0,d[e]=a;let l=d[n];return l&&l.length&&(l.forEach((e=>{e(a)})),l.length=0,d[n]=void 0),a})).catch((e=>null))}
12
+ (s&&s.allYear?Promise.resolve(s.allYear):d._allYear?d._allYear:1==window._isFetchAllYearData?new Promise((e=>{_.push(e)})):(window._isFetchAllYearData=1,fetch(c).then((e=>e.json())).then((e=>(window._isFetchAllYearData=0,_.length&&(_.forEach((t=>{
13
+ t(e)})),_.length=0),d._allYear=e,e))))).then((l=>{let r=l,c=[];r[e]&&c.push(n(e)),r[t]&&c.push(n(t)),Promise.all(c).then((e=>{let t={},n=e[0],l=e[1];for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)){const a=n[e];t["K1-"+e]=a}
14
+ for(const e in l)if(Object.prototype.hasOwnProperty.call(l,e)){const n=l[e];t["K2-"+e]=n}!function(e){if(!e)return;let t=document.getElementById(w).childNodes,n={};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const a=e[t]
15
+ ;Array.isArray(a)&&a.forEach((e=>{if(e.date){let t=n[e.date];t||(t=[],n[e.date]=t),t.push(e)}}))}let l=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&l.push(e);var r=$-1;function c(e){let t=e.length;for(;0!=t;){
16
+ let n=Math.floor(Math.random()*t);t--,[e[t],e[n]]=[e[n],e[t]]}}const s=new Array($);let i=$;for(;i-- >0;)s[i]=i;function d(){if(r<0)return;const e=s[r--];let a=o(e),l=n[a],c=!1;f&&(c=a<f);let i=a>u;const d=t[e];if(d.dataset.x=a,
17
+ c)d.classList="heatmap-day-cell hm-check-notyet";else if(i)d.classList=parseInt(a.substring(5,7))%2==1?"heatmap-day-cell hm-check-future-b":"heatmap-day-cell hm-check-future-a";else if(m&&a<m&&(!l||0==l.length)){
17
18
  const e=parseInt(a.substring(5,7))%2==1?"hm-check-future-b":"hm-check-future-a";d.classList=`heatmap-day-cell ${e}`}else{const e=parseInt(a.substring(5,7))%2==1?"hm-check-no-b":"hm-check-no-a"
18
- ;if(d.classList=`heatmap-day-cell ${l?l.length>2?"hm-check3":2==l.length?"hm-check2":"hm-check":e}`,l&&l.length){let e=l.find((function(e){return e.color}))
19
- ;d.style.backgroundColor=e?e.color:h+(l.length>2?"ff":l.length>1?"cc":"99")}if(l&&l.length>0){let e=1==l.length,t=document.createElement("div");if(e){let e=document.createElement("a")
20
- ;e.href=l[0].url?l[0].url:"javascript:void(0);",d.appendChild(e)}t.className="hm-tip";l.forEach((e=>{let n=document.createElement("a");n.className="hm-tiplink",n.href=e.url||"javascript:void(0);",
21
- t.appendChild(n);let l=document.createElement("span");l.className="hm-date",l.innerText=a.substring(5),n.appendChild(l);let r=document.createElement("span");r.className="hm-title",r.innerText=e.title,
22
- n.appendChild(r)})),d.appendChild(t)}}}function p(){let e=a;for((!e||e<=0)&&(e=8);e--;)d();r>=0&&requestAnimationFrame(p)}c(s),requestAnimationFrame(p)}(t)}))}))}(),function(){
23
- let t=document.getElementById(e);const n=document.createDocumentFragment(),a=document.createElement("div");a.className="heatmap-month",n.appendChild(a);const c=l.split(" ");g.getMonth();let s=E-1,h=[]
24
- ;for(let e=0;e<c.length;e++){let e=document.createElement("span");e.className="heatmap-month-cell",a.appendChild(e),h.push(e)}for(let e=0,t=0;e<53&&t<c.length;e++){
25
- const n=o(7*e),a=n.substring(5,7),l=n.substring(8,10);if(l<="07"){let n=h[t++];n.innerText=c[Number(a)-1],n.style.gridColumnStart=e+1,n.style.gridColumnEnd="span 4"}}
26
- const m=document.createElement("div");m.className="heatmap-week";const d=r.split(" ");for(let e=0;e<d.length;e++){const t=(e+i)%7;let n=document.createElement("div");n.className="heatmap-week-cell",
27
- n.innerHTML=e%2?`<span>${d[t]}</span>`:"",m.appendChild(n)}n.appendChild(m);const u=document.createElement("div");u.className="heatmap-day",u.id=w
28
- ;for(let e=0;e<53;e++)for(let t=0;t<7&&!(t>s&&52==e);t++){let e=document.createElement("span");e.classList="heatmap-day-cell hm-check-nodata",u.appendChild(e)}n.appendChild(u),t.append(n)}()}
19
+ ;if(d.classList=`heatmap-day-cell ${l?l.length>2?"hm-check3":2==l.length?"hm-check2":"hm-check":e}`,l&&l.length){let e=l.find((function(e){return e.color}));d.style.backgroundColor=e?e.color:h+(l.length>2?"ff":l.length>1?"cc":"99")}if(l&&l.length>0){
20
+ let e=1==l.length,t=document.createElement("div");if(e){let e=document.createElement("a");e.href=l[0].url?l[0].url:"javascript:void(0);",d.appendChild(e)}t.className="hm-tip";l.forEach((e=>{let n=document.createElement("a");n.className="hm-tiplink",
21
+ n.href=e.url||"javascript:void(0);",t.appendChild(n);let l=document.createElement("span");l.className="hm-date",l.innerText=a.substring(5),n.appendChild(l);let r=document.createElement("span");r.className="hm-title",r.innerText=e.title,
22
+ n.appendChild(r)})),d.appendChild(t)}}}function p(){let e=a;for((!e||e<=0)&&(e=8);e--;)d();r>=0&&requestAnimationFrame(p)}c(s),requestAnimationFrame(p)}(t)}))}))}(),function(){let t=document.getElementById(e)
23
+ ;const n=document.createDocumentFragment(),a=document.createElement("div");a.className="heatmap-month",n.appendChild(a);const c=l.split(" ");g.getMonth();let s=E-1,h=[];for(let e=0;e<c.length;e++){let e=document.createElement("span")
24
+ ;e.className="heatmap-month-cell",a.appendChild(e),h.push(e)}for(let e=0,t=0;e<53&&t<c.length;e++){const n=o(7*e),a=n.substring(5,7),l=n.substring(8,10);if(l<="07"){let n=h[t++];n.innerText=c[Number(a)-1],n.style.gridColumnStart=e+1,
25
+ n.style.gridColumnEnd="span 4"}}const m=document.createElement("div");m.className="heatmap-week";const d=r.split(" ");for(let e=0;e<d.length;e++){const t=(e+i)%7;let n=document.createElement("div");n.className="heatmap-week-cell",
26
+ n.innerHTML=e%2?`<span>${d[t]}</span>`:"",m.appendChild(n)}n.appendChild(m);const u=document.createElement("div");u.className="heatmap-day",u.id=w;for(let e=0;e<53;e++)for(let t=0;t<7&&!(t>s&&52==e);t++){let e=document.createElement("span")
27
+ ;e.classList="heatmap-day-cell hm-check-nodata",u.appendChild(e)}n.appendChild(u),t.append(n)}()}
28
+
29
+
@@ -1,38 +1,37 @@
1
- function createSVGMap(t,e,n,r,i){const s=n.split(" "),o=r.split(" "),l=i||0;t?4==t.length&&(t=`${t}-12-31`):t=`${(new Date).getFullYear()}-12-31`
2
- ;let u=new Date(v(new Date(t))),a=e?new Date(v(new Date(e))):e
1
+
2
+
3
+
4
+ /*********** heatmap_svg.js ***********/
5
+
6
+ function createSVGMap(t,e,n,r,i){const s=n.split(" "),o=r.split(" "),l=i||0;t?4==t.length&&(t=`${t}-12-31`):t=`${(new Date).getFullYear()}-12-31`;let u=new Date(v(new Date(t))),a=e?new Date(v(new Date(e))):e
3
7
  ;const d="http://www.w3.org/2000/svg",c=30,b=12,f="MP-"+Math.random().toString(16).substring(2),h=f+"days",m=f+"tip",A=u.getDay(),g=u.getTime(),p=364+(7+A-l)%7;var w=function(t){const e=new Date(t)
4
- ;let n=e.getFullYear()-1,r=e.getMonth()+1,i=e.getDate();return`${n}-${r<10?"0"+r:r}-${i<10?"0"+i:i}`}(g)
5
- ;const y=p-Math.floor((g-new Date(w))/864e5)+1,x=p-Math.floor((g-new Date(v(new Date)))/864e5),k=a?p-Math.floor((g-a.getTime())/864e5):-1;function C(t){return v(new Date(g-36e5*(p-t)*24))}
6
- function v(t){let e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0"+e:e}-${n<10?"0"+n:n}`}function N(t){const e=document.createElementNS(d,"rect");e.setAttribute("width","12"),
7
- e.setAttribute("height","12"),e.setAttribute("rx","1"),e.setAttribute("ry","1"),e.setAttribute("fill","#eef7f2");const n=Math.floor(t/7),r=t-7*n,i=12*n+2*n,o=r*b+2*r;e.setAttribute("x",""+i),
8
- e.setAttribute("y",""+o),e.dataset.x=i,e.dataset.y=o;let l=C(t);e.dataset.ymd=l,e.id="day-item-"+l;let u=l.substring(5,7);if(l.substring(8,10)<="07"&&t%7==0){
9
- let e=s[Number(u)-1],n=document.createElementNS(d,"text");n.setAttribute("y","22"),n.setAttribute("x",i),n.textContent=e,n.setAttribute("fill",t>x?"#878787":"#113"),n.setAttribute("font-size","13"),
10
- n.setAttribute("font-family","monospace"),E.appendChild(n)}return e}const S=document.createElementNS(d,"svg");S.id=f,S.setAttribute("width","787"),S.setAttribute("height","148"),
11
- S.style.overflow="visible";let D=document.createElementNS(d,"defs")
8
+ ;let n=e.getFullYear()-1,r=e.getMonth()+1,i=e.getDate();return`${n}-${r<10?"0"+r:r}-${i<10?"0"+i:i}`}(g);const y=p-Math.floor((g-new Date(w))/864e5)+1,x=p-Math.floor((g-new Date(v(new Date)))/864e5),k=a?p-Math.floor((g-a.getTime())/864e5):-1
9
+ ;function C(t){return v(new Date(g-36e5*(p-t)*24))}function v(t){let e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0"+e:e}-${n<10?"0"+n:n}`}function N(t){const e=document.createElementNS(d,"rect");e.setAttribute("width","12"),
10
+ e.setAttribute("height","12"),e.setAttribute("rx","1"),e.setAttribute("ry","1"),e.setAttribute("fill","#eef7f2");const n=Math.floor(t/7),r=t-7*n,i=12*n+2*n,o=r*b+2*r;e.setAttribute("x",""+i),e.setAttribute("y",""+o),e.dataset.x=i,e.dataset.y=o
11
+ ;let l=C(t);e.dataset.ymd=l,e.id="day-item-"+l;let u=l.substring(5,7);if(l.substring(8,10)<="07"&&t%7==0){let e=s[Number(u)-1],n=document.createElementNS(d,"text");n.setAttribute("y","22"),n.setAttribute("x",i),n.textContent=e,
12
+ n.setAttribute("fill",t>x?"#878787":"#113"),n.setAttribute("font-size","13"),n.setAttribute("font-family","monospace"),E.appendChild(n)}return e}const S=document.createElementNS(d,"svg");S.id=f,S.setAttribute("width","787"),
13
+ S.setAttribute("height","148"),S.style.overflow="visible";let D=document.createElementNS(d,"defs")
12
14
  ;D.innerHTML='\n <pattern id="fillA" patternUnits="userSpaceOnUse" width="3" height="3">\n <path d="M 0 0 L 6 6" stroke="#ccc" stroke-width="1"/>\n </pattern>\n\n <pattern id="fillB" patternUnits="userSpaceOnUse" width="6" height="6">\n <path d="M 0 6 L 6 0" stroke="#bbb" stroke-width="1"/>\n </pattern>\n ',
13
- S.appendChild(D);const E=document.createElementNS(d,"g");E.setAttribute("transform","translate(35, 0)"),S.appendChild(E);const M=document.createElementNS(d,"g");function $(t,e){
14
- let n=document.createElementNS(d,"text");n.textContent=t,n.setAttribute("font-family","monospace"),n.setAttribute("font-size","13"),n.setAttribute("fill","#333"),n.setAttribute("width","45"),
15
- n.setAttribute("height","12"),n.setAttribute("x","5");const r=14*e+10;return n.setAttribute("y",""+r),M.appendChild(n),n}M.setAttribute("transform","translate(0, 30)"),S.appendChild(M),
16
- $(o[(l+1)%7],1),$(o[(l+3)%7],3),$(o[(l+5)%7],5);const F=document.createElementNS(d,"g");F.id=h,F.setAttribute("transform","translate(35, 30)"),S.appendChild(F)
17
- ;const z=document.createDocumentFragment();for(let t=0;t<371;t++){const e=N(t);e&&z.appendChild(e)}F.appendChild(z);const T=document.createElementNS(d,"text");T.setAttribute("y","138 "),
18
- T.setAttribute("x","777"),T.setAttribute("fill","#999999"),T.setAttribute("font-size","15"),T.setAttribute("font-family","monospace"),T.setAttribute("text-anchor","end"),
19
- T.setAttribute("dominant-baseline","middle"),S.appendChild(T);const L=C(y);L.substring(0,4)==t.substring(0,4)?T.textContent=L.substring(0,4):T.textContent=` ~ ${t}`
20
- ;const U=document.createElementNS(d,"g");U.id=m,S.appendChild(U);var Y={showFlag:0,idx:-1};function B(t,e,n){if(e<0)return Y.showFlag=0,void setTimeout((()=>{0==Y.showFlag&&(U.style.display="none")
21
- }),50);if(2==Y.showFlag)return;Y.showFlag=1,Y.idx=e,U.innerHTML="",U.style.display="block";const r=n?0:1;n||(n=[{date:t.dataset.ymd}]),U.setAttribute("class","svg-hm-day-tip");var i
22
- ;const s=n.length,o=20+25*s+"",l=document.createDocumentFragment();let u=document.createElementNS(d,"rect");u.setAttribute("fill","#333333cc"),u.setAttribute("height",o),u.setAttribute("rx","5"),
23
- u.setAttribute("ry","5"),l.append(u),U.onmouseenter=function(){r||(Y.showFlag=2)},U.onmouseleave=function(){Y.showFlag=0,U.style.display="none"};let a=0;n.forEach(((t,e)=>{
24
- let n=t.date.substring(5,7),r=t.date.substring(8,10);n=n.startsWith("0")?n.substring(1):n,r=r.startsWith("0")?r.substring(1):r;const i=`${n}-${r} ${t.title||""}`;i.length>a&&(a=i.length)
25
- ;const s=document.createElementNS(d,"text");if(s.textContent=i,s.setAttribute("fill","#fff"),s.setAttribute("font-size","16"),s.setAttribute("font-family","monospace"),s.setAttribute("x","10"),t.url){
26
- const n="http://www.w3.org/1999/xlink",r=document.createElementNS(d,"a");r.setAttributeNS(n,"xlink:href",t.url),r.setAttribute("target","_blank"),s.setAttribute("y",""+(10+25*e+18)),r.appendChild(s),
27
- l.appendChild(r)}else s.setAttribute("y",""+(10+25*e+15)),l.appendChild(s)})),i=14.55*a+25,u.setAttribute("width",i),U.appendChild(l);const b=e%7,f=35+14*((e-b)/7)+6-i/2,h=c+14*b-o-2
28
- ;U.setAttribute("transform",`translate(${f}, ${h})`)}return{svg:S,updateDays:function(t){const e=t.color||"#40c463",n=document.createElementNS(d,"tspan");n.setAttribute("font-size","12"),
29
- n.setAttribute("dy","0"),n.setAttribute("dx","10"),n.setAttribute("fill","#888888"),n.setAttribute("font-family","courier"),n.textContent="",T.append(n);let r=0,i=F.childNodes,s=new Array(371)
30
- ;for(let t=0;t<371;t++)s[t]=t;function o(s){let o=i[s];if(o){if(s<y||s>p)return void o.setAttribute("display","none");let i=o.dataset.ymd.substring(5,7),l=Number(i)%2,u=function(e,n){
31
- let r=n.substring(0,4),i=n.substring(5,7),s=t[r];if(s&&s[i]){let t=s[i].filter((t=>t.date==n));return t&&t.length?t:null}return null}(0,o.dataset.ymd);if(u&&u.length&&(r+=u.length,
32
- n.textContent=`x ${r}`),!u&&(s>x||s<k))return o.setAttribute("fill",l?"url(#fillB)":"url(#fillA)"),o.onmouseenter=function(){o.setAttribute("stroke","#000000"),o.setAttribute("stroke-width","1"),
33
- B(o,s,u)},o.onclick=o.onmouseenter,void(o.onmouseleave=function(){o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)});const a=u&&u.length;let d=e;if(a){let t=u.find((t=>t.color))
34
- ;t&&(d=t.color),o.setAttribute("class","svg-day-1"),o.setAttribute("fill",1==a?d+"77":2==a?d+"aa":d+"ff"),o.onmouseenter=function(){o.setAttribute("stroke","#000000"),
35
- o.setAttribute("stroke-width","1"),B(o,s,u)},o.onclick=o.onmouseenter,o.onmouseleave=function(){o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)}}else{o.onmouseenter=function(){
36
- o.setAttribute("stroke","#000000"),o.setAttribute("stroke-width","1"),B(o,s,u)},o.onclick=o.onmouseenter,o.onmouseleave=function(){o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)
37
- };let t=o.dataset.ymd;if(t){let e=t.substring(5,7),n=Number(e)%2;o.setAttribute("fill",n?"#edebf0":"#edebf0aa")}else o.setAttribute("fill","#efefef")}}}!function(t){let e=t.length;for(;0!=e;){
38
- let n=Math.floor(Math.random()*e);e--,[t[e],t[n]]=[t[n],t[e]]}}(s);var l=0;!function t(){if(l<s.length){const n=19;for(var e=0;e++<n;){if(l>=s.length)return;o(s[l++])}requestAnimationFrame(t)}}()}}}
15
+ S.appendChild(D);const E=document.createElementNS(d,"g");E.setAttribute("transform","translate(35, 0)"),S.appendChild(E);const M=document.createElementNS(d,"g");function $(t,e){let n=document.createElementNS(d,"text");n.textContent=t,
16
+ n.setAttribute("font-family","monospace"),n.setAttribute("font-size","13"),n.setAttribute("fill","#333"),n.setAttribute("width","45"),n.setAttribute("height","12"),n.setAttribute("x","5");const r=14*e+10;return n.setAttribute("y",""+r),
17
+ M.appendChild(n),n}M.setAttribute("transform","translate(0, 30)"),S.appendChild(M),$(o[(l+1)%7],1),$(o[(l+3)%7],3),$(o[(l+5)%7],5);const F=document.createElementNS(d,"g");F.id=h,F.setAttribute("transform","translate(35, 30)"),S.appendChild(F)
18
+ ;const z=document.createDocumentFragment();for(let t=0;t<371;t++){const e=N(t);e&&z.appendChild(e)}F.appendChild(z);const T=document.createElementNS(d,"text");T.setAttribute("y","138 "),T.setAttribute("x","777"),T.setAttribute("fill","#999999"),
19
+ T.setAttribute("font-size","15"),T.setAttribute("font-family","monospace"),T.setAttribute("text-anchor","end"),T.setAttribute("dominant-baseline","middle"),S.appendChild(T);const L=C(y)
20
+ ;L.substring(0,4)==t.substring(0,4)?T.textContent=L.substring(0,4):T.textContent=` ~ ${t}`;const U=document.createElementNS(d,"g");U.id=m,S.appendChild(U);var Y={showFlag:0,idx:-1};function B(t,e,n){if(e<0)return Y.showFlag=0,void setTimeout((()=>{
21
+ 0==Y.showFlag&&(U.style.display="none")}),50);if(2==Y.showFlag)return;Y.showFlag=1,Y.idx=e,U.innerHTML="",U.style.display="block";const r=n?0:1;n||(n=[{date:t.dataset.ymd}]),U.setAttribute("class","svg-hm-day-tip");var i
22
+ ;const s=n.length,o=20+25*s+"",l=document.createDocumentFragment();let u=document.createElementNS(d,"rect");u.setAttribute("fill","#333333cc"),u.setAttribute("height",o),u.setAttribute("rx","5"),u.setAttribute("ry","5"),l.append(u),
23
+ U.onmouseenter=function(){r||(Y.showFlag=2)},U.onmouseleave=function(){Y.showFlag=0,U.style.display="none"};let a=0;n.forEach(((t,e)=>{let n=t.date.substring(5,7),r=t.date.substring(8,10);n=n.startsWith("0")?n.substring(1):n,
24
+ r=r.startsWith("0")?r.substring(1):r;const i=`${n}-${r} ${t.title||""}`;i.length>a&&(a=i.length);const s=document.createElementNS(d,"text");if(s.textContent=i,s.setAttribute("fill","#fff"),s.setAttribute("font-size","16"),
25
+ s.setAttribute("font-family","monospace"),s.setAttribute("x","10"),t.url){const n="http://www.w3.org/1999/xlink",r=document.createElementNS(d,"a");r.setAttributeNS(n,"xlink:href",t.url),r.setAttribute("target","_blank"),
26
+ s.setAttribute("y",""+(10+25*e+18)),r.appendChild(s),l.appendChild(r)}else s.setAttribute("y",""+(10+25*e+15)),l.appendChild(s)})),i=14.55*a+25,u.setAttribute("width",i),U.appendChild(l);const b=e%7,f=35+14*((e-b)/7)+6-i/2,h=c+14*b-o-2
27
+ ;U.setAttribute("transform",`translate(${f}, ${h})`)}return{svg:S,updateDays:function(t){const e=t.color||"#40c463",n=document.createElementNS(d,"tspan");n.setAttribute("font-size","12"),n.setAttribute("dy","0"),n.setAttribute("dx","10"),
28
+ n.setAttribute("fill","#888888"),n.setAttribute("font-family","courier"),n.textContent="",T.append(n);let r=0,i=F.childNodes,s=new Array(371);for(let t=0;t<371;t++)s[t]=t;function o(s){let o=i[s];if(o){
29
+ if(s<y||s>p)return void o.setAttribute("display","none");let i=o.dataset.ymd.substring(5,7),l=Number(i)%2,u=function(e,n){let r=n.substring(0,4),i=n.substring(5,7),s=t[r];if(s&&s[i]){let t=s[i].filter((t=>t.date==n));return t&&t.length?t:null}
30
+ return null}(0,o.dataset.ymd);if(u&&u.length&&(r+=u.length,n.textContent=`x ${r}`),!u&&(s>x||s<k))return o.setAttribute("fill",l?"url(#fillB)":"url(#fillA)"),o.onmouseenter=function(){o.setAttribute("stroke","#000000"),
31
+ o.setAttribute("stroke-width","1"),B(o,s,u)},o.onclick=o.onmouseenter,void(o.onmouseleave=function(){o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)});const a=u&&u.length;let d=e;if(a){let t=u.find((t=>t.color));t&&(d=t.color),
32
+ o.setAttribute("class","svg-day-1"),o.setAttribute("fill",1==a?d+"77":2==a?d+"aa":d+"ff"),o.onmouseenter=function(){o.setAttribute("stroke","#000000"),o.setAttribute("stroke-width","1"),B(o,s,u)},o.onclick=o.onmouseenter,o.onmouseleave=function(){
33
+ o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)}}else{o.onmouseenter=function(){o.setAttribute("stroke","#000000"),o.setAttribute("stroke-width","1"),B(o,s,u)},o.onclick=o.onmouseenter,o.onmouseleave=function(){
34
+ o.setAttribute("stroke",""),o.setAttribute("stroke-width",""),B(o,-1)};let t=o.dataset.ymd;if(t){let e=t.substring(5,7),n=Number(e)%2;o.setAttribute("fill",n?"#edebf0":"#edebf0aa")}else o.setAttribute("fill","#efefef")}}}!function(t){let e=t.length
35
+ ;for(;0!=e;){let n=Math.floor(Math.random()*e);e--,[t[e],t[n]]=[t[n],t[e]]}}(s);var l=0;!function t(){if(l<s.length){const n=19;for(var e=0;e++<n;){if(l>=s.length)return;o(s[l++])}requestAnimationFrame(t)}}()}}}
36
+
37
+
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "mangle": true,
6
6
  "output": {
7
- "max_line_len": 200
7
+ "max_line_len": 250
8
8
  }
9
9
 
10
10
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5.1
4
+ version: 0.10.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock