diff --git a/Gruntfile.js b/Gruntfile.js
index 32a337f5..5e84bbee 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -222,7 +222,8 @@ module.exports = function (grunt) {
'src/js/dbSNP-import/dbSNP-import-progress.js',
'src/js/rs-release/rs-release.js',
'src/js/eva.js',
- 'src/js/eva-google-analytics.js '
+ 'src/js/eva-google-analytics.js ',
+ 'src/js/footer/footer.js ',
],
dest: '<%= build.dir %>/js/eva-<%= meta.version.eva %>.js'
},
@@ -249,7 +250,6 @@ module.exports = function (grunt) {
ebi_framework_js: {
src: [
'lib/EBI-Framework/js/cookiebanner.js',
- 'lib/EBI-Framework/js/foot.js',
'lib/EBI-Framework/js/script.js',
'lib/EBI-Framework/libraries/foundation-6/js/foundation.js',
'lib/EBI-Framework/js/foundationExtendEBI.js',
diff --git a/src/index.html b/src/index.html
index 3ac20ba1..47a37623 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1382,8 +1382,9 @@
Reporting
-
+
+
diff --git a/src/js/footer/footer.js b/src/js/footer/footer.js
new file mode 100644
index 00000000..5874f7b4
--- /dev/null
+++ b/src/js/footer/footer.js
@@ -0,0 +1,70 @@
+/**
+ * Copyright (c) EMBL-EBI 2015
+ *
+ * This file is a copy of foot.js from EBI-Framework V1.1 (https://github.com/ebiwd/EBI-Framework/blob/v1.1/js/foot.js)
+ * (Commit - https://github.com/ebiwd/EBI-Framework/tree/17a235abb0d2c14493752b248afa23c83de48aca)
+ * This is a workaround for adding couple of links in the footer (Services section) which are not present in EBI-Framework V1.1
+ * When updating the website, make sure to remove this and use the footer code provided by the EBI-Framework
+ */
+(function updateFoot() {
+ var html = '' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + '';
+
+ function init() {
+ try {
+ var foot = document.getElementById('global-nav-expanded');
+ foot.innerHTML = html;
+ } catch (err) {
+ setTimeout(init, 500);
+ }
+ }
+ init();
+})();
+
+(function updateFooterMeta() {
+ var d = new Date();
+ var html = '';
+
+ function init() {
+ try {
+ var foot = document.getElementById('ebi-footer-meta');
+ foot.innerHTML = html;
+ } catch (err) {
+ setTimeout(init, 500);
+ }
+ }
+ init();
+})();
+(function includeScripts() {
+ var requireScripts = ['//www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.1/js/cookiebanner.js', '//www.ebi.ac.uk/web_guidelines/EBI-Framework/v1.1/js/script.js', '//www.ebi.ac.uk/web_guidelines/js/downtime.js?' + Math.round(new Date().getTime() / 3600000)];
+
+ function init() {
+ try {
+ var existingScripts = document.getElementsByTagName('script');
+ var gotScript, i, j, putScript;
+ for (j = 0; j < requireScripts.length; j++) {
+ for (gotScript = false, i = 0; i < existingScripts.length; i++)
+ if (existingScripts[i].src.indexOf(requireScripts[j]) !== -1)
+ gotScript = true;
+ if (!gotScript) {
+ putComment = document.createComment(requireScripts[j] + ' automatically inserted');
+ putScript = document.createElement('script');
+ putScript.type = 'text/javascript';
+ putScript.src = requireScripts[j];
+ document.body.appendChild(putComment);
+ document.body.appendChild(putScript);
+ }
+ }
+ } catch (err) {
+ setTimeout(init, 500);
+ }
+ }
+ init();
+})();