ecole: restauration script initialisation popover

This commit is contained in:
nyanloutre 2019-11-01 22:00:16 +01:00
parent d94931eb95
commit 7a3369eb28
Signed by: nyanloutre
GPG Key ID: 194A92D1103ACB2A
1 changed files with 17 additions and 0 deletions

View File

@ -154,4 +154,21 @@
</div>
{% include "common_files/contact.html" with responsable="Nathalie ROHRBACH, Directrice" email="ecole@musique-meyenheim.fr" %}
<script type="text/javascript">
$(function () {
$('[data-toggle="popover"]').popover({trigger: "hover"})
})
appear({
elements: function elements(){
// work with all elements with the class "track"
return document.getElementsByClassName('track');
},
appear: function appear(el){
console.log('visible', el);
$(el).popover('show');
},
});
</script>
{% endblock %}