Skip to content

Commit ba660c3

Browse files
10527 404static.xhtml has an old date in the footer (2023 is hard-coded) 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.
1 parent 4b96cec commit ba660c3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/webapp/404static.xhtml

+11-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<div class="container">
9494
<div class="row">
9595
<div class="col-sm-8 small">
96-
<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>
96+
<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>
9797
</p>
9898
</div>
9999
<div class="col-sm-4 text-right">
@@ -106,4 +106,13 @@
106106
</div>
107107
</div>
108108
</body>
109-
</html>
109+
110+
<script>
111+
//<![CDATA[
112+
const d = new Date();
113+
let year = d.getFullYear();
114+
document.getElementById("current-year").innerHTML = " " + d.getFullYear();
115+
//]]>
116+
</script>
117+
118+
</html>

0 commit comments

Comments
 (0)