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.
- checksums.yaml +4 -4
- data/_includes/heatmap.js +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49f440245117ccbd1620acfaf1eaff93c7d0ae5da0a47b1a5b2aad53f487d95f
|
4
|
+
data.tar.gz: f6a84386270feba1985104c5b5ca0064d03fb21f354cfdaa49501696bb62900f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|