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

Function generateLink

script.js:120–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118// Generate chart link with user data
119
120const generateLink = () => {
121 let link = `[![Ashutosh's github activity graph](https://github-readme-activity-graph.vercel.app/graph?username=${
122 valueToCopy.username
123 }&bg_color=${valueToCopy.bgColor.slice(1)}&color=${valueToCopy.color.slice(
124 1
125 )}&line=${valueToCopy.line.slice(1)}&point=${valueToCopy.point.slice(
126 1
127 )}&area=true&hide_border=true)](https://github.com/ashutosh00710/github-readme-activity-graph)`;
128 elements.textArea.value = link;
129 elements.copyText.childNodes[3].style.backgroundColor = 'rgb(87, 132, 245)';
130 return link;
131};
132
133// Fetch user data and create graph
134

Callers 5

getGraphFunction · 0.85
changeBgColorFunction · 0.85
changeLineColorFunction · 0.85
changeLabelsAndGridColorFunction · 0.85
changePointColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected