From 4fc3a6aba3f0063fe66a26fc87a661387198b40a Mon Sep 17 00:00:00 2001 From: Anna Prosvirina <anna.prosvirina@etu.univ-nantes.fr> Date: Fri, 2 Jun 2023 10:54:16 +0000 Subject: [PATCH] Update public/js/connexion.js --- public/js/connexion.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/js/connexion.js b/public/js/connexion.js index d178956..5f6078c 100644 --- a/public/js/connexion.js +++ b/public/js/connexion.js @@ -2,6 +2,7 @@ console.log("test") +// Retrieves content for header and footer async function render() { let partials = { header: await fetch('./templates/header.mustache').then(res => res.text()), @@ -32,7 +33,7 @@ async function render() { } }); } - +// Displaying a Success Message window.onload = () => { render().then(() => console.log('Rendered')); -}; \ No newline at end of file +}; -- GitLab