From c719c87225d141403a50c1210ced1cdf623c723d Mon Sep 17 00:00:00 2001 From: Stan Date: Mon, 24 Nov 2025 21:35:06 -0500 Subject: [PATCH] modifier script pour erreur si element inexistant --- www/css/style.css | 2 ++ www/js/script.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/css/style.css b/www/css/style.css index 6fd5e74..abc6a59 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -21,6 +21,8 @@ display: block; background-color: yellow; font-weight: bold; + color: black; + } body { min-height: 100vh; diff --git a/www/js/script.js b/www/js/script.js index 6814678..091278b 100644 --- a/www/js/script.js +++ b/www/js/script.js @@ -1,7 +1,7 @@ window.onload = function () { setTimeout(function () { - document.getElementById('message').innerHTML = - 'The page has finished loading! After 2 second'; +/* document.getElementById('message').innerHTML = + 'The page has finished loading! After 2 second'; */ document.getElementById("updateDate").setAttribute("id", "updateDateV"); }, 2000); }; \ No newline at end of file