GIME
posted this
05 January 2023
Hi,
In my question there is the footer...
And there is the copyright... with years.
For example:
<p>All rights reserved (C) John Doe, 2017-2021.</p>
So... There can be a JavaScript for the second year to always be the actual year automatically.
The example footer text in a "notepad edited" tml file would be like this:
<p>All rights reserved (C) John Doe, 2017-<span id="_CopyRight_ThisYear">2021</span></p>
<script>
var d = new Date();
var n = d.getFullYear();
document.getElementById("_CopyRight_ThisYear").innerHTML = n;
</script>
So...
How to make this SPAN, and how to add the script to it in NicePage?
Thanks,
Gime
2023.jan.05.th. 01.45 CET
Hi,
In my question there is the footer...
And there is the copyright... with years.
For example:
<p>All rights reserved (C) John Doe, 2017-2021.</p>
So... There can be a JavaScript for the second year to always be the actual year automatically.
The example footer text in a "notepad edited" tml file would be like this:
<p>All rights reserved (C) John Doe, 2017-<span id="_CopyRight_ThisYear">2021</span></p>
<script>
var d = new Date();
var n = d.getFullYear();
document.getElementById("_CopyRight_ThisYear").innerHTML = n;
</script>
So...
How to make this SPAN, and how to add the script to it in NicePage?
Thanks,
Gime
2023.jan.05.th. 01.45 CET
Vote to pay developers attention to this features or issue.