Home

accessibility.js

This script handles user accessibility preferences: - Dark / Light theme - Visually impaired mode (adapted size/contrast) - Filters for different types of color blindness Preferences are stored in localStorage and automatically reapplied when the page loads.
Source:

index.js

This script initializes a Leaflet map providing: - User geolocation - Location search via Nominatim API - POI display via Overpass API (OpenStreetMap) - Filtering by category and search radius adjustment
Source:

Requires

  • module:Leaflet.js
  • module:OverpassAPI
  • module:NominatimAPI

map.js

Module de gestion de la carte interactive pour la création et l'édition de RoadTrips. Architecture : constantes → état → utilitaires → fonctionnalités → init
Source:

Requires

  • module:L
  • module:Swal

messagerie.js

Handles real-time interaction for the messaging form, including AJAX submission, UI auto-resizing, and scrolling.
Source:

modal.js

Provides global functions to open, close, and manage roadtrip-related modals.
Source:

profil.js

Handles image previewing, profile sidebar toggling, and form validation.
Source:

publicRoad.js

Handles the downloading of GPX and PDF files for public roadtrips without leaving the page.
Source:

viewRoadtrip.js

Handles the display of roadtrip routes on Leaflet maps, including: - Drawing routes with numbered markers - Mode of transport selection (car, bike, foot) - ETA and duration calculation via OSRM - Markdown rendering for descriptions
Source:

Requires

  • module:Leaflet.js
  • module:Leaflet.markercluster
  • module:OSRM
  • module:marked.js
  • module:DOMPurify