aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index 72fcb1c..639e743 100644
--- a/static/script.js
+++ b/static/script.js
@@ -26,6 +26,7 @@ function display_example(i) {
$("#gen_ex_display").html(examples[i].furi);
$("#gen_ex_en").html(examples[i].en);
$("#gen_ex_words").html(examples[i].vocab);
+ $("#gen_ex_kanji").html(examples[i].kanji);
$("#gen_section").addClass("gen_hidden");
current = i;
revealed = false;
@@ -45,4 +46,5 @@ function spacebar() {
$("#gen_section").removeClass("gen_hidden");
revealed = true;
}
+ window.scrollTo(0, 0);
}