changed the date in about:home to update automatically

This commit is contained in:
Ryan Nematz 2017-10-06 16:13:43 -04:00
parent 1109ce4d81
commit 3520bd5975
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@
RetroZilla
</a>
-
Copyright 1998-2016,
Copyright 1998-<span id="currentYear"></span>,
<a href="about:credits" class="rzFooterLink">
Contributors
</a>

View File

@ -31,6 +31,10 @@ window.onload = function() {
if (aboutHomeAutofocus == true) {
autoFocus();
}
// set current year
var d = new Date();
var cYear = d.getFullYear();
document.getElementById("currentYear").innerHTML = cYear;
};
// function that runs when the "Search" button is clicked