Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVA-3577 Add survey link and update footer #204

Merged
merged 2 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ <h1><img src="img/eva_logo.png" style="margin-left:-10px;"/><a href="?Home" titl
<div id="content" role="main" class="row">
<section>
<div id="main-content-area" class="columns">
<div class="callout alert" style="text-align: center; background-color: #feff9c; font-size: 15px">
<h6><b>EMBL-EBI User Survey 2024</b></h6>
Do data resources managed by EMBL-EBI and our collaborators make a difference to your work? </br>
Please take 10 minutes to fill in our annual user survey, and help us make the case for why sustaining open data resources is critical for life sciences research.</br>
Survey link: <a href="https://www.surveymonkey.com/r/HJKYKTT?channel=[webpage]" target=”_blank” >https://www.surveymonkey.com/r/HJKYKTT?channel=[webpage]</a>
</div>
<div id="home-page" class="hide-div">
<nav aria-label="You are here:" role="navigation">
<ul class="breadcrumbs">
Expand Down Expand Up @@ -1335,6 +1341,7 @@ <h6>Reporting</h6>
<script type="text/javascript" src="../lib/jsorolla/build/1.1.9/genome-viewer/genome-viewer.js"></script>
<!-- /build -->
<!-- build:script eva-js -->
<script type="text/javascript" src="js/footer/foot.js"></script>
<script type="text/javascript" src="js/eva-manager.js"></script>
<script type="text/javascript" src="js/eva-annotation-model.js"></script>
<script type="text/javascript" src="js/eva-config.js"></script>
Expand Down Expand Up @@ -1376,7 +1383,6 @@ <h6>Reporting</h6>
<!-- /build -->
<!-- build:script ebi_framework -->
<script src="../lib/EBI-Framework/js/cookiebanner.js"></script>
<script src="../lib/EBI-Framework/js/foot.js"></script>
<script src="../lib/EBI-Framework/js/script.js"></script>
<!-- The Foundation theme JavaScript -->
<script src="../lib/EBI-Framework/libraries/foundation-6/js/foundation.js"></script>
Expand Down
70 changes: 70 additions & 0 deletions src/js/footer/foot.js
Original file line number Diff line number Diff line change
@@ -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 = '' + '<div class="columns small-6 medium-2 "> ' + ' <a href="//www.ebi.ac.uk" title="EMBL-EBI"><span class="ebi-logo"></span></a> ' + ' <ul> ' + ' </ul> ' + ' </div> ' + ' ' + ' <div class="columns small-6 medium-2 "> ' + ' <h5 class="services"><a class="services-color" href="//www.ebi.ac.uk/services">Services</a></h5> ' + ' <ul> ' + ' <li class="first"><a href="//www.ebi.ac.uk/services">By topic</a></li> ' + ' <li><a href="//www.ebi.ac.uk/services/all">By name (A-Z)</a></li> ' + ' <li><a href="//www.ebi.ac.uk/support">Help &amp; Support</a></li> ' + ' <li><a href="//www.ebi.ac.uk/licencing">Licensing</a></li> ' + ' <li class="last"><a href="//www.ebi.ac.uk/long-term-data-preservation">Long-term data preservation</a></li> ' + ' </ul> ' + ' </div> ' + ' ' + ' <div class="columns small-6 medium-2 "> ' + ' <h5 class="research"><a class="research-color" href="//www.ebi.ac.uk/research">Research</a></h5> ' + ' <ul> ' + ' <li><a href="//www.ebi.ac.uk/research/publications">Publications</a></li> ' + ' <li><a href="//www.ebi.ac.uk/research/groups">Research groups</a></li> ' + ' <li class="last"><a href="//www.ebi.ac.uk/research/postdocs">Postdocs</a> &amp; <a href="//www.ebi.ac.uk/research/eipp">PhDs</a></li> ' + ' </ul> ' + ' </div> ' + ' ' + ' <div class="columns small-6 medium-2 "> ' + ' <h5 class="training"><a class="training-color" href="//www.ebi.ac.uk/training">Training</a></h5> ' + ' <ul> ' + ' <li><a href="//www.ebi.ac.uk/training/handson">Train at EBI</a></li> ' + ' <li><a href="//www.ebi.ac.uk/training/roadshow">Train outside EBI</a></li> ' + ' <li><a href="//www.ebi.ac.uk/training/online">Train online</a></li> ' + ' <li class="last"><a href="//www.ebi.ac.uk/training/contact-us">Contact organisers</a></li> ' + ' </ul> ' + ' </div> ' + ' ' + ' <div class="columns small-6 medium-2 "> ' + ' <h5 class="industry"><a class="industry-color" href="//www.ebi.ac.uk/industry">Industry</a></h5> ' + ' <ul> ' + ' <li><a href="//www.ebi.ac.uk/industry/private">Members Area</a></li> ' + ' <li><a href="//www.ebi.ac.uk/industry/workshops">Workshops</a></li> ' + ' <li><a href="//www.ebi.ac.uk/industry/sme-forum"><abbr title="Small Medium Enterprise">SME</abbr> Forum</a></li> ' + ' <li class="last"><a href="//www.ebi.ac.uk/industry/contact">Contact Industry programme</a></li> ' + ' </ul> ' + ' </div> ' + ' ' + ' <div class="columns small-6 medium-2 "> ' + ' <h5 class="about"><a class="ebi-color" href="//www.ebi.ac.uk/about">About EMBL-EBI</a></h5> ' + ' <ul> ' +
' <li><a href="//www.ebi.ac.uk/about/contact">Contact us</a> ' +
' <li><a href="//www.ebi.ac.uk/about/events">Events</a></li> ' +
' <li><a href="//www.ebi.ac.uk/about/jobs" title="Jobs, postdocs, PhDs...">Jobs</a></li> ' +
' <li class="first"><a href="//www.ebi.ac.uk/about/news">News</a></li> ' +
' <li><a href="//www.ebi.ac.uk/about/people">People &amp; groups</a></li> ' +
' </ul> ' + ' </div>' + '';

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 = '<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 &copy; EMBL-EBI ' + d.getFullYear() + ' | EMBL-EBI is <a href="http://www.embl.org/">part of the European Molecular Biology Laboratory</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>';

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();
})();
Loading