export_to_pdf #8
|
@ -61,7 +61,7 @@ public class Geoportal_HTML_Page {
|
|||
+ " async function playPDFPoll() {\n"
|
||||
+ " const response_object = await fetchPDF_URL();\n"
|
||||
+ " try {\n"
|
||||
+ " console.log(\"json response \" + response_object);\n"
|
||||
+ " console.log(\"json response \" + JSON.stringify(error_msg));\n"
|
||||
+ " if (response_object.state === \"OK\") {\n"
|
||||
+ " if (!(response_object.url === null) && !(response_object.url === undefined)) {\n"
|
||||
+ " window.location.replace(response_object.url);\n"
|
||||
|
@ -71,7 +71,7 @@ public class Geoportal_HTML_Page {
|
|||
+ " }, 1000);\n"
|
||||
+ " }\n"
|
||||
+ " } else {\n"
|
||||
+ " showError(response_object.messagge);\n"
|
||||
+ " showError(response_object.message);\n"
|
||||
+ " }\n"
|
||||
+ " } catch (error) {\n"
|
||||
+ " console.log(\"no json response \" + response_object);\n"
|
||||
|
@ -86,6 +86,10 @@ public class Geoportal_HTML_Page {
|
|||
+ " inner_div.innerHTML = error_msg;\n"
|
||||
+ " }\n"
|
||||
+ "\n"
|
||||
+ " document.onload = function(){\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"
|
||||
+ " </script>\n"
|
||||
+ " <title>D4Science Geoportal - Action</title>\n"
|
||||
+ " </head>\n"
|
||||
|
@ -95,13 +99,13 @@ public class Geoportal_HTML_Page {
|
|||
newHTML += "<img alt=\"D4Science Logo\" src=\"https://services.d4science.org/image/layout_set_logo?img_id=32727\"><br />";
|
||||
|
||||
newHTML += "<div id=\"content\">";
|
||||
newHTML += "<img alt=\"Geoportal Icon\" src=\"img/icon-globe.gif\"><br />";
|
||||
newHTML += "<img id=\"pic1\" alt=\"Geoportal Icon\"><br />";
|
||||
newHTML += "<p id=\"title-geo\">Geoportal</p><br />";
|
||||
newHTML += "<div id=\"inner-content\">";
|
||||
newHTML += "<p style=\"font-size: 18px;\">" + action + "</p>";
|
||||
|
||||
if (waiting) {
|
||||
newHTML += "<img alt=\"D4Science Geoportal Loading...\" src=\"img/loading-gears.gif\"><br />";
|
||||
newHTML += "<img id=\"pic2\" alt=\"D4Science Geoportal Loading...\"><br />";
|
||||
}
|
||||
|
||||
newHTML += "<br/><p id=\"message\">" + message + "</p>";
|
||||
|
|
Loading…
Reference in New Issue