recup sources
This commit is contained in:
parent
86622a19ea
commit
65fe2a35f9
155 changed files with 50969 additions and 0 deletions
19
assets/table-map-toggles.js
Normal file
19
assets/table-map-toggles.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Gestion du tri des tableaux
|
||||
// import Tablesort from 'tablesort';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// Gestion du toggle gouttes/ronds sur la carte
|
||||
const toggle = document.getElementById('toggleMarkers');
|
||||
if (toggle && window.updateMarkers) {
|
||||
toggle.addEventListener('change', (e) => {
|
||||
window.updateMarkers(e.target.value);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Exposer une fonction pour (ré)appliquer le tri si besoin
|
||||
export function applyTableSort() {
|
||||
document.querySelectorAll('.js-sort-table').forEach(table => {
|
||||
new window.Tablesort(table);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue