Show xanaflight in xanaviewer

This commit is contained in:
Edward Betts 2018-12-05 14:39:01 +00:00
parent 9eecd4f490
commit 155c15741d
5 changed files with 446 additions and 6 deletions

View file

@ -0,0 +1,62 @@
<!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='bootstrap4/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">
</div>
<script src="{{ url_for('static', filename='jquery/jquery.js') }}"></script>
<script src="{{ url_for('static', filename='bootstrap/js/bootstrap.js') }}"></script>
<script>
</script>
<script src="{{ url_for('static', filename='js/interact.js') }}"></script>
<script src="{{ url_for('static', filename='js/xanaflight.js') }}"></script>
<script src="{{ url_for('static', filename='handlebars/handlebars.js') }}"></script>
<script>
var get_span_path = "{{ url_for('.get_span') }}";
var docs = {{ docs | tojson }};
$(function() {
size_svg();
$(window).resize(size_svg);
reset(); // clear all documents and bridges
docs.forEach(fulfil);
});
</script>
</body>
</html>