firts commit
This commit is contained in:
9
assets/js/main.js
Normal file
9
assets/js/main.js
Normal file
@@ -0,0 +1,9 @@
|
||||
/* @ default js*/
|
||||
function yearNow(textlocation) {
|
||||
//This is a function to substitutes a value into the current year.
|
||||
//Usually good for the footer.
|
||||
var data = new Date();
|
||||
var year;
|
||||
year = data.getFullYear();
|
||||
document.querySelector(textlocation).replaceWith(year);
|
||||
}
|
||||
Reference in New Issue
Block a user