updated HTML Page

This commit is contained in:
Francesco Mangiacrapa 2024-05-02 15:12:03 +02:00
parent f2f3573451
commit a93e690f0c
1 changed files with 11 additions and 5 deletions

View File

@ -61,7 +61,7 @@ public class Geoportal_HTML_Page {
+ " async function playPDFPoll() {\n" + " async function playPDFPoll() {\n"
+ " const response_object = await fetchPDF_URL();\n" + " const response_object = await fetchPDF_URL();\n"
+ " try {\n" + " try {\n"
+ " console.log(\"json response \" + JSON.stringify(error_msg));\n" + " console.log(\"json response \" + error_msg);\n"
+ " if (response_object.state === \"OK\") {\n" + " if (response_object.state === \"OK\") {\n"
+ " if (!(response_object.url === null) && !(response_object.url === undefined)) {\n" + " if (!(response_object.url === null) && !(response_object.url === undefined)) {\n"
+ " window.location.replace(response_object.url);\n" + " window.location.replace(response_object.url);\n"
@ -86,15 +86,21 @@ public class Geoportal_HTML_Page {
+ " inner_div.innerHTML = error_msg;\n" + " inner_div.innerHTML = error_msg;\n"
+ " }\n" + " }\n"
+ "\n" + "\n"
+ " document.onload = function(){\n" + " function setImages() {\n"
+ " document.getElementById('pic1').src= window.location.href + \"img/icon-globe.gif\";\n" + " console.log(\"json setImages \");\n"
+ " document.getElementById('pic2').src= window.location.href + \"img/loading-gears.gif\";\n" + " document.getElementById('pic1').src = window.location.href + \"img/icon-globe.gif\";\n"
+ " document.getElementById('pic2').src = window.location.href + \"img/loading-gears.gif\";\n"
+ " }\n"
+ " \n"
+ " function initPage(){\n"
+ " playPDFPoll();\n"
+ " setImages();\n"
+ " }\n" + " }\n"
+ " </script>\n" + " </script>\n"
+ " <title>D4Science Geoportal - Action</title>\n" + " <title>D4Science Geoportal - Action</title>\n"
+ " </head>\n" + " </head>\n"
+ "\n" + "\n"
+ " <body onload=\"playPDFPoll()\">"; + " <body onload=\"initPage()\">";
newHTML += "<img alt=\"D4Science Logo\" src=\"https://services.d4science.org/image/layout_set_logo?img_id=32727\"><br />"; newHTML += "<img alt=\"D4Science Logo\" src=\"https://services.d4science.org/image/layout_set_logo?img_id=32727\"><br />";