jekyll-zeta 0.9.12 → 0.9.14

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: e4cdf9ffeebd761d6a27651dca10b2754b301a836ae259609c3ac8ec7c8b7fcd
4
- data.tar.gz: ad82a893a19ae99112d50c5683d859992bd468305162f217b836c00f76aecf75
3
+ metadata.gz: 12b9013f8f47a61f839b99e57ff1099daa0d4d40c4dd84630cd33210d8ec0af3
4
+ data.tar.gz: e98bd77ac33454416cafef6fe47535bf37391cbe0c490bae7f8b226550f3f804
5
5
  SHA512:
6
- metadata.gz: 71a472490183230c4d75f2adacaf42c776fbf8117fffdfd640c5026ba490931d18f2710a5a12303d894499f139c4a7e07bc5761ff1f781169626fe5bc8ed663f
7
- data.tar.gz: '032139e895e16f6f9dc8c3f285a3d3d203b621d4ed8eca0a458d4ae15b6433afe33a03cf5c824312673cdf5266a4f6637d39c4b4e576422270a28c1fa9527573'
6
+ metadata.gz: 9f6ddd7effcb62042b4fa5ef0d4153feb883c249c133f9deade654beb42799a5c54781e8c72773a6a4479fd7c19bf93960034bbbbc65e3ac278c5e4d9c3dcb6a
7
+ data.tar.gz: 3c8aa1f12ac6f0e39bbeb4de21f4b1a924eb69605ca906e9a5e3e481041609abe53403d731ed6b21e841b75dbf7671c87c472b28ed5cc04187f06e2a9871a4ea
@@ -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) {
@@ -128,7 +137,7 @@
128
137
 
129
138
 
130
139
  let allYearArr = Object.keys(allYear).sort().reverse()
131
- console.log(dataObj)
140
+
132
141
 
133
142
  if(Recent365Count){
134
143
  create_heatmap('lmpRecent365' + g_id ++, '', dataObj, "Last 1Y", Recent365Count,node)
@@ -139,6 +148,8 @@
139
148
  create_heatmap('lmp' + y + g_id ++ , y, dataObj,undefined,undefined,node)
140
149
  }
141
150
 
151
+ node.style.display = 'none'
152
+
142
153
 
143
154
 
144
155
  };
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
- if (color && arrPostInOneDay && arrPostInOneDay.length) {
252
- dayCell.style.backgroundColor = color + (arrPostInOneDay.length > 2 ? "ff" : arrPostInOneDay.length > 1 ? 'cc' : '99')
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.12
4
+ version: 0.9.14
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-13 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll