Remove unused code.

This commit is contained in:
Edward Betts 2023-09-24 08:52:29 +01:00
parent a7e2d17063
commit 2cf5dbb22e

View file

@ -1,33 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block style %} {% block style %}
<script src="{{ url_for("static", filename="leader-line.min.js") }}"></script>
<style> <style>
.right-images {
position: absolute;
right: -280px;
top: 0;
width: 120px;
}
.left-images {
position: absolute;
right: -140px;
top: 0;
width: 120px;
}
.image {
max-width: 100%;
}
.container {
position: relative;
}
.person { .person {
display: flex; display: flex;
align-items: top; align-items: top;
@ -54,7 +28,7 @@
{% block title %}Conference archive{% endblock %} {% block title %}Conference archive{% endblock %}
{% block content %} {% block content %}
<div class="container"> <div>
{% if show_images %} {% if show_images %}
@ -127,50 +101,3 @@
</div> </div>
{% endblock %} {% endblock %}
{% block script %}
{% if show_images %}
<script>
{# var person_ids = {{ photo_person_ids | tojson }}; #}
var left = {{ left | tojson }};
var right = {{ right | tojson }};
var lines = {};
window.addEventListener('load', function() {
for(var i =0; i < left.length; i++) {
var id = left[i];
var person = document.getElementById('person-' + id);
var image = document.getElementById('image-' + id);
var line = new LeaderLine(LeaderLine.mouseHoverAnchor(person, 'draw'), image);
line.setOptions({startSocket: 'right', endSocket: 'left', path: 'fluid'});
var line2 = new LeaderLine(LeaderLine.mouseHoverAnchor(image, 'draw'), person);
line2.setOptions({startSocket: 'left', endSocket: 'right', path: 'fluid'});
// lines[id] = line;
}
for(var i =0; i < right.length; i++) {
var id = right[i];
var person = document.getElementById('person-' + id);
var image = document.getElementById('image-' + id);
var line = new LeaderLine(LeaderLine.mouseHoverAnchor(person, 'draw'), image);
line.setOptions({startSocket: 'right', endSocket: 'left', path: 'fluid'});
var line2 = new LeaderLine(LeaderLine.mouseHoverAnchor(image, 'draw'), person);
line2.setOptions({startSocket: 'left', endSocket: 'right', path: 'fluid'});
// lines[id] = line;
}
});
</script>
{% endif %}
{% endblock %}