fixing static paths to absolute, fixing csp script blueimp

This commit is contained in:
root
2020-03-15 09:32:54 +00:00
parent 771a9e34c7
commit 58c22cd3c8
40 changed files with 58 additions and 44 deletions

View File

@@ -1,5 +1,13 @@
{# -*-jinja2-*- #}
{% extends "layoutfetbs3.html" %}
{% block head %}
<script src="/galleries/js/blueimp-gallery.min.js"></script>
<script src="/galleries/init.js"></script>
{% endblock %}
{% block content %}
<h1>{{post.title}}</h1>
<small> von {{post.author}} </small>
@@ -27,19 +35,9 @@
</a>
{% endfor %}
</div>
<script src="/galleries/js/blueimp-gallery.min.js"></script>
<script>
document.getElementById('links').onclick = function(event) {
event = event || window.event
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = { index: link, event: event },
links = this.getElementsByTagName('a')
blueimp.Gallery(links, options)
}
</script>
{% endif %}
{% endblock %}