MCPcopy Create free account
hub / github.com/codemistic/Web-Development / renderQuote

Function renderQuote

SpeedTyping/public/type.js:93–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93async function renderQuote() {
94 quoteStr = "";
95 str = "";
96 prevSpan = null;
97 const q = await fetchQuote();
98 displayQuote.innerText = "";
99 // console.log(q);
100 q.split("").forEach((element, index) => {
101 var characterSpan = document.createElement("span");
102 characterSpan.innerText = element;
103 errorList[index] = false;
104 displayQuote.appendChild(characterSpan);
105 });
106 setQuoteObjToString();
107}
108
109renderQuote();

Callers 1

type.jsFile · 0.85

Calls 2

setQuoteObjToStringFunction · 0.85
fetchQuoteFunction · 0.70

Tested by

no test coverage detected