webotf

Chargement…
(function() { const PROXY_URL = ‘https://soliterre.org/api-viewer.php’; const container = document.getElementById(‘webotf-display’); fetch(PROXY_URL) .then(r => r.json()) .then(data => { // Adapter selon la structure réelle retournée par l’API if (!data || data.error) { container.innerHTML = ‘

Erreur de chargement.

‘; return; } // Exemple si data est un tableau de panneaux let html = ‘
    ‘; data.forEach(panneau => { html += `
  • ${panneau.name} — ${panneau.status}
  • `; }); html += ‘
‘; container.innerHTML = html; }) .catch(err => { container.innerHTML = ‘

Impossible de contacter le proxy.

‘; console.error(err); }); })();