Commit d87e496 1 parent b68925b commit d87e496 Copy full SHA for d87e496
File tree 4 files changed +14
-12
lines changed
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 29
29
30
30
a > span .label {
31
31
cursor : pointer;
32
+ }
33
+
34
+ .section {
35
+ margin-bottom : 50px ;
32
36
}
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ html {
13
13
overflow-y : auto;
14
14
}
15
15
16
- .section {
17
- margin-bottom : 50px ;
18
- }
19
-
20
16
.vocabHeader {
21
17
position : sticky;
22
18
top : -1px ;
Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ async function fillTables() {
45
45
46
46
for ( const indexRange in indexRanges ) {
47
47
$ ( "#byIndexTable tbody" ) . append ( `<tr>
48
- <td>${ indexRange } </td>
49
- <td>${ Math . round ( indexRanges [ indexRange ] . nCorrect / indexRanges [ indexRange ] . totalCorrectNeeded * 1000 ) / 10 } %</td>
50
- <td>${ Math . round ( indexRanges [ indexRange ] . wordsDone / indexRanges [ indexRange ] . totalWords * 1000 ) / 10 } %</td></tr>` ) ;
48
+ <td><span class="hide-for-large">Index range: </span> ${ indexRange } </td>
49
+ <td><span class="hide-for-large">Progress to goal: </span> ${ Math . round ( indexRanges [ indexRange ] . nCorrect / indexRanges [ indexRange ] . totalCorrectNeeded * 1000 ) / 10 } %</td>
50
+ <td><span class="hide-for-large">Words completed: </span> ${ Math . round ( indexRanges [ indexRange ] . wordsDone / indexRanges [ indexRange ] . totalWords * 1000 ) / 10 } %</td></tr>` ) ;
51
51
}
52
52
53
53
for ( const level in levels ) {
54
54
$ ( "#byLevelTable tbody" ) . append ( `<tr>
55
- <td>${ level } </td>
56
- <td>${ Math . round ( levels [ level ] . nCorrect / levels [ level ] . totalCorrectNeeded * 1000 ) / 10 } %</td>
57
- <td>${ Math . round ( levels [ level ] . wordsDone / levels [ level ] . totalWords * 1000 ) / 10 } %</td></tr>` ) ;
55
+ <td><span class="hide-for-large">Level </span> ${ level } </td>
56
+ <td><span class="hide-for-large">Progress to goal: </span> ${ Math . round ( levels [ level ] . nCorrect / levels [ level ] . totalCorrectNeeded * 1000 ) / 10 } %</td>
57
+ <td><span class="hide-for-large">Words completed: </span> ${ Math . round ( levels [ level ] . wordsDone / levels [ level ] . totalWords * 1000 ) / 10 } %</td></tr>` ) ;
58
58
}
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ <h1>Learning progress</h1>
40
40
41
41
< div class ="grid-container section ">
42
42
< div >
43
- < h5 > By word index</ h5 >
43
+ < h4 > By word index</ h4 >
44
44
< div >
45
45
< table id ="byIndexTable " class ="stack ">
46
46
< thead >
@@ -54,9 +54,11 @@ <h5>By word index</h5>
54
54
</ table >
55
55
</ div >
56
56
</ div >
57
+ </ div >
57
58
59
+ < div class ="grid-container section ">
58
60
< div >
59
- < h5 > By level</ h5 >
61
+ < h4 > By level</ h4 >
60
62
< div >
61
63
< table id ="byLevelTable " class ="stack ">
62
64
< thead >
You can’t perform that action at this time.
0 commit comments