Déplace les scripts custom avnt le script générique
This commit is contained in:
parent
d98d0e5b82
commit
d798fdfa01
1 changed files with 2 additions and 3 deletions
|
@ -18,6 +18,8 @@
|
|||
<script src="{% static 'vendor/jquery/jquery-3.5.1.min.js' %}"></script>
|
||||
{# <script src="{% static 'elections/js/main.js' %}"></script> #}
|
||||
|
||||
{% block extra_head %}{% endblock extra_head %}
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// Delete notifications
|
||||
|
@ -61,7 +63,6 @@
|
|||
|
||||
$modalCloses.forEach(function($el) {
|
||||
$el.addEventListener('click', (event) => {
|
||||
event.stopPropagation();
|
||||
document.documentElement.classList.remove('is-clipped');
|
||||
$modals.forEach(function($el) {
|
||||
$el.classList.remove('is-active');
|
||||
|
@ -106,8 +107,6 @@
|
|||
});
|
||||
|
||||
</script>
|
||||
|
||||
{% block extra_head %}{% endblock extra_head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue