jekyll-zeta 0.9.12 → 0.9.13
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/getmapdata.js +10 -1
- data/_includes/heatmap.js +10 -2
- 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: f67173c7c8a968e7943908d86e1067074bdb54d88fd024e0be9f44f0b5084557
|
4
|
+
data.tar.gz: 01cd07c422303ef5006ee46ca51a86a58458ff150f78d6fb0925752911b263b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 659c9f0cafc800afd9e5eb64e4d147cea363c99cf2fe22a80be100bae8c9e35b28dcc31e34cd7c514f416a16d7c9cddc9869d8b63f4d948406a9efc8499b92f0
|
7
|
+
data.tar.gz: e4006c8510e123d3f4a92a2551d1dccf0f6ce8087f60b9e08eedd49fecc979da1addbc1d6c0a3763448755744f5f52a66edbdbd7e159eb3785fca7193bceec62
|
data/_includes/getmapdata.js
CHANGED
@@ -54,10 +54,19 @@
|
|
54
54
|
return null
|
55
55
|
}
|
56
56
|
var title = ""
|
57
|
+
let color = undefined
|
57
58
|
if (arr.length > 1) {
|
58
59
|
title = arr.slice(1).join(" ")
|
60
|
+
|
61
|
+
const regColor = /#[0-9a-fA-F]{6}/
|
62
|
+
let colorScaned = regColor.exec(title)
|
63
|
+
if (colorScaned && colorScaned.length) {
|
64
|
+
color = colorScaned[0]
|
65
|
+
title = title.replace(regColor,'')
|
66
|
+
}
|
67
|
+
|
59
68
|
}
|
60
|
-
return { date: date, title: title }
|
69
|
+
return { date: date, title: title ,color}
|
61
70
|
}
|
62
71
|
|
63
72
|
function fillDataObj(data, item) {
|
data/_includes/heatmap.js
CHANGED
@@ -248,8 +248,16 @@ function __filldata(heatmapid,endYear,WeeKStartStr,heatMapLoadCount,_MonthStr,_s
|
|
248
248
|
: "hm-check"
|
249
249
|
}`;
|
250
250
|
|
251
|
-
|
252
|
-
|
251
|
+
|
252
|
+
if(arrPostInOneDay && arrPostInOneDay.length){
|
253
|
+
// arrPostInOneDay
|
254
|
+
let objWithColor = arrPostInOneDay.find(function(e){return e.color})
|
255
|
+
if(objWithColor){
|
256
|
+
dayCell.style.backgroundColor = objWithColor.color ;//+ (arrPostInOneDay.length > 2 ? "ff" : arrPostInOneDay.length > 1 ? 'cc' : '99')
|
257
|
+
}else{
|
258
|
+
dayCell.style.backgroundColor = color + (arrPostInOneDay.length > 2 ? "ff" : arrPostInOneDay.length > 1 ? 'cc' : '99')
|
259
|
+
}
|
260
|
+
|
253
261
|
}
|
254
262
|
|
255
263
|
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|