aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/handlebars.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-24 12:49:10 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-24 12:49:10 +0300
commit8400f0e4c0d0dc8253fbf1efcd7459c218a6886c (patch)
tree4ea28b3c5080c5cd34189b65289d0aca47c64e13 /ext/bg/js/handlebars.js
parente034ca3ad4f88282e8dfec27df5cb7c55e0a47c6 (diff)
Anki: use CSS classes for term frequency color
Diffstat (limited to 'ext/bg/js/handlebars.js')
-rw-r--r--ext/bg/js/handlebars.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/bg/js/handlebars.js b/ext/bg/js/handlebars.js
index 72908cab..66d5fa2b 100644
--- a/ext/bg/js/handlebars.js
+++ b/ext/bg/js/handlebars.js
@@ -75,18 +75,6 @@ function handlebarsMultiLine(options) {
return options.fn(this).split('\n').join('<br>');
}
-function handlebarsTermFrequencyColor(options) {
- const termFrequency = options.fn(this);
-
- if (termFrequency === 'popular') {
- return '#0275d8';
- } else if (termFrequency === 'rare') {
- return '#999';
- } else {
- return 'inherit';
- }
-}
-
function handlebarsRegisterHelpers() {
if (Handlebars.partials !== Handlebars.templates) {
Handlebars.partials = Handlebars.templates;
@@ -95,7 +83,6 @@ function handlebarsRegisterHelpers() {
Handlebars.registerHelper('furiganaPlain', handlebarsFuriganaPlain);
Handlebars.registerHelper('kanjiLinks', handlebarsKanjiLinks);
Handlebars.registerHelper('multiLine', handlebarsMultiLine);
- Handlebars.registerHelper('termFrequencyColor', handlebarsTermFrequencyColor);
}
}