From 813bbaaa44cf83e0f6a1e4c38c68c3f0a3161665 Mon Sep 17 00:00:00 2001 From: ludger Date: Thu, 27 Sep 2018 10:17:17 +0200 Subject: [PATCH] Added date/username in the form --- frontpage/index2.html | 11 +++++++++-- frontpage/js/main.js | 12 ++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/frontpage/index2.html b/frontpage/index2.html index e6d0084..c3e23b5 100644 --- a/frontpage/index2.html +++ b/frontpage/index2.html @@ -181,8 +181,15 @@
- - +

+
+ + +
+
+ + +
diff --git a/frontpage/js/main.js b/frontpage/js/main.js index 0a88c97..dc305f4 100644 --- a/frontpage/js/main.js +++ b/frontpage/js/main.js @@ -55,4 +55,16 @@ $(function(){ }); + var d = new Date(); + + var month = d.getMonth()+1; + var day = d.getDate(); + + var output = + + ((''+day).length<2 ? '0' : '') + day + '/' + + ((''+month).length<2 ? '0' : '') + month + '/' + + d.getFullYear(); + $(".date").append(output); + }); \ No newline at end of file