From fb7134204a9cad810794bd5a101c42e8ef99031e Mon Sep 17 00:00:00 2001 From: Ken Hawkins <khawkins98@gmail.com> Date: Tue, 20 Sep 2016 21:10:32 +0100 Subject: [PATCH] Merge footer copyright year insertion from script.js; For #24 --- js/foot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/foot.js b/js/foot.js index 1d001a3d..ec1bdcf8 100644 --- a/js/foot.js +++ b/js/foot.js @@ -20,8 +20,10 @@ } init(); })(); + (function updateFooterMeta() { - var html = '<div class="columns">' + '<p class="address">EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44</p> <p class="legal">Copyright © EMBL-EBI <span class="year">2016</span> | EBI is an outstation of the <a href="http://www.embl.org">European Molecular Biology Laboratory</a> | <a href="//www.ebi.ac.uk/about/privacy">Privacy</a> | <a href="//www.ebi.ac.uk/about/cookies">Cookies</a> | <a href="//www.ebi.ac.uk/about/terms-of-use">Terms of use</a>' + + var d = new Date(); + var html = '<div class="columns">' + '<p class="address">EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44</p> <p class="legal">Copyright © EMBL-EBI ' + d.getFullYear() + ' | EBI is an outstation of the <a href="http://www.embl.org">European Molecular Biology Laboratory</a> | <a href="//www.ebi.ac.uk/about/privacy">Privacy</a> | <a href="//www.ebi.ac.uk/about/cookies">Cookies</a> | <a href="//www.ebi.ac.uk/about/terms-of-use">Terms of use</a>' + '<a class="readmore float-right" href="http://intranet.ebi.ac.uk">Intranet</a>' + '</p>' + '</div>'; @@ -60,4 +62,4 @@ } } // init(); // disable for dev... -})(); \ No newline at end of file +})(); -- GitLab