aboutsummaryrefslogtreecommitdiffstats
path: root/web/templates/index.html
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-02-27 11:24:22 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2014-02-27 11:24:22 -0500
commit473ef7e26fc8d2c6b26e66b80d50e49c18fa24f8 (patch)
treea33e209a563490affe14a7b962b6774a008eaa64 /web/templates/index.html
parentc40ad3ecef221e3f3d6a8633687c896603d493a0 (diff)
downloadocr-layer-curation-473ef7e26fc8d2c6b26e66b80d50e49c18fa24f8.tar.gz
Basic tornado app displaying a page image and associated text side by side
Diffstat (limited to 'web/templates/index.html')
-rw-r--r--web/templates/index.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
new file mode 100644
index 0000000..b39017e
--- /dev/null
+++ b/web/templates/index.html
@@ -0,0 +1,14 @@
+{% extends "layout.html" %}
+
+{% block main %}
+ <div id="image_container">
+ <img id="page" src="static/{{page_number}}.png" usemap="#wordmap" />
+ </div>
+ <map name="wordmap">{% for id, coords in areas %}
+ <area href="#" shape="rect" coords="{{coords}}" data-id="{{id}}" />{% end %}
+ </map>
+ <div id="text">
+ {% for id, word in words %}
+ <span id="{{id}}">{{word}}</span> {% end %}
+ </div>
+{% end %}