2015-10-05 13:52:19 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
2015-10-19 23:33:26 +01:00
|
|
|
<div class="modal fade" id="modal-filter" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title">Filter</h4>
|
|
|
|
</div>
|
|
|
|
<form id="filter-form">
|
|
|
|
<div class="modal-body">
|
|
|
|
<input type="text" pattern="\d[\d-,]*\d*" class="form-control" id="filter-input" placeholder="e.g. 1-3,5,8">
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
<button class="btn btn-primary" type="submit">Save changes</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
<nav class="navbar navbar-default">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<a class="navbar-brand" href="{{ url_for('show_home') }}">
|
|
|
|
<img alt="Brand" height="24" width="24" src="{{ url_for('static', filename='burned.png')}}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2015-10-19 23:33:26 +01:00
|
|
|
<li>
|
|
|
|
<button type="button" id="itemfilter" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#modal-filter">
|
|
|
|
Filter
|
|
|
|
</button>
|
|
|
|
</li>
|
2015-10-05 16:48:29 +01:00
|
|
|
<li class="dropdown">
|
2015-10-19 23:33:26 +01:00
|
|
|
<button class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown">Stats</button>
|
2015-10-05 16:48:29 +01:00
|
|
|
<ul class="dropdown-menu" aria-labelledby="dLabel">
|
|
|
|
<li><span id="radical-num"></span> Radicals</li>
|
|
|
|
<li><span id="kanji-num"></span> Kanji</li>
|
|
|
|
<li><span id="vocab-num"></span> Vocabulary</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-10-22 15:37:07 +01:00
|
|
|
<li id="api-refresh" class="navbar-text" data-toggle="tooltip" data-placement="bottom" title="Last API Refresh: {{ current_user.last_updated|datetime_format }}. Click to refresh."><span><img alt="avatar" src="http://www.gravatar.com/avatar/{{ current_user.gravatar }}?s=24"></span> {{ current_user.username }}</li>
|
2015-10-05 13:53:53 +01:00
|
|
|
<li><a href="{{ url_for('logout') }}">Logout</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="container-fluid">
|
2015-10-05 23:49:59 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">
|
|
|
|
<div id="error-area" class="alert alert-danger alert-dismissible collapse" role="alert">
|
2015-10-19 23:33:26 +01:00
|
|
|
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button><div id="error-text"></div>
|
2015-10-06 00:03:07 +01:00
|
|
|
</div>
|
2015-10-07 18:15:17 +01:00
|
|
|
<div id="success-area" class="alert alert-success alert-dismissible collapse" role="alert">
|
2015-10-06 00:03:07 +01:00
|
|
|
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>API Refreshed!
|
|
|
|
</div>
|
2015-10-05 23:49:59 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center"><p class="question-size" id="question-area"></p><img id="question-image" src=""></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2015-10-24 01:29:37 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"> </span>
|
|
|
|
<label for="kana"></label><input type="text" autocomplete=off id="kana" class="form-control answer-size answer-form">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button id="submit-answer" class="btn btn-default answer-form" type="button"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></button>
|
|
|
|
</span>
|
2015-10-04 02:41:16 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 13:53:53 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2015-10-24 01:29:37 +01:00
|
|
|
<br />
|
2015-10-05 13:53:53 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div id="answer" class="col-md-12 text-center help-size hidden">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">
|
|
|
|
<button class="btn btn-default btn-lg" id="get-help">Reveal Answer(s)</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 15:48:57 +01:00
|
|
|
<script src="{{ url_for('static', filename='wanakana.min.js')}}"></script>
|
2015-10-05 16:48:29 +01:00
|
|
|
<script defer src="{{ url_for('static', filename='quiz_item.js')}}"></script>
|
2015-10-05 13:52:19 +01:00
|
|
|
{% endblock %}
|