mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
UPDATE variable names to make them more meaningful
This commit is contained in:
parent
2e0b0b9563
commit
b2ab7e6897
1 changed files with 9 additions and 9 deletions
|
@ -164,18 +164,18 @@ export function renderButtons(
|
||||||
this.textContent = "";
|
this.textContent = "";
|
||||||
|
|
||||||
// Create a tspan for the text content (the "kind" part)
|
// Create a tspan for the text content (the "kind" part)
|
||||||
const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
const tspan_kind = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||||
tspan.textContent = current_text_element_content;
|
tspan_kind.textContent = current_text_element_content;
|
||||||
tspan.setAttribute("dy", "0.5em");
|
tspan_kind.setAttribute("dy", "0.5em");
|
||||||
|
|
||||||
// Create a tspan for the percentage
|
// Create a tspan for the percentage
|
||||||
const tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
const tspan_percentage = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||||
tspan2.textContent = `\u200e(${totalCorrect(d).percent}%)`;
|
tspan_percentage.textContent = `\u200e(${totalCorrect(d).percent}%)`;
|
||||||
tspan2.setAttribute("dy", "1em");
|
tspan_percentage.setAttribute("dy", "1em");
|
||||||
tspan2.setAttribute("x", "0");
|
tspan_percentage.setAttribute("x", "0");
|
||||||
|
|
||||||
this.appendChild(tspan);
|
this.appendChild(tspan_kind);
|
||||||
this.appendChild(tspan2);
|
this.appendChild(tspan_percentage);
|
||||||
});
|
});
|
||||||
|
|
||||||
const xButton = scaleBand()
|
const xButton = scaleBand()
|
||||||
|
|
Loading…
Reference in a new issue