mirror of
https://github.com/ZetaKebab/japanese-conjugation-drill.git
synced 2025-01-14 22:08:44 +00:00
Restored furigana hover feature.
This commit is contained in:
parent
21a4323191
commit
280c1296c6
@ -266,4 +266,13 @@ dl.questionOptions dd {
|
|||||||
#quizSection span.first,
|
#quizSection span.first,
|
||||||
#scoreSection span.first {
|
#scoreSection span.first {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
|
ruby.furiganaHover rt, ruby.furiganaHover rp {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
ruby.furiganaHover:hover rt, ruby.furiganaHover:hover rp {
|
||||||
|
opacity: 100;
|
||||||
}
|
}
|
@ -130,7 +130,7 @@ function wordWithFurigana(words) {
|
|||||||
} else if (options["furigana_always"]) {
|
} else if (options["furigana_always"]) {
|
||||||
bits[0] = bits[0] + "<ruby>" + bits[1] + "<rp>(</rp><rt>" + bits[2] + "</rt><rp>)</rp></ruby>" + bits[3];
|
bits[0] = bits[0] + "<ruby>" + bits[1] + "<rp>(</rp><rt>" + bits[2] + "</rt><rp>)</rp></ruby>" + bits[3];
|
||||||
} else {
|
} else {
|
||||||
bits[0] = bits[0] + bits[1] + bits[3];
|
bits[0] = bits[0] + "<ruby class='furiganaHover'>" + bits[1] + "<rp>(</rp><rt>" + bits[2] + "</rt><rp>)</rp></ruby>" + bits[3];
|
||||||
}
|
}
|
||||||
bits.splice(1, 3);
|
bits.splice(1, 3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user