jekyll-zeta 0.9.13 → 0.9.15

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: f67173c7c8a968e7943908d86e1067074bdb54d88fd024e0be9f44f0b5084557
4
- data.tar.gz: 01cd07c422303ef5006ee46ca51a86a58458ff150f78d6fb0925752911b263b5
3
+ metadata.gz: 49f440245117ccbd1620acfaf1eaff93c7d0ae5da0a47b1a5b2aad53f487d95f
4
+ data.tar.gz: f6a84386270feba1985104c5b5ca0064d03fb21f354cfdaa49501696bb62900f
5
5
  SHA512:
6
- metadata.gz: 659c9f0cafc800afd9e5eb64e4d147cea363c99cf2fe22a80be100bae8c9e35b28dcc31e34cd7c514f416a16d7c9cddc9869d8b63f4d948406a9efc8499b92f0
7
- data.tar.gz: e4006c8510e123d3f4a92a2551d1dccf0f6ce8087f60b9e08eedd49fecc979da1addbc1d6c0a3763448755744f5f52a66edbdbd7e159eb3785fca7193bceec62
6
+ metadata.gz: d97487258e046b46c2bc548085ca1821afbdf501e5cb6bf3fe6c7e8a3c38f3757102598e7e655dbfa562cca4e966d0edda4c5b2c88ff42b98778a8a2553536c3
7
+ data.tar.gz: 8b5433e0ccc4c5029d28e0f0f0ec74bc2dfdc43fbaf98a9a1f8540ab90cfae744d6bc09ddd6375974ac982436af9814f777e3be1838678f3f8ace99512fe7a0a
@@ -137,7 +137,7 @@
137
137
 
138
138
 
139
139
  let allYearArr = Object.keys(allYear).sort().reverse()
140
- console.log(dataObj)
140
+
141
141
 
142
142
  if(Recent365Count){
143
143
  create_heatmap('lmpRecent365' + g_id ++, '', dataObj, "Last 1Y", Recent365Count,node)
@@ -148,6 +148,8 @@
148
148
  create_heatmap('lmp' + y + g_id ++ , y, dataObj,undefined,undefined,node)
149
149
  }
150
150
 
151
+ node.style.display = 'none'
152
+
151
153
 
152
154
 
153
155
  };
data/_includes/heatmap.js CHANGED
@@ -14,6 +14,16 @@ function __filldata(heatmapid,endYear,WeeKStartStr,heatMapLoadCount,_MonthStr,_s
14
14
 
15
15
  const WeeKStart = parseInt(WeeKStartStr)
16
16
  const color = dataSourceObj && dataSourceObj.color;
17
+ var beginDate = dataSourceObj && dataSourceObj.beginDate;
18
+ if(beginDate && beginDate.length != 10){
19
+ beginDateArr = beginDate.split('-');
20
+ // to yyyy-mm-dd
21
+ if (beginDateArr.length == 3) {
22
+ beginDate = `${beginDateArr[0]}-${beginDateArr[1].padStart(2,'0')}-${beginDateArr[2].padStart(2,'0')}`
23
+
24
+ }
25
+ }
26
+
17
27
 
18
28
  var GDATA = window._G_DATA;
19
29
  if (!GDATA) {
@@ -232,6 +242,14 @@ function __filldata(heatmapid,endYear,WeeKStartStr,heatMapLoadCount,_MonthStr,_s
232
242
  }else if(isFuture){
233
243
  dayCell.classList = parseInt(dateKeyYmd.substring(5, 7)) % 2 == 1 ? 'heatmap-day-cell hm-check-future-b' : 'heatmap-day-cell hm-check-future-a'
234
244
  }
245
+ else if(beginDate && dateKeyYmd < beginDate && (!arrPostInOneDay || arrPostInOneDay.length == 0)){
246
+ const nobg =
247
+ parseInt(dateKeyYmd.substring(5, 7)) % 2 == 1
248
+ ? "hm-check-future-b"
249
+ : "hm-check-future-a";
250
+
251
+ dayCell.classList = `heatmap-day-cell ${nobg}`;
252
+ }
235
253
  else{
236
254
 
237
255
  const nobg =
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.9.13
4
+ version: 0.9.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock