KankenOnline/kanken_online/templates/kanji.html

44 lines
1.9 KiB
HTML
Raw Normal View History

2024-10-14 10:26:11 +00:00
{% extends 'base.html' %}
2024-10-14 10:34:59 +00:00
{% block scripts %}<script src="/static/kanji.js" defer></script>{%endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ url_for('static', filename='kanji.css') }}">
{% endblock %}
2024-10-14 10:26:11 +00:00
{% block header %}
2024-10-14 10:49:16 +00:00
<h1>{% block title %}{{localize("kanji")}} - {{ kanji.character }}{% endblock %}</h1>
2024-10-14 10:26:11 +00:00
{% endblock %}
{% block content %}
<div id="kanji-and-meaning">
<div id="kanji-box">
<div id="character-box">
<span id="kanji">{{ kanji.character }}</span>
</div>
<div id="metadata-box">
<span id="joyo-class">{{ kanji.is_joyo }}</span>
<span id="level">{{ kanji.level }}級</span>
<span id="stroke-count">{{ kanji.strokes }}</span> (<span id="radical">{{ kanji.radical }}</span> + <span id="radical-added-strokes">{{ kanji.added_strokes }}</span>)
2024-10-14 10:26:11 +00:00
</div>
</div>
<div id="meaning-box">
<p id="meanings">{{ kanji.meanings }}</p>
</div>
</div>
<div id="readings-and-glyph-origin">
<div id="reading-box">
<ul id="reading-list-list">
<li id="goon"><ul class="reading-list">{% for reading in kanji.goon %}<li class="goon-reading">{{reading}}</li>{% endfor %}</ul></li>
<li id="kanon"><ul class="reading-list">{% for reading in kanji.kanon %}<li class="kanon-reading">{{reading}}</li>{% endfor %}</ul></li>
<li id="kanyoon"><ul class="reading-list">{% for reading in kanji.kanyoon %}<li class="kanyoon-reading">{{reading}}</li>{% endfor %}</ul></li>
<li id="toon"><ul class="reading-list">{% for reading in kanji.toon %}<li class="toon-reading">{{reading}}</li>{% endfor %}</ul></li>
<li id="soon"><ul class="reading-list">{% for reading in kanji.soon %}<li class="soon-reading">{{reading}}</li>{% endfor %}</ul></li>
<li id="kun"><ul class="reading-list">{% for reading in kanji.kun %}<li class="kun-reading">{{reading}}</li>{% endfor %}</ul></li>
2024-10-14 10:26:11 +00:00
</ul>
</div>
<div id="glyph-origin-box">
<p id="glyph-origin">{{ kanji.glyph_origin }}</p>
</div>
</div>
{% endblock %}