Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
- fixed missing えん in answer in lesson 3, literacy 8. (#263)
- fixed exercise scores bugging out when switching to another edition.
  • Loading branch information
SethClydesdale committed Apr 18, 2024
1 parent 70f6120 commit 1a39479
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lessons/lesson-3/literacy-8/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1><a href="../../../" id="home-link" class="edition-icon second-ed">Genki Stud
'<div class="problem">¥140 {百四十円|ひゃくよんじゅうえん|furigana}</div>'+
'<div class="problem">¥251 {二百五十一円|にひゃくごじゅういちえん|furigana}</div>'+
'<div class="problem">¥5,420 {五千四百二十円|ごせんよんひゃくにじゅうえん|furigana}</div>'+
'<div class="problem">¥6,070 {六千七十円|ろくせんななじゅう|furigana}</div>'+
'<div class="problem">¥6,070 {六千七十円|ろくせんななじゅうえん|furigana}</div>'+
'</div>'+

'<div>'+
Expand Down
6 changes: 3 additions & 3 deletions resources/javascript/genki.js
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@
var lesson = Genki.active.exercise[0],
genkiEdition = localStorage.GenkiEdition,
lessonsResults = JSON.parse(localStorage.Results);

if(!lessonsResults[genkiEdition]) lessonsResults[genkiEdition] = {};

var editionLessonsResults = lessonsResults[genkiEdition];
Expand Down Expand Up @@ -2194,8 +2194,8 @@
localStorage.GenkiEdition = /lessons-3rd/.test(window.location.pathname) ? '3rd' : '2nd';

// Create storage for lessons results for specific edition
if (!localStorage.Results) {
var results = {};
if (!localStorage.Results || !new RegExp(localStorage.GenkiEdition).test(localStorage.Results)) {
var results = localStorage.Results ? JSON.parse(localStorage.Results) : {};
results[localStorage.GenkiEdition] = {};
localStorage.Results = JSON.stringify(results);
}
Expand Down
2 changes: 1 addition & 1 deletion resources/javascript/genki.min.js

Large diffs are not rendered by default.

0 comments on commit 1a39479

Please sign in to comment.