blob: 3f20c94e969e1285846e17e8c7a07dd146e978e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="{{url_for('static', filename='css/demo/evaluate.css')}}">
{% endblock %}
{% block app_content %}
<h1>{{ title }}</h1>
<div id="lesson" class="row">
<div class="col-md-8">
{{ text | safe }}
</div>
</div>
<div class="graph-wrapper">
<div class="row">
<p><b>Your annotation:</b></p>
</div>
<div id="graph_user"></div>
<div class="row">
<p><b>Ground truth:</b></p>
</div>
<div id="graph_true"></div>
</div>
<div class="row">
<div id="next-btn" class="col-md-10">
{{ wtf.quick_form(form, button_map={'submit': 'primary'}) }}
</div>
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="//d3js.org/d3.v5.min.js"></script>
{% if is_multi %}
<script src="{{ url_for('static', filename='js/makeChartMulti.js') }}"></script>
{% else %}
<script src="{{ url_for('static', filename='js/makeChart.js') }}"></script>
{% endif %}
<script>viewAnnotations(
"#graph_user",
{{ data.chart_data | tojson }},
{{ annotations_user | tojson }}
);
</script>
<script>
viewAnnotations(
"#graph_true",
{{ data.chart_data | tojson }},
{{ annotations_true | tojson }}
);
</script>
{% endblock %}
|