Browse Source

improved climate zone map modal

master
Youen Toupin 3 years ago
parent
commit
20ab0175d3
  1. 2
      simulator/src/app.ts
  2. 11
      simulator/www/simulator.html

2
simulator/src/app.ts

@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
document.querySelectorAll('.modal-close').forEach(elt => {
document.querySelectorAll('.modal-close, .modal-card-head .delete').forEach(elt => {
elt.addEventListener('click', e => {
closest(elt, e => e.classList.contains('modal')).classList.toggle('is-active', false);
});

11
simulator/www/simulator.html

@ -119,12 +119,15 @@
<div id="zones-map-modal" class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<p class="image">
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Choisissez votre zone climatique</p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<svg id="zones-map" width="587" height="550" version="1.0"></svg>
</p>
</section>
</div>
<button class="modal-close is-large" aria-label="close"></button>
</div>
<script type="text/javascript" src="simulator.js"></script>

Loading…
Cancel
Save