jekyll-zeta 0.11.9 → 0.11.10

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: f9a30b4038cfe08a17753b29af232e737cb2744c4a4408786fcc9467e5905f42
4
- data.tar.gz: 6998219e0b6292417296656a923634ba39f08ccfdc972e33c4e71c7ad14cd916
3
+ metadata.gz: 8647a01d2e2dd4f387d8fc94cf6b2c8437e8909ebc20fc0594bf63b367e919ab
4
+ data.tar.gz: ce1b67c72e96537888a3f72153474b3c9eeb925d167674c4a67866556d2e9c18
5
5
  SHA512:
6
- metadata.gz: c9dd78098cb4540bfce96935345d31ff8ac0c4e52f12175f5e4dc4564872d900cdb197fcdc8bd77c8db6b353e537d3527d66478080442e8ee18e9f534338988b
7
- data.tar.gz: c95e2b879e844ff770f653a01d509f7efc656c4493e6489c79d27ac780d3fd64925356ae1af2765f980eee90316cb4d46e158d197172ae9fca15e6ba91d2f208
6
+ metadata.gz: d79441504084b6c7ce6d5fccd484debc59c1e96853362a527367eb5d3ea0ba7203bb8c0269179acba1130abbd6d6698593c6a5e0cf3f8c066858078037130d16
7
+ data.tar.gz: 357a32a3aa82ae9fdd001be6fcf2d195f2307ac2a3c7e9d534080adf6c86cf1f3cd27a87eaefd05be7fcd3f74be628b056438f88f80d10cf122fdbc6b66e0457
@@ -1,19 +1,19 @@
1
1
 
2
2
 
3
- /*********** getmapdata.js [764740ab30] ***********/
3
+ /*********** getmapdata.js [7ad9a431dc] ***********/
4
4
 
5
5
  !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,e){if(t){const n=t.split("-")
6
6
  ;if(3==n.length)return`${n[0]}-${n[1].padStart(2,"0")}-${n[2].padStart(2,"0")}`;if(2==n.length)return`${e}-${n[0].padStart(2,"0")}-${n[1].padStart(2,"0")}`}return t}function r(t){let e=t.getMonth()+1,n=t.getDate()
7
7
  ;return`${t.getFullYear()}-${e<10?"0"+e:e}-${n<10?"0"+n:n}`}function l(t,i,a){if(!t)return null;let o=t.trim();if(!o)return null;if(i&&function(t,e){if(t&&t.startsWith("#")){let n=t.split(" ");if(n.length>=2){let r=n[0].substring(1)
8
8
  ;if(r)return e[r]=t.substring(r.length+2).trim(),1}}return 0}(o,i))return null;var u=o.split(" "),s=u[0];if(s=s.replace("~","~"),i&&s.indexOf("~")>0){let t=s.split("~"),o=t[0],f=t[1],c=e(n(o,a));if(!c||isNaN(c))return;let d=7;if(f){let t=e(n(f,a))
9
- ;t&&!isNaN(t)&&(d=Math.floor((t.getTime()-c.getTime())/864e5)+1)}else d=Math.floor((Date.now()-c.getTime())/864e5)+1,d>7&&(d=7);const g=u.slice(1).join(" ");let p=[];const m=c.getTime();for(let t=0;t<d;t++){
10
- const e=r(new Date(m+864e5*t))+" "+g,n=l(e,i,a);n&&p.push(n)}return p.length?p:null}let f="";if(!s)return null;{let t=s.split("-"),e=0,n=0,r=0;if(a&&2==t.length)e=a,n=t[0],r=t[1];else{if(3!=t.length)return;e=t[0],n=t[1],r=t[2]}
11
- let l=Number(e),i=Number(n),o=Number(n);if(isNaN(l)||isNaN(o)||isNaN(i)||l<1900||l>2100||i<1||i>12||o<1||o>31)return null;f=e+"-"+n.padStart(2,"0")+"-"+r.padStart(2,"0")}if(!f)return null;var c="";let d;if(u.length>1){c=u.slice(1).join(" ")
12
- ;const t=/#[0-9a-fA-F]{6}/;let e=t.exec(c);e&&e.length?(d=e[0],c=c.replace(t,"")):d=i&&i.color||"#40c463"}return d=d||i&&i.color||"#40c463",{date:f,title:c,color:d}}function i(t,e){if(!e)return
13
- ;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
14
- },o=0,u=new Date,s=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`,f=null;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a,f);n&&Array.isArray(n)?n.forEach((t=>{i(a,t),
15
- t&&(f=t.date.substring(0,4),t.date>=s&&o++)})):(i(a,n),n&&(f=n.date.substring(0,4),n.date>=s&&o++))})),a.title){let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}
16
- let c=Object.keys(r).sort().reverse(),d=a.recent,g=!0;g=d?"1"==d:o&&c.length>1,g&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<c.length;e++){let r=c[e];create_heatmap_lv("lmp"+r+t++,r,a,void 0,void 0,n)}
17
- n.style.display="none"}async function o(){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
18
- ;a(e,r.parentNode.parentNode.parentNode)}}o(),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",
19
- e.insertBefore(t,e.firstChild)}o()},window._after_enc_fun=function(){document.getElementById("loveiContainer").innerHTML=""}}();
9
+ ;t&&!isNaN(t)&&(d=Math.floor((t.getTime()-c.getTime())/864e5)+1)}else d=Math.floor((Date.now()-c.getTime())/864e5)+1,d>7&&(d=7);const g=u.slice(1).join(" ");let p=[];const m=c.getTime();for(let t=0;t<d;t++){const e=l(r(new Date(m+864e5*t))+" "+g,i,a)
10
+ ;e&&p.push(e)}return p.length?p:null}let f="";if(!s)return null;{let t=s.split("-"),e=0,n=0,r=0;if(a&&2==t.length)e=a,n=t[0],r=t[1];else{if(3!=t.length)return;e=t[0],n=t[1],r=t[2]}let l=Number(e),i=Number(n),o=Number(n)
11
+ ;if(isNaN(l)||isNaN(o)||isNaN(i)||l<1900||l>2100||i<1||i>12||o<1||o>31)return null;f=e+"-"+n.padStart(2,"0")+"-"+r.padStart(2,"0")}if(!f)return null;var c="";let d;if(u.length>1){c=u.slice(1).join(" ");const t=/#[0-9a-fA-F]{6,8}/;let e=t.exec(c)
12
+ ;e&&e.length?(d=e[0],c=c.replace(t,"")):d=i&&i.color||"#40c463"}return d=d||i&&i.color||"#40c463",{date:f,title:c,color:d}}function i(t,e){if(!e)return;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]
13
+ ;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},o=0,u=new Date,s=`${u.getFullYear()-1}-${(u.getMonth()+1).toString().padStart(2,"0")}-${u.getDate().toString().padStart(2,"0")}`,f=null
14
+ ;if(e.split("\n").forEach((function(t,e){if(0==e)return;let n=l(t,a,f);n&&Array.isArray(n)?n.forEach((t=>{i(a,t),t&&(f=t.date.substring(0,4),t.date>=s&&o++)})):(i(a,n),n&&(f=n.date.substring(0,4),n.date>=s&&o++))})),a.title){
15
+ let t=document.createElement("div");t.className="custom-map-title",t.innerText=a.title||"",n.parentNode.insertBefore(t,n)}let c=Object.keys(r).sort().reverse(),d=a.recent,g=!0;g=d?"1"==d:o&&c.length>1,
16
+ g&&create_heatmap_lv("lmpRecent365"+t++,"",a,"Last 1Y",o,n);for(let e=0;e<c.length;e++){let r=c[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")
17
+ ;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(),window._after_dec_fun=function(){
18
+ 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()},window._after_enc_fun=function(){
19
+ document.getElementById("loveiContainer").innerHTML=""}}();
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*********** heatmap_svg.js [0a20da5738] ***********/
3
+ /*********** heatmap_svg.js [f6e16cf46a] ***********/
4
4
 
5
5
  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
6
6
  ;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)
@@ -28,7 +28,7 @@ n.setAttribute("fill","#888888"),n.setAttribute("font-family","courier"),n.textC
28
28
  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}
29
29
  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"),
30
30
  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),
31
- 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(){
32
- 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(){
33
- 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
34
- ;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)}}()}}}
31
+ o.setAttribute("class","svg-day-1"),o.setAttribute("fill",d&&9==d.length?d: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,
32
+ o.onmouseleave=function(){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,
33
+ o.onmouseleave=function(){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")}}}
34
+ !function(t){let e=t.length;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)}}()}}}
@@ -90,7 +90,6 @@
90
90
  const ymd = date2ymd(new Date(timeStampBegin + i * 86400000))
91
91
  const newStr = ymd + ' ' + desc
92
92
  const newEle = getDataFromSignleLine(newStr,gData,YearDefault)
93
- console.log('newDesc',newStr,newEle)
94
93
  if(newEle){
95
94
  resultArr.push(newEle)
96
95
  }
@@ -141,7 +140,7 @@
141
140
  if (arr.length > 1) {
142
141
  title = arr.slice(1).join(" ")
143
142
 
144
- const regColor = /#[0-9a-fA-F]{6}/
143
+ const regColor = /#[0-9a-fA-F]{6,8}/
145
144
  let colorScaned = regColor.exec(title)
146
145
  if (colorScaned && colorScaned.length) {
147
146
  color = colorScaned[0]
@@ -223,7 +223,7 @@
223
223
 
224
224
  node.setAttribute("class", "svg-day-1");
225
225
  node.setAttribute(
226
- "fill",
226
+ "fill",colorSet && colorSet.length == 9 ? colorSet : // 直接指定了透明度 ,#ff0000ff,不跟进count
227
227
  c == 1
228
228
  ? colorSet + "77"
229
229
  : c == 2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.9
4
+ version: 0.11.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-30 00:00:00.000000000 Z
11
+ date: 2025-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll