Hi Nayeen,
and thx for your response. with the following Link you can see a screenshot.
In English the message would be “Download will be available from 31. December 2099 02:00 AM. The page where we use your plugin is a closed page so I am not able to give you access to it. Because of the Server Time the shown time is wrong and we want do delete the time information in the alert-message.
Is there a way to do this?
I found a way to change the alert-message string when the page is loaded first time. Here I use the following code in a html-modul on the page.
<script>
// Wählen Sie alle Elemente mit der Klasse “alert” aus
const alertElements = document.querySelectorAll(‘.alert’);
// Schleife durch alle Elemente und aktualisiere den Textinhalt
alertElements.forEach(alertElement ► {
let alertText = alertElement.textContent;
alertText = alertText.slice(0, -9);
alertElement.textContent = alertText;
});
</script>
But if you have more downloads then to be shown on the page, you have to change pages inside the download modul and then it is not working any more because the main page is not loading again.
And that is my big problem.
Best thing would be to get a configuration point where you can select if you want to have the time shown or not.
Greetings
Matthias