We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125b1db commit 0b15ad4Copy full SHA for 0b15ad4
popup.html
@@ -54,7 +54,7 @@
54
55
<body>
56
57
- <h1 id="title">Vocab words!</h1>
+ <h1>Vocab words! <span id="numOfWords"></span></h1>
58
59
<button id="clearActive">Clear Active</button>
60
popup.js
@@ -20,7 +20,7 @@ function loadWords(data){
20
tableId = 'new';
21
22
// display the number of active entries on the page
23
- document.getElementById("title").innerText += " " + Object.keys(data.active).length
+ document.getElementById("numOfWords").innerText = Object.keys(data.active).length;
24
25
// loop from most recent words to most distant
26
for (var i=list.length-1; i>=0; i--){
0 commit comments