Change names

This commit is contained in:
toasted-nutbread 2020-03-29 11:19:43 -04:00
parent aa2a0c09f4
commit a7da4416d7
5 changed files with 11 additions and 11 deletions

View File

@ -62,7 +62,7 @@ h2 { border-bottom-color: #2f2f2f; }
.term-definition-list, .term-definition-list,
.term-pitch-accent-group-list, .term-pitch-accent-group-list,
.term-pitch-accent-expression-list, .term-pitch-accent-disambiguation-list,
.kanji-glossary-list { .kanji-glossary-list {
color: #888888; color: #888888;
} }

View File

@ -62,7 +62,7 @@ h2 { border-bottom-color: #eeeeee; }
.term-definition-list, .term-definition-list,
.term-pitch-accent-group-list, .term-pitch-accent-group-list,
.term-pitch-accent-expression-list, .term-pitch-accent-disambiguation-list,
.kanji-glossary-list { .kanji-glossary-list {
color: #777777; color: #777777;
} }

View File

@ -489,23 +489,23 @@ button.action-button {
margin-right: 0.375em; margin-right: 0.375em;
} }
.term-pitch-accent-expression-list { .term-pitch-accent-disambiguation-list {
padding-right: 0.25em; padding-right: 0.25em;
} }
.term-pitch-accent-expression-list[data-count="0"] { .term-pitch-accent-disambiguation-list[data-count="0"] {
display: none; display: none;
} }
.term-pitch-accent-expression-list:before { .term-pitch-accent-disambiguation-list:before {
content: "("; content: "(";
} }
.term-pitch-accent-expression-list:after { .term-pitch-accent-disambiguation-list:after {
content: " only)"; content: " only)";
} }
.term-pitch-accent-expression+.term-pitch-accent-expression:before { .term-pitch-accent-disambiguation+.term-pitch-accent-disambiguation:before {
content: ", "; content: ", ";
} }

View File

@ -45,8 +45,8 @@
</defs> </defs>
</svg></template> </svg></template>
<template id="term-pitch-accent-group-template"><li class="term-pitch-accent-group"><span class="term-pitch-accent-group-tag-list tag-list"></span><ul class="term-pitch-accent-list"></ul></li></template> <template id="term-pitch-accent-group-template"><li class="term-pitch-accent-group"><span class="term-pitch-accent-group-tag-list tag-list"></span><ul class="term-pitch-accent-list"></ul></li></template>
<template id="term-pitch-accent-expression-template"><span class="term-pitch-accent-expression"></span></template> <template id="term-pitch-accent-disambiguation-template"><span class="term-pitch-accent-disambiguation"></span></template>
<template id="term-pitch-accent-template"><li class="term-pitch-accent"><span class="term-pitch-accent-tag-list tag-list"></span><span class="term-pitch-accent-expression-list"></span><span class="term-pitch-accent-characters"></span><span class="term-pitch-accent-position"></span><span class="term-pitch-accent-details"><svg class="term-pitch-accent-graph" xmlns="http://www.w3.org/2000/svg"><path class="term-pitch-accent-graph-line" /><path class="term-pitch-accent-graph-line-tail" /></svg></span></li></template> <template id="term-pitch-accent-template"><li class="term-pitch-accent"><span class="term-pitch-accent-tag-list tag-list"></span><span class="term-pitch-accent-disambiguation-list"></span><span class="term-pitch-accent-characters"></span><span class="term-pitch-accent-position"></span><span class="term-pitch-accent-details"><svg class="term-pitch-accent-graph" xmlns="http://www.w3.org/2000/svg"><path class="term-pitch-accent-graph-line" /><path class="term-pitch-accent-graph-line-tail" /></svg></span></li></template>
<template id="term-pitch-accent-character-template"><span class="term-pitch-accent-character"><span class="term-pitch-accent-character-inner"></span></span></template> <template id="term-pitch-accent-character-template"><span class="term-pitch-accent-character"><span class="term-pitch-accent-character-inner"></span></span></template>
<template id="kanji-entry-template"><div class="entry" data-type="kanji"> <template id="kanji-entry-template"><div class="entry" data-type="kanji">

View File

@ -318,7 +318,7 @@ class DisplayGenerator {
n = node.querySelector('.term-pitch-accent-tag-list'); n = node.querySelector('.term-pitch-accent-tag-list');
DisplayGenerator._appendMultiple(n, this.createTag.bind(this), tags); DisplayGenerator._appendMultiple(n, this.createTag.bind(this), tags);
n = node.querySelector('.term-pitch-accent-expression-list'); n = node.querySelector('.term-pitch-accent-disambiguation-list');
DisplayGenerator._appendMultiple(n, this.createPitchExpression.bind(this), exclusiveExpressions); DisplayGenerator._appendMultiple(n, this.createPitchExpression.bind(this), exclusiveExpressions);
n = node.querySelector('.term-pitch-accent-characters'); n = node.querySelector('.term-pitch-accent-characters');
@ -346,7 +346,7 @@ class DisplayGenerator {
} }
createPitchExpression(expression) { createPitchExpression(expression) {
const node = this._templateHandler.instantiate('term-pitch-accent-expression'); const node = this._templateHandler.instantiate('term-pitch-accent-disambiguation');
node.textContent = expression; node.textContent = expression;
return node; return node;
} }