add xanadoc viewer

This commit is contained in:
Edward Betts 2017-02-15 14:59:18 +00:00
parent c4bbc45372
commit 09893c4eff
10 changed files with 6748 additions and 179 deletions

View file

@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title | default("Xanadu") }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap/css/bootstrap.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/xanadoc.css') }}">
</head>
<body>
{% include "navbar.html" %}
<div class="container-fluid">
{% include "flash_msg.html" %}
{% raw %}
<script id="document-template" type="text/x-handlebars-template">
<div class="document {{ doctype }}" id="doc{{ docid }}">
<div class="heading" id="head{{ docid }}">{{ heading }}</div>
<div class="wrapper">
<div class="body" id="body{{ docid }}">
{{{ text }}}
</div>
</div>
</div>
</script>
{% endraw %}
<svg id="svg" version="1.2" xmlns="http://www.w3.org/2000/svg">
</svg>
<div id="top">
<a href="{{ item.url + '/edl' }}" class="btn btn-default">view EDL</a>
</div>
<script src="{{ url_for('static', filename='jquery/jquery.js') }}"></script>
<script src="{{ url_for('static', filename='bootstrap/js/bootstrap.js') }}"></script>
<script>
var get_span_path = "{{ url_for('.get_span') }}";
var doc = {{ doc | tojson }};
</script>
<script src="{{ url_for('static', filename='js/interact.js') }}"></script>
<script src="{{ url_for('static', filename='js/viewer.js') }}"></script>
<script src="{{ url_for('static', filename='handlebars/handlebars.js') }}"></script>
</body>
</html>