From 15541b1c9b23a2caf490446bc7be08d66ef10e99 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 29 Oct 2021 15:00:05 +0200 Subject: chore: update document title Set a default title to static page, then change the title on project view. --- htdocs/index.html | 2 +- htdocs/legal-notice.html | 2 +- htdocs/mentions-legales.html | 2 +- htdocs/src/js/app.js | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'htdocs') diff --git a/htdocs/index.html b/htdocs/index.html index d2fe5fc..47a8592 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -4,7 +4,7 @@ - Armand Philippot + Demo | Armand Philippot diff --git a/htdocs/legal-notice.html b/htdocs/legal-notice.html index 14e807c..7b6c2bc 100644 --- a/htdocs/legal-notice.html +++ b/htdocs/legal-notice.html @@ -4,7 +4,7 @@ - Armand Philippot + Legal Notice | Demo | Armand Philippot diff --git a/htdocs/mentions-legales.html b/htdocs/mentions-legales.html index 523b850..ebfdf52 100644 --- a/htdocs/mentions-legales.html +++ b/htdocs/mentions-legales.html @@ -4,7 +4,7 @@ - Armand Philippot + Mentions légales | Demo | Armand Philippot diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js index 4f5f5a5..57ac458 100644 --- a/htdocs/src/js/app.js +++ b/htdocs/src/js/app.js @@ -247,6 +247,7 @@ function showProject(id) { }); detailsBtn.addEventListener('click', toggleProjectDetails); window.history.pushState({}, currentProject.name, `#${id}`); + document.title = `${currentProject.name} | Demo | Armand Philippot`; main.replaceChildren(preview, details); } -- cgit v1.2.3