/* @ 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); }