index page projets
This commit is contained in:
@@ -186,7 +186,7 @@ function placeProjectsIcons(projectsIcons) {
|
||||
|
||||
const territory = findTerritory(lat, lon);
|
||||
|
||||
console.log(icon.dataset.title, territory);
|
||||
// console.log(icon.dataset.title, territory);
|
||||
|
||||
|
||||
if (territory && localisationMapPlacements[territory]) {
|
||||
@@ -261,8 +261,11 @@ function hidePopup(){
|
||||
|
||||
placeProjectsIcons(projectsIcons);
|
||||
// debugMapPlacement();
|
||||
|
||||
window.addEventListener('resize', placeProjectsIcons(projectsIcons));
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.addEventListener('resize', () => {
|
||||
placeProjectsIcons(projectsIcons)
|
||||
});
|
||||
});
|
||||
|
||||
function debugMapPlacement() {
|
||||
const container = document.querySelector('#sites-map-container');
|
||||
|
||||
Reference in New Issue
Block a user