Commit aefe88f7 authored by Carlos GO's avatar Carlos GO
Browse files

gallery template

parent f7272342
{% extends "default.html" %}
<head>
</head>
{% block body %}
<b> vernal </b> | \ ˈvər-nᵊl \ <br>
1: of, relating to, or occurring in the spring <br>
2: fresh or new like the spring <br><br>
Click on a motif drawing to see other instances.
<p>
{% for size, motifs in motif_dict.items() %}
<button onclick="toggleShow({{ size }})"> {{ size }}-motifs </button>
<table id="{{ size }}" style="display:none" > <br>
{% for m in motifs %}
<tr>
<td>
<a href="{{url_for('motif_page', motif_type=motif_type, motif_id='{}'.format(m) ) }}">
<img src="{{ url_for('static', filename='{}/{}/0.png'.format(motif_type, m)) }}" width="450px" id="border">
</a></td>
</tr>
{% endfor %}
</table>
{% endfor %}
</p>
<script>
function toggleShow(id) {
var x = document.getElementById(id);
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment