From 68528599c2772df819cdbdf4b53635076fa5935b Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 15 Apr 2023 15:45:23 +0200 Subject: [PATCH] astro.js replace #countdown innerHTML --- README.md | 2 +- templates/register.html | 2 +- tools/make_image_ipfs_index_carousel.sh | 4 ++-- www/G1PalPay/G1PalPay_fichiers/astro.js | 7 ++++--- www/G1PalPay/index.html | 2 +- www/PasseportTerre/index.html | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9a5fc155..8886ef8f 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ async function fetchAstroport(myURL) { Nous utilisons "astro.js" dans l'Application DEMO ``` - + ``` diff --git a/templates/register.html b/templates/register.html index 8b4619b4..80caded2 100644 --- a/templates/register.html +++ b/templates/register.html @@ -45,7 +45,7 @@ header { - + diff --git a/tools/make_image_ipfs_index_carousel.sh b/tools/make_image_ipfs_index_carousel.sh index ff545e5e..7359be3c 100755 --- a/tools/make_image_ipfs_index_carousel.sh +++ b/tools/make_image_ipfs_index_carousel.sh @@ -87,7 +87,7 @@ echo " " > $html_file echo " - + -

$myHOST :: ${#PLAYERONE[@]} ::

+

$myHOST :: ${#PLAYERONE[@]} ::

diff --git a/www/G1PalPay/G1PalPay_fichiers/astro.js b/www/G1PalPay/G1PalPay_fichiers/astro.js index aeacb116..e0f43761 100644 --- a/www/G1PalPay/G1PalPay_fichiers/astro.js +++ b/www/G1PalPay/G1PalPay_fichiers/astro.js @@ -46,9 +46,6 @@ async function homeAstroportStation(myURL, option = '', duration = 3000) { break; case "aframe": document.getElementById("aframe").src = redirectURL; - if (document.getElementById("countdown").innerHTML !== '') { - document.getElementById("countdown").innerHTML = "OK"; - } break; case "ainfo": ainfo(redirectURL); @@ -58,6 +55,10 @@ async function homeAstroportStation(myURL, option = '', duration = 3000) { } + if (document.getElementById("countdown").innerHTML !== '') { + document.getElementById("countdown").innerHTML = "OK"; + } + } else { elem.innerHTML = timeLeft + " s"; diff --git a/www/G1PalPay/index.html b/www/G1PalPay/index.html index 76a2c73c..c6ccda83 100644 --- a/www/G1PalPay/index.html +++ b/www/G1PalPay/index.html @@ -8,7 +8,7 @@ - + diff --git a/www/PasseportTerre/index.html b/www/PasseportTerre/index.html index ba558d7d..6ea7ca8d 100644 --- a/www/PasseportTerre/index.html +++ b/www/PasseportTerre/index.html @@ -24,7 +24,7 @@ - +