MCPcopy Create free account
hub / github.com/Ashutosh00710/github-readme-activity-graph / changeLabelsAndGridColor

Function changeLabelsAndGridColor

script.js:273–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271
272//Lables, Title and Grid color
273const changeLabelsAndGridColor = () => {
274 const ltgValue = inputElements.ltgInput.value;
275 valueToCopy.color = ltgValue;
276
277 const allLables = document.querySelectorAll('.ct-label');
278 const axisTitles = document.querySelectorAll('.ct-axis-title');
279 const grids = document.querySelectorAll('.ct-grid');
280
281 allLables.forEach((el) => {
282 el.style.fill = ltgValue;
283 el.style.color = ltgValue;
284 });
285
286 axisTitles.forEach((el) => {
287 el.style.fill = ltgValue;
288 });
289 grids.forEach((el) => {
290 el.style.stroke = ltgValue;
291 });
292
293 generateLink();
294};
295
296// Point Color
297const changePointColor = () => {

Callers 1

onThemeChangeFunction · 0.85

Calls 1

generateLinkFunction · 0.85

Tested by

no test coverage detected