From a2834c1f2590eeb73789da00723a5fc48bdf103e Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 23 Sep 2025 12:18:10 +0200 Subject: [PATCH] up home --- oedb/resources/demo/demo_main.py | 103 ++++++++----------------------- 1 file changed, 26 insertions(+), 77 deletions(-) diff --git a/oedb/resources/demo/demo_main.py b/oedb/resources/demo/demo_main.py index 1a971dc..8eb84e4 100644 --- a/oedb/resources/demo/demo_main.py +++ b/oedb/resources/demo/demo_main.py @@ -228,26 +228,28 @@ class DemoMainResource: #
#

OpenStreetMap Authentication

# -# -# -#
--> + document.addEventListener('DOMContentLoaded', function() { + fetchEvents(); + + if (window.osmAuth) { + const clientId = document.getElementById('osmClientId').value; + const redirectUri = document.getElementById('osmRedirectUri').value; + const authSection = document.getElementById('auth-section'); + + // Only replace if osmAuth is loaded and has renderAuthSection method + if (osmAuth.renderAuthSection) { + authSection.innerHTML = osmAuth.renderAuthSection(clientId, redirectUri); + } + } + }); + + -->

API Endpoints: