jekyll-zeta 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/heatmap.js +19 -2
- data/_sass/heatmap.scss +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f5b7a9cb09e5360ed8f9eccc4b379b66fd3ccb90d72c9e4be56f58713967780
|
4
|
+
data.tar.gz: 071a4840f57b37af0ed8e740930899e1c2ddf5987d239b1d8d5b51ee4045c30d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54d558bae02171320c3bc98c0969f38d1353dae74e189be0be26468dfa84bf1fc9a0ad2452ed1d6b8286f3d5ff68b5c73675ac77e5d1e0782975daadf0e06005
|
7
|
+
data.tar.gz: 26ae3613a849a15a4e9079de4183c5df9923394d2f82256773eb6a855ff1f220d20b1517d7dfa26abfe1ea0ece7fdb187093fae135ca7dfc1d20f443240442c0
|
data/_includes/heatmap.js
CHANGED
@@ -16,8 +16,10 @@
|
|
16
16
|
return `${t.getFullYear()}-${m < 10 ? "0" + m : m}-${d < 10 ? "0" + d : d}`;
|
17
17
|
}
|
18
18
|
|
19
|
+
const strictMod = endYear && endYear.length == 4;
|
20
|
+
const maxDateYmd = `${endYear}-12-31`
|
19
21
|
const dateEnd =
|
20
|
-
endYear && endYear.length == 4 ? new Date(
|
22
|
+
endYear && endYear.length == 4 ? new Date(maxDateYmd) : new Date();
|
21
23
|
|
22
24
|
const endStamp = dateEnd.getTime();
|
23
25
|
const dayEleId = Math.random().toString(16).substring(2);
|
@@ -177,6 +179,7 @@
|
|
177
179
|
|
178
180
|
shuffle(SEQ);
|
179
181
|
|
182
|
+
const minYmd = `${endYear - 1}${maxDateYmd.substring(4)}`
|
180
183
|
function update1Day() {
|
181
184
|
if (G_idxOfDay < 0) {
|
182
185
|
return;
|
@@ -184,8 +187,19 @@
|
|
184
187
|
const idxOfDay = SEQ[G_idxOfDay--];
|
185
188
|
let dateKeyYmd = idx2Ymd(idxOfDay);
|
186
189
|
let arrPostInOneDay = Map[dateKeyYmd];
|
190
|
+
|
191
|
+
let hideblock = false
|
192
|
+
if (strictMod) {
|
193
|
+
hideblock = dateKeyYmd <= minYmd;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
187
197
|
const dayCell = dayCells[idxOfDay];
|
188
|
-
|
198
|
+
if (hideblock) {
|
199
|
+
dayCell.classList = 'heatmap-day-cell hm-check-notyet'
|
200
|
+
}else{
|
201
|
+
|
202
|
+
const nobg =
|
189
203
|
parseInt(dateKeyYmd.substring(5, 7)) % 2 == 1
|
190
204
|
? "hm-check-no-b"
|
191
205
|
: "hm-check-no-a";
|
@@ -227,6 +241,9 @@
|
|
227
241
|
});
|
228
242
|
dayCell.appendChild(tip);
|
229
243
|
}
|
244
|
+
}
|
245
|
+
|
246
|
+
|
230
247
|
}
|
231
248
|
|
232
249
|
function updateMultiDays() {
|
data/_sass/heatmap.scss
CHANGED
@@ -120,6 +120,10 @@ $heatFont:Georgia,"Nimbus Roman No9 L","Songti SC",STSong,"AR PL New Sung","AR P
|
|
120
120
|
background-color: #edebf0aa;
|
121
121
|
}
|
122
122
|
|
123
|
+
.hm-check-notyet{
|
124
|
+
visibility: hidden;
|
125
|
+
}
|
126
|
+
|
123
127
|
.heatmap-day-cell:hover{
|
124
128
|
transform: scale(1.3);
|
125
129
|
z-index: 999;
|
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.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|