From a5e9022c237117fed75802a3dbad62e6801a35bc Mon Sep 17 00:00:00 2001 From: Massimo Di Lullo Date: Sat, 1 Jun 2019 20:33:54 -0400 Subject: [PATCH] AutoUpdate Copyright Year Date --- public/js/main.min.js | 1 + resources/js/app.js | 6 +++++- view/fr/index.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/js/main.min.js b/public/js/main.min.js index e69de29..6dfd248 100644 --- a/public/js/main.min.js +++ b/public/js/main.min.js @@ -0,0 +1 @@ +function addCopyrightCurrentDate(){document.querySelector("footer").querySelector("p").innerHTML+=" "+(new Date).getFullYear()}addCopyrightCurrentDate(); \ No newline at end of file diff --git a/resources/js/app.js b/resources/js/app.js index f2c1ef1..ad07685 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,3 +1,7 @@ (function() { + addCopyrightCurrentDate(); +})(); -}); \ No newline at end of file +function addCopyrightCurrentDate() { + document.querySelector('footer').querySelector('p').innerHTML += ' ' + new Date().getFullYear(); +} \ No newline at end of file diff --git a/view/fr/index.html b/view/fr/index.html index b4a81a8..a16f47e 100644 --- a/view/fr/index.html +++ b/view/fr/index.html @@ -48,7 +48,7 @@