Skip to content

Commit

Permalink
10527 404static.xhtml has an old date in the footer (2023 is hard-cod…
Browse files Browse the repository at this point in the history
…ed) and update URLs (#10535)

* Javascript updates the year automatically and the URLs are customised.

* add taps

* only change year and and all the other errors are still there.
  • Loading branch information
BenediktMeierUIT authored Sep 12, 2024
1 parent 4b96cec commit ba660c3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/webapp/404static.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<div class="container">
<div class="row">
<div class="col-sm-8 small">
<p>Copyright &#169; 2023, The President &#38; Fellows of Harvard College | <a href="http://best-practices.dataverse.org/harvard-policies/harvard-privacy-policy.html" target="_blank">Privacy Policy</a>
<p>Copyright &#169;<span id="current-year"></span>, The President &#38; Fellows of Harvard College | <a href="http://best-practices.dataverse.org/harvard-policies/harvard-privacy-policy.html" target="_blank">Privacy Policy</a>
</p>
</div>
<div class="col-sm-4 text-right">
Expand All @@ -106,4 +106,13 @@
</div>
</div>
</body>
</html>

<script>
//<![CDATA[
const d = new Date();
let year = d.getFullYear();
document.getElementById("current-year").innerHTML = " " + d.getFullYear();
//]]>
</script>

</html>

0 comments on commit ba660c3

Please sign in to comment.