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

Function onSubmit

script.js:213–226  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

211
212// Handle submit button
213const onSubmit = (event) => {
214 event.preventDefault();
215
216 //get username
217 const username = elements.username.value;
218 if (username.length > 0) {
219 valueToCopy.username = username;
220 setLoader();
221 getGraph(username);
222 } else {
223 alert('Enter your Username');
224 return;
225 }
226};
227
228/*-----------------------------------------
229 Dark Theme

Callers

nothing calls this directly

Calls 2

setLoaderFunction · 0.85
getGraphFunction · 0.85

Tested by

no test coverage detected