aboutsummaryrefslogtreecommitdiff
path: root/app/templates/demo/evaluate.html
blob: 225dadef1e69ccc383fff8cb0bdce7992b8612e9 (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
{% 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>

<script src="//d3js.org/d3.v5.min.js"></script>
<script src="{{ url_for('static', filename='js/makeChart.js') }}"></script>
<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 %}