jekyll-zeta 0.9.14 → 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/heatmap.js +18 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12b9013f8f47a61f839b99e57ff1099daa0d4d40c4dd84630cd33210d8ec0af3
4
- data.tar.gz: e98bd77ac33454416cafef6fe47535bf37391cbe0c490bae7f8b226550f3f804
3
+ metadata.gz: 49f440245117ccbd1620acfaf1eaff93c7d0ae5da0a47b1a5b2aad53f487d95f
4
+ data.tar.gz: f6a84386270feba1985104c5b5ca0064d03fb21f354cfdaa49501696bb62900f
5
5
  SHA512:
6
- metadata.gz: 9f6ddd7effcb62042b4fa5ef0d4153feb883c249c133f9deade654beb42799a5c54781e8c72773a6a4479fd7c19bf93960034bbbbc65e3ac278c5e4d9c3dcb6a
7
- data.tar.gz: 3c8aa1f12ac6f0e39bbeb4de21f4b1a924eb69605ca906e9a5e3e481041609abe53403d731ed6b21e841b75dbf7671c87c472b28ed5cc04187f06e2a9871a4ea
6
+ metadata.gz: d97487258e046b46c2bc548085ca1821afbdf501e5cb6bf3fe6c7e8a3c38f3757102598e7e655dbfa562cca4e966d0edda4c5b2c88ff42b98778a8a2553536c3
7
+ data.tar.gz: 8b5433e0ccc4c5029d28e0f0f0ec74bc2dfdc43fbaf98a9a1f8540ab90cfae744d6bc09ddd6375974ac982436af9814f777e3be1838678f3f8ace99512fe7a0a
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.14
4
+ version: 0.9.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock