New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ebi-framework

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ebi-framework - npm Package Compare versions

Comparing version 1.3.0 to 1.3.5

js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js

236

js/documenation.md

@@ -41,2 +41,16 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->

- [ebiFrameworkIncludeAnnouncements](#ebiframeworkincludeannouncements-1)
- [ebiFrameworkCreateDataProtectionBanner](#ebiframeworkcreatedataprotectionbanner)
- [ebiFrameworkCreateDataProtectionBanner](#ebiframeworkcreatedataprotectionbanner-1)
- [ebiFrameworkTrackDataProtectionBanner](#ebiframeworktrackdataprotectionbanner)
- [ebiFrameworkTrackDataProtectionBanner](#ebiframeworktrackdataprotectionbanner-1)
- [ebiFrameworkRetryTrackDataProtectionBanner](#ebiframeworkretrytrackdataprotectionbanner)
- [ebiFrameworkRetryTrackDataProtectionBanner](#ebiframeworkretrytrackdataprotectionbanner-1)
- [openDataProtectionBanner](#opendataprotectionbanner)
- [openDataProtectionBanner](#opendataprotectionbanner-1)
- [closeDataProtectionBanner](#closedataprotectionbanner)
- [closeDataProtectionBanner](#closedataprotectionbanner-1)
- [ebiFrameworkRunDataProtectionBanner](#ebiframeworkrundataprotectionbanner)
- [ebiFrameworkRunDataProtectionBanner](#ebiframeworkrundataprotectionbanner-1)
- [resetDataProtectionBanner](#resetdataprotectionbanner)
- [resetDataProtectionBanner](#resetdataprotectionbanner-1)
- [ebiFrameworkCookieBanner](#ebiframeworkcookiebanner)

@@ -69,3 +83,3 @@ - [ebiFrameworkCookieBanner](#ebiframeworkcookiebanner-1)

[js/ebi-global-includes/script/1_about.js:16-24](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/1_about.js#L16-L24 "Source code on GitHub")
[js/ebi-global-includes/script/1_about.js:16-24](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/1_about.js#L16-L24 "Source code on GitHub")

@@ -88,3 +102,3 @@ Utility function to get params from the URL.

[js/script.js:16-24](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L16-L24 "Source code on GitHub")
[js/script.js:16-24](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L16-L24 "Source code on GitHub")

@@ -107,3 +121,3 @@ Utility function to get params from the URL.

[js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js:4-35](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js#L4-L35 "Source code on GitHub")
[js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js:4-35](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js#L4-L35 "Source code on GitHub")

@@ -114,3 +128,3 @@ Mark pdf/doc/txt links with link-pdf/link-doc/link-txt classes.

[js/script.js:35-66](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L35-L66 "Source code on GitHub")
[js/script.js:35-66](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L35-L66 "Source code on GitHub")

@@ -121,3 +135,3 @@ Mark pdf/doc/txt links with link-pdf/link-doc/link-txt classes.

[js/ebi-global-includes/script/3_ebiFrameworkForms.js:5-78](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L5-L78 "Source code on GitHub")
[js/ebi-global-includes/script/3_ebiFrameworkForms.js:5-78](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L5-L78 "Source code on GitHub")

@@ -129,3 +143,3 @@ Disable the global search if a page defines a local search.<br/>

[js/script.js:72-145](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L72-L145 "Source code on GitHub")
[js/script.js:72-145](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L72-L145 "Source code on GitHub")

@@ -137,3 +151,3 @@ Disable the global search if a page defines a local search.<br/>

[js/ebi-global-includes/script/3_ebiFrameworkForms.js:84-128](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L84-L128 "Source code on GitHub")
[js/ebi-global-includes/script/3_ebiFrameworkForms.js:84-128](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L84-L128 "Source code on GitHub")

@@ -145,3 +159,3 @@ Add error alerts for 'no input' on search boxes.<br/>

[js/script.js:151-195](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L151-L195 "Source code on GitHub")
[js/script.js:151-195](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L151-L195 "Source code on GitHub")

@@ -153,3 +167,3 @@ Add error alerts for 'no input' on search boxes.<br/>

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:7-10](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L7-L10 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:7-10](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L7-L10 "Source code on GitHub")

@@ -169,3 +183,3 @@ Utility method to get if it is IE, and what integer version.

[js/script.js:203-206](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L203-L206 "Source code on GitHub")
[js/script.js:203-206](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L203-L206 "Source code on GitHub")

@@ -185,3 +199,3 @@ Utility method to get if it is IE, and what integer version.

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:15-24](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L15-L24 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:15-24](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L15-L24 "Source code on GitHub")

@@ -197,3 +211,3 @@ Utility function to toggle classes. Chiefly to show the #embl-bar.

[js/script.js:211-220](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L211-L220 "Source code on GitHub")
[js/script.js:211-220](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L211-L220 "Source code on GitHub")

@@ -209,3 +223,3 @@ Utility function to toggle classes. Chiefly to show the #embl-bar.

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:29-32](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L29-L32 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:29-32](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L29-L32 "Source code on GitHub")

@@ -221,3 +235,3 @@ Utility function to add classes (only once).

[js/script.js:225-228](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L225-L228 "Source code on GitHub")
[js/script.js:225-228](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L225-L228 "Source code on GitHub")

@@ -233,3 +247,3 @@ Utility function to add classes (only once).

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:37-39](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L37-L39 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:37-39](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L37-L39 "Source code on GitHub")

@@ -245,3 +259,3 @@ Utility function to remove classes.

[js/script.js:233-235](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L233-L235 "Source code on GitHub")
[js/script.js:233-235](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L233-L235 "Source code on GitHub")

@@ -257,3 +271,3 @@ Utility function to remove classes.

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:44-60](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L44-L60 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:44-60](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L44-L60 "Source code on GitHub")

@@ -264,3 +278,3 @@ Remove global-nav/global-nav-expanded from header/footer if body.no-global-nav is set

[js/script.js:240-256](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L240-L256 "Source code on GitHub")
[js/script.js:240-256](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L240-L256 "Source code on GitHub")

@@ -271,3 +285,3 @@ Remove global-nav/global-nav-expanded from header/footer if body.no-global-nav is set

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:65-79](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L65-L79 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:65-79](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L65-L79 "Source code on GitHub")

@@ -278,3 +292,3 @@ Assign global nav background images through meta tags

[js/script.js:261-275](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L261-L275 "Source code on GitHub")
[js/script.js:261-275](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L261-L275 "Source code on GitHub")

@@ -285,3 +299,3 @@ Assign global nav background images through meta tags

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:84-124](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L84-L124 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:84-124](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L84-L124 "Source code on GitHub")

@@ -292,3 +306,3 @@ Populate `#masthead-black-bar`

[js/script.js:280-320](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L280-L320 "Source code on GitHub")
[js/script.js:280-320](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L280-L320 "Source code on GitHub")

@@ -299,3 +313,3 @@ Populate `#masthead-black-bar`

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:129-132](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L129-L132 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:129-132](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L129-L132 "Source code on GitHub")

@@ -310,3 +324,3 @@ Reusable function to get part of the black bar

[js/script.js:325-328](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L325-L328 "Source code on GitHub")
[js/script.js:325-328](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L325-L328 "Source code on GitHub")

@@ -321,3 +335,3 @@ Reusable function to get part of the black bar

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:137-200](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L137-L200 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:137-200](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L137-L200 "Source code on GitHub")

@@ -328,3 +342,3 @@ Active tabs in `#masthead-black-bar` according to metadata

[js/script.js:333-396](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L333-L396 "Source code on GitHub")
[js/script.js:333-396](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L333-L396 "Source code on GitHub")

@@ -335,3 +349,3 @@ Active tabs in `#masthead-black-bar` according to metadata

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:205-288](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L205-L288 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:205-288](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L205-L288 "Source code on GitHub")

@@ -342,3 +356,3 @@ Insert EMBL dropdown menu into `#masthead-black-bar`

[js/script.js:401-484](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L401-L484 "Source code on GitHub")
[js/script.js:401-484](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L401-L484 "Source code on GitHub")

@@ -349,3 +363,3 @@ Insert EMBL dropdown menu into `#masthead-black-bar`

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:293-323](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L293-L323 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:293-323](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L293-L323 "Source code on GitHub")

@@ -356,3 +370,3 @@ Insert EBI Footer into `#global-nav-expanded`

[js/script.js:489-519](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L489-L519 "Source code on GitHub")
[js/script.js:489-519](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L489-L519 "Source code on GitHub")

@@ -363,3 +377,3 @@ Insert EBI Footer into `#global-nav-expanded`

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:328-342](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L328-L342 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:328-342](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L328-L342 "Source code on GitHub")

@@ -370,3 +384,3 @@ Insert footer meta info into `#ebi-footer-meta`

[js/script.js:524-538](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L524-L538 "Source code on GitHub")
[js/script.js:524-538](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L524-L538 "Source code on GitHub")

@@ -377,3 +391,3 @@ Insert footer meta info into `#ebi-footer-meta`

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:353-387](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L353-L387 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:353-387](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L353-L387 "Source code on GitHub")

@@ -397,3 +411,3 @@ Once an announcement has been matched to the current page, show it (if there is one).

[js/script.js:549-583](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L549-L583 "Source code on GitHub")
[js/script.js:549-583](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L549-L583 "Source code on GitHub")

@@ -417,3 +431,3 @@ Once an announcement has been matched to the current page, show it (if there is one).

[js/ebi-global-includes/script/4_ebiFrameworkContent.js:393-462](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L393-L462 "Source code on GitHub")
[js/ebi-global-includes/script/4_ebiFrameworkContent.js:393-462](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L393-L462 "Source code on GitHub")

@@ -425,3 +439,3 @@ Load the downtime/announcement messages, if any.

[js/script.js:589-658](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L589-L658 "Source code on GitHub")
[js/script.js:589-658](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L589-L658 "Source code on GitHub")

@@ -431,17 +445,123 @@ Load the downtime/announcement messages, if any.

## ebiFrameworkCreateDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:5-32](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L5-L32 "Source code on GitHub")
Injects the Data Protection notice onto sites
For guidance on using: <https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html>
## ebiFrameworkCreateDataProtectionBanner
[js/script.js:664-691](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L664-L691 "Source code on GitHub")
Injects the Data Protection notice onto sites
For guidance on using: <https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html>
## ebiFrameworkTrackDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:38-52](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L38-L52 "Source code on GitHub")
Log acceptance of banner, if GA is set and using EBIFoundationExtend
## ebiFrameworkTrackDataProtectionBanner
[js/script.js:697-711](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L697-L711 "Source code on GitHub")
Log acceptance of banner, if GA is set and using EBIFoundationExtend
## ebiFrameworkRetryTrackDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:58-64](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L58-L64 "Source code on GitHub")
Give a second for banner checking if GA was slow to load
**Parameters**
- `bannerTrackingEventLoaded`
## ebiFrameworkRetryTrackDataProtectionBanner
[js/script.js:717-723](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L717-L723 "Source code on GitHub")
Give a second for banner checking if GA was slow to load
**Parameters**
- `bannerTrackingEventLoaded`
## openDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:69-78](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L69-L78 "Source code on GitHub")
Shows the data protection banner on screen.
## openDataProtectionBanner
[js/script.js:728-737](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L728-L737 "Source code on GitHub")
Shows the data protection banner on screen.
## closeDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:83-88](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L83-L88 "Source code on GitHub")
Hides the data protection banner from the screen.
## closeDataProtectionBanner
[js/script.js:742-747](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L742-L747 "Source code on GitHub")
Hides the data protection banner from the screen.
## ebiFrameworkRunDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:119-208](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L119-L208 "Source code on GitHub")
The main 'brain' of the EBI Data Protection banner.
Further documentation at <https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html>
**Parameters**
- `targetedFrameworkVersion` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** targeted Framework version; options: 1.1, 1.2, 1.3, compliance, other (optional, default `generic`)
## ebiFrameworkRunDataProtectionBanner
[js/script.js:778-867](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L778-L867 "Source code on GitHub")
The main 'brain' of the EBI Data Protection banner.
Further documentation at <https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html>
**Parameters**
- `targetedFrameworkVersion` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** targeted Framework version; options: 1.1, 1.2, 1.3, compliance, other (optional, default `generic`)
## resetDataProtectionBanner
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:213-216](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L213-L216 "Source code on GitHub")
Clear the cooke. This is mostly a development tool.
## resetDataProtectionBanner
[js/script.js:872-875](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L872-L875 "Source code on GitHub")
Clear the cooke. This is mostly a development tool.
## ebiFrameworkCookieBanner
[js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js:4-72](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js#L4-L72 "Source code on GitHub")
[js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js:222-225](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L222-L225 "Source code on GitHub")
Insert and show the cookie banner.
Fallback for any code that was directly calling the old cookie banner:
<https://github.com/ebiwd/EBI-Framework/blob/6707eff40e15036f735637413deed0dcb7392818/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js>
## ebiFrameworkCookieBanner
[js/script.js:663-731](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L663-L731 "Source code on GitHub")
[js/script.js:881-884](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L881-L884 "Source code on GitHub")
Insert and show the cookie banner.
Fallback for any code that was directly calling the old cookie banner:
<https://github.com/ebiwd/EBI-Framework/blob/6707eff40e15036f735637413deed0dcb7392818/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js>
## ebiFrameworkInvokeScripts
[js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js:7-20](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js#L7-L20 "Source code on GitHub")
[js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js:7-20](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js#L7-L20 "Source code on GitHub")

@@ -459,3 +579,3 @@ All scripts are automatically loaded, unless the page asked us not to.

[js/script.js:739-752](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/script.js#L739-L752 "Source code on GitHub")
[js/script.js:895-908](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/script.js#L895-L908 "Source code on GitHub")

@@ -473,3 +593,3 @@ All scripts are automatically loaded, unless the page asked us not to.

[js/foundationExtendEBI.js:12-34](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L12-L34 "Source code on GitHub")
[js/foundationExtendEBI.js:12-34](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L12-L34 "Source code on GitHub")

@@ -485,3 +605,3 @@ We poll the document until we find GA has loaded, or we've tried a few times.

[js/foundationExtendEBI.js:19-26](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L19-L26 "Source code on GitHub")
[js/foundationExtendEBI.js:19-26](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L19-L26 "Source code on GitHub")

@@ -492,3 +612,3 @@ If successful we append `.google-analytics-loaded` to the `body` tag.

[js/foundationExtendEBI.js:42-46](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L42-L46 "Source code on GitHub")
[js/foundationExtendEBI.js:42-46](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L42-L46 "Source code on GitHub")

@@ -507,3 +627,3 @@ Utility method to get the last in an array

[js/foundationExtendEBI.js:52-52](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L52-L52 "Source code on GitHub")
[js/foundationExtendEBI.js:52-52](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L52-L52 "Source code on GitHub")

@@ -518,3 +638,3 @@ Track the last time an event was sent (don't double send)

[js/foundationExtendEBI.js:71-102](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L71-L102 "Source code on GitHub")
[js/foundationExtendEBI.js:71-102](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L71-L102 "Source code on GitHub")

@@ -546,3 +666,3 @@ ## Analytics tracking

[js/foundationExtendEBI.js:111-194](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L111-L194 "Source code on GitHub")
[js/foundationExtendEBI.js:111-194](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L111-L194 "Source code on GitHub")

@@ -558,3 +678,3 @@ If GA is found, we initialise the tracking of various default areas

[js/foundationExtendEBI.js:200-207](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L200-L207 "Source code on GitHub")
[js/foundationExtendEBI.js:200-207](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L200-L207 "Source code on GitHub")

@@ -569,3 +689,3 @@ Programatically open external links in new tabs

[js/foundationExtendEBI.js:213-218](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L213-L218 "Source code on GitHub")
[js/foundationExtendEBI.js:213-218](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L213-L218 "Source code on GitHub")

@@ -580,3 +700,3 @@ Programatically add '.external' to external links

[js/foundationExtendEBI.js:231-260](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L231-L260 "Source code on GitHub")
[js/foundationExtendEBI.js:231-260](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L231-L260 "Source code on GitHub")

@@ -594,3 +714,3 @@ ## Activate EMBL dropdown menu

[js/foundationExtendEBI.js:265-298](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L265-L298 "Source code on GitHub")
[js/foundationExtendEBI.js:265-298](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L265-L298 "Source code on GitHub")

@@ -601,3 +721,3 @@ Smooth scroll anchor links for jQuery users

[js/foundationExtendEBI.js:303-411](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L303-L411 "Source code on GitHub")
[js/foundationExtendEBI.js:303-411](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L303-L411 "Source code on GitHub")

@@ -608,3 +728,3 @@ Make the local nav menu responsive to the browser window width

[js/foundationExtendEBI.js:416-511](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L416-L511 "Source code on GitHub")
[js/foundationExtendEBI.js:416-511](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L416-L511 "Source code on GitHub")

@@ -615,3 +735,3 @@ Default invokation of foundationExtendEBI

[js/foundationExtendEBI.js:483-483](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L483-L483 "Source code on GitHub")
[js/foundationExtendEBI.js:483-483](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L483-L483 "Source code on GitHub")

@@ -627,3 +747,3 @@ ## Allow invokation of Foundation and foundationExtendEBI with data attributes

[js/foundationExtendEBI.js:488-492](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L488-L492 "Source code on GitHub")
[js/foundationExtendEBI.js:488-492](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L488-L492 "Source code on GitHub")

@@ -638,3 +758,3 @@ **Examples**

[js/foundationExtendEBI.js:497-501](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L497-L501 "Source code on GitHub")
[js/foundationExtendEBI.js:497-501](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L497-L501 "Source code on GitHub")

@@ -649,3 +769,3 @@ **Examples**

[js/foundationExtendEBI.js:506-509](https://github.com/ebiwd/EBI-Framework/blob/57620e3a42a451ac73d4d2b2c02a69db177386f9/js/foundationExtendEBI.js#L506-L509 "Source code on GitHub")
[js/foundationExtendEBI.js:506-509](https://github.com/ebiwd/EBI-Framework/blob/681b64799645fd28740a93697f3196818ff0545a/js/foundationExtendEBI.js#L506-L509 "Source code on GitHub")

@@ -652,0 +772,0 @@ **Examples**

@@ -378,3 +378,3 @@ /**

banner.className = "notifications-js row margin-top-medium";
wrapper.className = "row callout " + (message.priority || "");
wrapper.className = "callout " + (message.priority || "");
wrapper.innerHTML = "<h3>" + message.headline + "</h3>" +

@@ -381,0 +381,0 @@ message.message +

@@ -19,3 +19,3 @@ /**

ebiFrameworkIncludeAnnouncements();
ebiFrameworkCookieBanner();
ebiFrameworkRunDataProtectionBanner('1.3');
}

@@ -22,0 +22,0 @@

@@ -574,3 +574,3 @@ // Copyright (c) EMBL-EBI 2017

banner.className = "notifications-js row margin-top-medium";
wrapper.className = "row callout " + (message.priority || "");
wrapper.className = "callout " + (message.priority || "");
wrapper.innerHTML = "<h3>" + message.headline + "</h3>" +

@@ -662,75 +662,231 @@ message.message +

/**
* Insert and show the cookie banner.
* Injects the Data Protection notice onto sites
* For guidance on using: https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html
*/
function ebiFrameworkCookieBanner() {
function setCookie(c_name, value, exdays) {
var exdate = new Date();
var c_value;
exdate.setDate(exdate.getDate() + exdays);
c_value = escape(value) + ((exdays===null) ? "" : ";expires=" + exdate.toUTCString()) + ";domain=.ebi.ac.uk;path=/";
document.cookie = c_name + "=" + c_value;
c_value = escape(value) + ((exdays===null) ? "" : ";expires=" + exdate.toUTCString()) + ";domain=" + document.domain + ";path=/";
document.cookie = c_name + "=" + c_value;
}
function ebiFrameworkCreateDataProtectionBanner() {
var banner = document.createElement('div');
var wrapper = document.createElement('div');
var inner = document.createElement('div');
function getCookie(c_name) {
var i, x, y, ARRcookies=document.cookie.split(";");
for (i=0; i<ARRcookies.length; i++) {
x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
y = ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x = x.replace(/^\s+|\s+$/g,"");
if (x===c_name) {
return unescape(y);
}
}
// don't accidently create two banners
if (document.getElementById("data-protection-banner") != null) {
document.getElementById("data-protection-banner").remove();
}
function createBanner() {
var banner = document.createElement('div');
var wrapper = document.createElement('div');
var inner = document.createElement('div');
banner.id = "cookie-banner";
banner.className = "cookie-banner";
wrapper.className = "row";
wrapper.innerHTML = "" +
"<span class='text'>This website uses cookies. By continuing to browse this site, you are agreeing to the use of our site cookies. " +
"To find out more, see our <a href='//www.ebi.ac.uk/about/terms-of-use'>Terms of Use</a>.</span>" +
"<div id='cookie-dismiss'><button class='close-button' style='top: 0.3rem; color:#fff;' aria-label='Close alert' type='button'><span aria-hidden='true'>&times;</span></button></div>" +
banner.id = "data-protection-banner";
banner.className = "data-protection-banner";
banner.style.cssText = "position: fixed; background: #111; width: 100%; padding: .75rem 1%; left: 0; bottom: 0; color: #eee; z-index: 10;";
wrapper.className = "row";
wrapper.innerHTML = "" +
"<div class='columns medium-8 large-9 white-color'>" +
dataProtectionSettings.message +
"</div>" +
"<div class='columns medium-4 large-3 text-right white-color'><a id='data-protection-agree' class=''>I agree, dismiss this banner</a></div>" +
"";
document.body.appendChild(banner);
banner.appendChild(wrapper);
document.body.appendChild(banner);
banner.appendChild(wrapper);
ebiFrameworkTrackDataProtectionBanner();
openDataProtectionBanner();
}
/**
* Log acceptance of banner, if GA is set and using EBIFoundationExtend
*
*/
function ebiFrameworkTrackDataProtectionBanner() {
var bannerTrackingEventLoaded = 0; // has the tracking coad loaded?
if ((typeof analyticsTrackInteraction == 'function') && (typeof jQuery == 'function')) {
if (jQuery("body").hasClass("google-analytics-loaded")) {
bannerTrackingEventLoaded = 1;
jQuery("body.google-analytics-loaded .data-protection-banner a").on('mousedown', function(e) {
analyticsTrackInteraction(e.target,'Data protection banner');
});
} else {
bannerTrackingEventLoaded = ebiFrameworkRetryTrackDataProtectionBanner(bannerTrackingEventLoaded);
}
} else {
bannerTrackingEventLoaded = ebiFrameworkRetryTrackDataProtectionBanner(bannerTrackingEventLoaded);
}
}
function openBanner() {
var height = document.getElementById('cookie-banner').offsetHeight;
document.getElementById('cookie-banner').style.display = 'block';
document.body.style.paddingBottom = height+'px';
/**
* Give a second for banner checking if GA was slow to load
*
*/
function ebiFrameworkRetryTrackDataProtectionBanner(bannerTrackingEventLoaded) {
bannerTrackingEventLoaded --;
if (bannerTrackingEventLoaded > -3) { // try up to 3 fails
setTimeout(ebiFrameworkTrackDataProtectionBanner, 900);
}
return bannerTrackingEventLoaded;
}
function closeBanner() {
var height = document.getElementById('cookie-banner').offsetHeight;
document.getElementById('cookie-banner').style.display = 'none';
document.body.style.paddingBottom = '0';
/**
* Shows the data protection banner on screen.
*/
function openDataProtectionBanner() {
var height = document.getElementById('data-protection-banner').offsetHeight || 0;
document.getElementById('data-protection-banner').style.display = 'block';
document.body.style.paddingBottom = height+'px';
document.getElementById('data-protection-agree').onclick = function() {
closeDataProtectionBanner();
return false;
};
}
/**
* Hides the data protection banner from the screen.
*/
function closeDataProtectionBanner() {
var height = document.getElementById('data-protection-banner').offsetHeight;
document.getElementById('data-protection-banner').style.display = 'none';
document.body.style.paddingBottom = '0';
ebiFrameworkSetCookie(dataProtectionSettings.cookieName, 'true', 90);
}
function ebiFrameworkSetCookie(c_name, value, exdays) {
var exdate = new Date();
var c_value;
exdate.setDate(exdate.getDate() + exdays);
// c_value = escape(value) + ((exdays===null) ? "" : ";expires=" + exdate.toUTCString()) + ";domain=.ebi.ac.uk;path=/";
// document.cookie = c_name + "=" + c_value;
c_value = escape(value) + ((exdays===null) ? "" : ";expires=" + exdate.toUTCString()) + ";domain=" + document.domain + ";path=/";
document.cookie = c_name + "=" + c_value;
}
function ebiFrameworkGetCookie(c_name) {
var i, x, y, ARRcookies=document.cookie.split(";");
for (i=0; i<ARRcookies.length; i++) {
x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
y = ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x = x.replace(/^\s+|\s+$/g,"");
if (x===c_name) {
return unescape(y);
}
}
}
function init() {
try {
if (getCookie('cookies-accepted') !== 'true') {
createBanner();
openBanner();
setCookie('cookies-accepted', 'true', 90); // show cookie message only once
document.getElementById('cookie-dismiss').onclick = function() {
closeBanner();
return false;
};
var dataProtectionSettings = new Object();
/**
* The main 'brain' of the EBI Data Protection banner.
* Further documentation at https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html
* @param {string} [targetedFrameworkVersion=generic] targeted Framework version; options: 1.1, 1.2, 1.3, compliance, other
*/
function ebiFrameworkRunDataProtectionBanner(targetedFrameworkVersion) {
try {
if (typeof newDataProtectionNotificationBanner !== "undefined") {
targetedFrameworkVersion = newDataProtectionNotificationBanner.src.split('legacyRequest=')[1] || 'generic';
}
var compatibilityStyles = document.createElement('style');
compatibilityStyles.innerHTML = `
#cookie-banner {
display: none;
}
.data-protection-banner {
box-sizing: border-box;
}
.data-protection-banner a,
.data-protection-banner a:hover {
cursor: pointer;
color: #fff;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: inherit;
text-decoration: none;
}
.data-protection-banner .medium-8 {
width: 75%; margin-left: 1%; float: left;
}
.data-protection-banner .medium-4 {
width: 23%; margin-right: 1%; float: right; text-align: right;
}
`;
// remove any old style cookie banner
switch (targetedFrameworkVersion) {
case '1.1':
case '1.2':
if (document.getElementById("cookie-banner") != null) {
document.getElementById("cookie-banner").remove();
}
document.body.style.paddingBottom = 0;
break;
case '1.3':
// cookie banner really shouldn't be here, but just in case
if (document.getElementById("cookie-banner") != null) {
document.getElementById("cookie-banner").remove();
}
break;
case 'compliance':
if (document.getElementById("cookie-banner") != null) {
document.getElementById("cookie-banner").remove();
}
document.body.style.paddingTop = 0;
document.body.appendChild(compatibilityStyles);
break;
case 'other':
// If you're not using any fomally supported framework, we'll do our best to help out
document.body.appendChild(compatibilityStyles);
break;
default:
console.warn('You should specify the targeted FrameworkVersion (allowed values: 1.1, 1.2, 1.3, compliance, other). You sent: ' + targetedFrameworkVersion);
}
catch(err) { setTimeout(init, 100); }
}
init();
// Default global values
dataProtectionSettings.message = 'This website requires cookies, and the limited processing of your personal data in order to function. By using the site you are agreeing to this as outlined in our <a target="_blank" href="https://www.ebi.ac.uk/data-protection/privacy-notice/embl-ebi-public-website">Privacy Notice</a> and <a target="_blank" href="https://www.ebi.ac.uk/about/terms-of-use">Terms of Use</a>.';
dataProtectionSettings.serviceId = 'embl-ebi-public-website'; // use the URL stub from your DP record at http://content.ebi.ac.uk/list-data-protection-records
dataProtectionSettings.dataProtectionVersion = '1.0';
// If there's a div#data-protection-message-configuration, override defaults
var divDataProtectionBanner = document.getElementById('data-protection-message-configuration');
if (divDataProtectionBanner !== null) {
if (typeof divDataProtectionBanner.dataset.message !== "undefined") {
dataProtectionSettings.message = divDataProtectionBanner.dataset.message;
}
if (typeof divDataProtectionBanner.dataset.serviceId !== "undefined") {
dataProtectionSettings.serviceId = divDataProtectionBanner.dataset.serviceId;
}
if (typeof divDataProtectionBanner.dataset.dataProtectionVersion !== "undefined") {
dataProtectionSettings.dataProtectionVersion = divDataProtectionBanner.dataset.dataProtectionVersion;
}
}
dataProtectionSettings.cookieName = dataProtectionSettings.serviceId + "-v" + dataProtectionSettings.dataProtectionVersion + "-data-protection-accepted";
// If this version of banner not accpeted, show it:
if (ebiFrameworkGetCookie(dataProtectionSettings.cookieName) != "true") {
ebiFrameworkCreateDataProtectionBanner();
}
} catch(err) { setTimeout(ebiFrameworkRunDataProtectionBanner, 100); }
}
/**
* Clear the cooke. This is mostly a development tool.
*/
function resetDataProtectionBanner() {
document.cookie = dataProtectionSettings.cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=" + document.domain + ";path=/";
ebiFrameworkRunDataProtectionBanner('1.3');
}
/**
* Fallback for any code that was directly calling the old cookie banner:
* https://github.com/ebiwd/EBI-Framework/blob/6707eff40e15036f735637413deed0dcb7392818/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js
*/
function ebiFrameworkCookieBanner() {
console.warn('You are calling an old function name, update it to ebiFrameworkRunDataProtectionBanner();')
ebiFrameworkRunDataProtectionBanner('1.3');
}
// execute
// ebiFrameworkRunDataProtectionBanner('1.3');
/**
* All scripts are automatically loaded, unless the page asked us not to.

@@ -753,3 +909,3 @@ * @example

ebiFrameworkIncludeAnnouncements();
ebiFrameworkCookieBanner();
ebiFrameworkRunDataProtectionBanner('1.3');
}

@@ -756,0 +912,0 @@

@@ -1,1 +0,1 @@

function ebiGetParameterByName(name,url){url||(url=window.location.href),name=name.replace(/[\[\]]/g,"\\$&");var results=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)").exec(url);return results?results[2]?decodeURIComponent(results[2].replace(/\+/g," ")):"":null}function ebiHasClass(element,cls){return(" "+element.className+" ").indexOf(" "+cls+" ")>-1}function ebiFrameworkExternalLinks(){try{var i,icon,alist=document.getElementsByTagName("a"),fileTypes=["pdf","doc","txt"];for(i=0;i<alist.length;i++)for(var type in fileTypes)-1===alist[i].innerHTML.indexOf('<span class="link-'+fileTypes[type]+'"></span>')&&-1===alist[i].innerHTML.indexOf("<img")&&function(url,type){return-1!==url.indexOf(type,url.length-type.length)}(alist[i].href,fileTypes[type])&&function(url){return-1===url.indexOf("//")||-1!==url.indexOf("//www.ebi.ac.uk")||-1!==url.indexOf("//wwwdev.ebi.ac.uk")||-1!==url.indexOf("//srs.ebi.ac.uk")||-1!==url.indexOf("//ftp.ebi.ac.uk")||-1!==url.indexOf("//intranet.ebi.ac.uk")||-1!==url.indexOf("//pdbe.org")||-1!==url.indexOf("//"+document.domain)}(alist[i].href)&&((icon=document.createElement("span")).className="link-"+fileTypes[type],alist[i].appendChild(icon))}catch(err){}}function ebiFrameworkManageGlobalSearch(){try{var hasLocalSearch=null!==document.getElementById("local-search"),hasLocalEBISearch=null!==document.getElementById("ebi_search");if(hasLocalSearch||hasLocalEBISearch)document.body.className+=" no-global-search";else try{null!==(elem=document.getElementById("search-bar"))&&document.getElementById("search-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='<nav id="search-bar" class="search-bar global-masthead-interactive-banner"><div class="row padding-bottom-medium"><div class="columns padding-top-medium"><button class="close-button" aria-label="Close alert" type="button"><span aria-hidden="true">×</span></button></div></div><div class="row"><form id="global-search" name="global-search" action="/ebisearch/search.ebi" method="GET" class=""><fieldset><div class="input-group"><input type="text" name="query" id="global-searchbox" class="input-group-field" placeholder="Search all of EMBL-EBI"><div class="input-group-button"><input type="submit" name="submit" value="Search" class="button"><input type="hidden" name="db" value="allebi" checked="checked"><input type="hidden" name="requestFrom" value="masthead-black-bar" checked="checked"></div></div></fieldset></form></div></nav>',document.getElementById("masthead-black-bar").insertBefore(dropdownDiv,document.getElementById("masthead-black-bar").firstChild);var searchBar=document.querySelectorAll(".search-bar")[0],searchBarButton=document.querySelectorAll(".search-toggle")[0],blackBar=document.querySelectorAll(".masthead-black-bar")[0];searchBarButton.addEventListener("mouseenter",function(event){0==ebiHasClass(document.querySelectorAll(".search-bar")[0],"active")&&(blackBar.className+=" peek")},!1),searchBarButton.addEventListener("mouseleave",function(event){0==ebiHasClass(document.querySelectorAll(".search-bar")[0],"active")&&blackBar.classList.remove("peek")},!1);document.querySelectorAll(".search-toggle")[0].addEventListener("click",function(event){ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".search-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1)}catch(err){setTimeout(init,500)}}catch(err){}}function ebiFrameworkSearchNullError(){try{var disabled=-1!==document.body.className.indexOf("no-search-error"),searchBoxes=[{inputNode:document.getElementById("global-searchbox")},{inputNode:document.getElementById("local-searchbox")},{inputNode:-1!==document.body.className.indexOf("front")?document.getElementById("query"):null},{inputNode:document.getElementById("people-groups")?document.getElementById("people-groups").getElementsByTagName("input")[0]:null}];if(!disabled)for(searchBox in searchBoxes){var searchInput=searchBoxes[searchBox].inputNode,searchForm=searchInput?searchInput.form:null,searchInputDefault=searchBoxes[searchBox].defaultText||"",searchError=searchBoxes[searchBox].errorText||"Please enter a search term",isEbiSearch=-1!==(searchForm?searchForm.action:"").indexOf("/ebisearch/");searchForm&&searchInput&&isEbiSearch&&(searchForm.searchInput=searchInput,searchForm.searchInputDefault=searchInputDefault,searchForm.searchError=searchError,searchForm.onsubmit=function(){if(searchInput=this.searchInput,searchInputDefault=this.searchInputDefault,searchError=this.searchError,searchInput.value=searchInput.value.trim(),searchInput.value===searchInputDefault||""===searchInput.value)return alert(searchError),!1})}}catch(err){}}function isIE(){var myNav=navigator.userAgent.toLowerCase();return-1!=myNav.indexOf("msie")&&parseInt(myNav.split("msie")[1])}function ebiToggleClass(element,toggleClass){var newClass,currentClass=element.className;newClass=currentClass.split(" ").indexOf(toggleClass)>-1?currentClass.replace(new RegExp("\\b"+toggleClass+"\\b","g"),""):currentClass+" "+toggleClass,element.className=newClass.trim()}function ebiActivateClass(element,cssClass){element.classList.remove(cssClass),element.classList.add(cssClass)}function ebiRemoveClass(element,cssClass){element.classList.remove(cssClass)}function ebiFrameworkHideGlobalNav(){try{var elem,hasGlobalMasthead=null!==document.getElementById("masthead-black-bar"),disabled=-1!==document.body.className.indexOf("no-global-nav");hasGlobalMasthead&&disabled&&(null!==(elem=document.getElementById("global-nav"))&&elem.parentNode.removeChild(elem),null!==(elem=document.getElementById("global-nav-expanded"))&&elem.parentNode.removeChild(elem))}catch(err){}}function ebiFrameworkAssignImageByMetaTags(){var masthead=document.getElementById("masthead"),mastheadColor=document.querySelector("meta[name='ebi:masthead-color']")||document.querySelector("meta[name='ebi-masthead-color']"),mastheadImage=document.querySelector("meta[name='ebi:masthead-image']")||document.querySelector("meta[name='ebi-masthead-image']");null!=mastheadColor&&(masthead.style.backgroundColor=mastheadColor.getAttribute("content"),masthead.className+=" meta-background-color"),null!=mastheadImage&&(masthead.style.backgroundImage="url("+mastheadImage.getAttribute("content")+")",masthead.className+=" meta-background-image")}function ebiFrameworkPopulateBlackBar(){try{null!==(elem=document.getElementById("masthead-black-bar"))&&(document.getElementById("masthead-black-bar").innerHTML="");var barContents=document.createElement("div");barContents.innerHTML='<nav class="row"><ul id="global-nav" class="menu global-nav text-right"><li class="home-mobile"><a href="https://www.ebi.ac.uk"></a></li><li class="where embl hide"><a href="http://www.embl.org">EMBL</a></li><li class="where barcelona hide"><a href="#">Barcelona</a></li><li class="where hamburg hide"><a href="#">Hamburg</a></li><li class="where grenoble hide"><a href="#">Heidelberg</a></li><li class="where grenoble hide"><a href="#">Grenoble</a></li><li class="where rome hide"><a href="#">Rome</a></li><li id="embl-selector" class="float-right show-for-medium embl-selector embl-ebi"><button class="button float-right">&nbsp;</button></li><li class="float-right search"><a href="#" class="inline-block collpased float-left search-toggle"><span class="show-for-small-only">Search</span></a></li><li class="what about"><a href="https://www.ebi.ac.uk/about">About us</a></li><li class="what training"><a href="https://www.ebi.ac.uk/training">Training</a></li><li class="what research"><a href="https://www.ebi.ac.uk/research">Research</a></li><li class="what services"><a href="https://www.ebi.ac.uk/services">Services</a></li><li class="where ebi"><a href="https://www.ebi.ac.uk">EMBL-EBI</a></li></ul></nav>',document.getElementById("masthead-black-bar").insertBefore(barContents,document.getElementById("masthead-black-bar").firstChild),document.body.className+=" ebi-black-bar-loaded"}catch(err){}}function ebiGetFacet(passedAttribute){var tag="#masthead-black-bar ."+passedAttribute.toLowerCase();return document.querySelectorAll(tag)[0]}function ebiFrameworkActivateBlackBar(){try{for(var metas=document.getElementsByTagName("meta"),i=0;i<metas.length;i++)if("embl:active"==metas[i].getAttribute("name")&&(ebiRemoveClass(targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":",".")),"hide"),ebiActivateClass(targetFacet,"active")),"embl:parent-1"==metas[i].getAttribute("name")&&(ebiRemoveClass(targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":",".")),"hide"),ebiActivateClass(targetFacet,"active")),"embl:parent-2"==metas[i].getAttribute("name")){var targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":","."));ebiRemoveClass(targetFacet,"hide"),ebiActivateClass(targetFacet,"active")}var mouseoutTimer;blackBar.addEventListener("mouseenter",function(){window.clearTimeout(mouseoutTimer)},!1),blackBar.addEventListener("mouseleave",function(){mouseoutTimer=window.setTimeout(function(){resetBlackBar()},500)});function resetBlackBar(){ebiFrameworkActivateBlackBar()}}catch(err){}}function ebiFrameworkInsertEMBLdropdown(){try{null!==(elem=document.getElementById("embl-bar"))&&document.getElementById("embl-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='<nav id="embl-bar" class="embl-bar global-masthead-interactive-banner"><div class="row padding-bottom-medium"><div class="columns padding-top-medium"><button class="close-button" aria-label="Close alert" type="button"><span aria-hidden="true">×</span></button></div><div class="columns medium-7"><div class="large-10 medium-12"><div class="margin-bottom-large padding-top-xsmall margin-top-large"><h3 class="no-underline inline" style="line-height: 1rem;"><a href="//embl.org">EMBL</a></h3> was set up in 1974 as Europe’s flagship laboratory for the life sciences – an intergovernmental organisation with more than 80 independent research groups covering the spectrum of molecular biology:</div></div><div class="row large-up-3 medium-up-3 small-up-2 no-underline medium-11"><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/research/index.php"><h5 class="inline underline">Research:</h5> perform basic research in molecular biology</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/services/index.html"><h5 class="inline underline">Services:</h5> offer vital services to scientists in the member states</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/training/index.php"><h5 class="inline underline">Training</h5> scientists, students and visitors at all levels</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/research/tech_transfer/index.html"><h5 class="inline underline">Transfer</h5> and development of technology</a></div><div class="column padding-bottom-medium"><h5 class="inline underline">Develop</h5> new instruments and methods</div><div class="column padding-bottom-medium"><h5 class="inline underline">Integrating</h5> life science research in Europe</div></div><div class="margin-top-xlarge no-underline"><h3><a href="//embl.org" class="readmore">More about EMBL</a></h3></div></div><div class="columns medium-5"><div class="large-10 medium-12"><h3 class="inline">Six sites</h3><p>represent EMBL in Europe.</p></div><div class="row medium-up-2 small-up-2"><div class="column"><h5 class="inline"><a href="//www.embl-barcelona.es/">Barcelona</a></h5><p class="">Tissue biology and disease modelling</p></div><div class="column"><h5 class="inline"><a href="//www.embl.fr/">Grenoble</a></h5><p class="">Structural biology</p></div><div class="column"><h5 class="inline"><a href="//www.embl-hamburg.de/">Hamburg</a></h5><p class="">Structural biology</p></div><div class="column"><h5 class="inline"><a href="//www.embl.de/">Heidelberg</a></h5><p class="">Main laboratory</p></div><div class="column"><h5 class="inline"><a href="https://www.ebi.ac.uk/">Hinxton</a></h5><p class="margin-bottom-none">EMBL-EBI: European Bioinformatics Institute</p></div><div class="column"><h5 class="inline"><a href="//www.embl.it/">Rome</a></h5><p class="">Epigenetics and neurobiology</p></div></div></div></div></nav>',document.getElementById("masthead-black-bar").insertBefore(dropdownDiv,document.getElementById("masthead-black-bar").firstChild);var emblBar=document.querySelectorAll(".embl-bar")[0],emblBarButton=document.querySelectorAll(".embl-selector")[0],blackBar=document.querySelectorAll(".masthead-black-bar")[0];emblBarButton.addEventListener("mouseenter",function(event){0==ebiHasClass(document.querySelectorAll(".embl-bar")[0],"active")&&(blackBar.className+=" peek")},!1),emblBarButton.addEventListener("mouseleave",function(event){0==ebiHasClass(document.querySelectorAll(".embl-bar")[0],"active")&&blackBar.classList.remove("peek")},!1);document.querySelectorAll(".embl-selector")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".embl-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),window.scrollTo(0,0)},!1)}catch(err){}}function ebiFrameworkUpdateFoot(){function init(){try{document.getElementById("global-nav-expanded").innerHTML=html}catch(err){setTimeout(init,500)}}var html='<div class="columns small-12"><h4 class="inline-block"><a href="https://www.ebi.ac.uk" class="no-underline" title="EMBL-EBI">EMBL-EBI</a></h4><span class="small inline-block padding-left-large"><a class="readmore" href="http://intranet.ebi.ac.uk"><span class="icon icon-functional" data-icon="L"></span> Intranet for staff</a></span></div><div class="medium-up-5 small-up-2"><div class="column"><h5 class="services"><a class="services-color" href="https://www.ebi.ac.uk/services">Services</a></h5><ul> <li class="first"><a href="https://www.ebi.ac.uk/services">By topic</a></li> <li><a href="https://www.ebi.ac.uk/services/all">By name (A-Z)</a></li> <li class="last"><a href="https://www.ebi.ac.uk/support">Help &amp; Support</a></li> </ul></div><div class="column"><h5 class="research"><a class="research-color" href="https://www.ebi.ac.uk/research">Research</a></h5><ul> <li><a href="https://www.ebi.ac.uk/research/publications">Publications</a></li> <li><a href="https://www.ebi.ac.uk/research/groups">Research groups</a></li> <li class="last"><a href="https://www.ebi.ac.uk/research/postdocs">Postdocs</a> &amp; <a href="https://www.ebi.ac.uk/research/eipp">PhDs</a></li> </ul></div><div class="column"> <h5 class="training"><a class="training-color" href="https://www.ebi.ac.uk/training">Training</a></h5><ul> <li><a href="https://www.ebi.ac.uk/training/handson">Train at EBI</a></li> <li><a href="https://www.ebi.ac.uk/training/roadshow">Train outside EBI</a></li> <li><a href="https://www.ebi.ac.uk/training/online">Train online</a></li> <li class="last"><a href="https://www.ebi.ac.uk/training/contact-us">Contact organisers</a></li> </ul></div> <div class="column"> <h5 class="industry"><a class="industry-color" href="https://www.ebi.ac.uk/industry">Industry</a></h5><ul> <li><a href="https://www.ebi.ac.uk/industry/private">Members Area</a></li> <li><a href="https://www.ebi.ac.uk/industry/workshops">Workshops</a></li> <li><a href="https://www.ebi.ac.uk/industry/sme-forum"><abbr title="Small Medium Enterprise">SME</abbr> Forum</a></li> <li class="last"><a href="https://www.ebi.ac.uk/industry/contact">Contact Industry programme</a></li> </ul></div> <div class="column"> <h5 class="about"><a class="ebi-color" href="https://www.ebi.ac.uk/about">About</a></h5><ul> <li><a href="https://www.ebi.ac.uk/about/contact">Contact us</a><li><a href="https://www.ebi.ac.uk/about/events">Events</a></li> <li><a href="https://www.ebi.ac.uk/about/jobs" title="Jobs, postdocs, PhDs...">Jobs</a></li> <li class="first"><a href="https://www.ebi.ac.uk/about/news">News</a></li> <li><a href="https://www.ebi.ac.uk/about/people">People &amp; groups</a></li> </ul></div></div>';init()}function ebiFrameworkUpdateFooterMeta(){function init(){try{document.getElementById("ebi-footer-meta").innerHTML=html}catch(err){setTimeout(init,500)}}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 '+(new Date).getFullYear()+' | EMBL-EBI is <a href="http://www.embl.org/">part of the European Molecular Biology Laboratory</a> | <a href="https://www.ebi.ac.uk/about/terms-of-use">Terms of use</a></p></div>';init()}function ebiInjectAnnouncements(message){if(void 0===message)return!1;if(void 0!==message.processed)return!0;message.processed=!0;var container=document.getElementById("main-content-area")||document.getElementById("main-content")||document.getElementById("main")||document.getElementById("content")||document.getElementById("contentsarea");if(null==container)return console.warn("A message needs to be shown on this site, but an appropriate container could not be found. \n Message follows:","\n"+message.headline,"\n"+message.message,"\nPriority:",message.priority),!1;var banner=document.createElement("div"),wrapper=document.createElement("div");banner.className="notifications-js row margin-top-medium",wrapper.className="row callout "+(message.priority||""),wrapper.innerHTML="<h3>"+message.headline+"</h3>"+message.message,container.insertBefore(banner,container.firstChild),banner.appendChild(wrapper)}function ebiFrameworkIncludeAnnouncements(){function detectAnnouncements(messages){var currentHost=window.location.hostname,currentPath=window.location.pathname;if(currentHost=currentHost.replace(/wwwdev/g,"www"),ebiInjectAnnouncements(messages[currentHost]),ebiInjectAnnouncements(messages[currentHost+"/"]),ebiInjectAnnouncements(messages[currentHost+"/*"]),currentPath.length>1){for(var currentPathArray=currentPath.split("/"),pathsToMatch=[currentHost+currentPathArray[0]],i=1;i<currentPathArray.length;i++){var tempPath=pathsToMatch[i-1];pathsToMatch.push(tempPath+"/"+currentPathArray[i])}for(i=0;i<pathsToMatch.length;i++)ebiInjectAnnouncements(messages[pathsToMatch[i]]),ebiInjectAnnouncements(messages[pathsToMatch[i]+"*"]),ebiInjectAnnouncements(messages[pathsToMatch[i]+"/*"])}}function loadRemoteAnnouncements(file){window.XMLHttpRequest&&(xmlhttp=new XMLHttpRequest),xmlhttp.open("GET",file,!0),xmlhttp.onload=function(e){4===xmlhttp.readyState&&(200===xmlhttp.status?(eval(xmlhttp.responseText),detectAnnouncements(m)):console.error(xmlhttp.statusText))},xmlhttp.onerror=function(e){console.error(xmlhttp.statusText)},xmlhttp.send(null)}loadRemoteAnnouncements(0===window.location.hostname.indexOf("wwwdev.")?"https://dev.ebi.emblstatic.net/announcements.js":"https://ebi.emblstatic.net/announcements.js")}function ebiFrameworkCookieBanner(){function setCookie(c_name,value,exdays){var c_value,exdate=new Date;exdate.setDate(exdate.getDate()+exdays),c_value=escape(value)+(null===exdays?"":";expires="+exdate.toUTCString())+";domain=.ebi.ac.uk;path=/",document.cookie=c_name+"="+c_value,c_value=escape(value)+(null===exdays?"":";expires="+exdate.toUTCString())+";domain="+document.domain+";path=/",document.cookie=c_name+"="+c_value}function getCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i<ARRcookies.length;i++)if(x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")),y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1),(x=x.replace(/^\s+|\s+$/g,""))===c_name)return unescape(y)}function createBanner(){var banner=document.createElement("div"),wrapper=document.createElement("div");document.createElement("div");banner.id="cookie-banner",banner.className="cookie-banner",wrapper.className="row",wrapper.innerHTML="<span class='text'>This website uses cookies. By continuing to browse this site, you are agreeing to the use of our site cookies. To find out more, see our <a href='//www.ebi.ac.uk/about/terms-of-use'>Terms of Use</a>.</span><div id='cookie-dismiss'><button class='close-button' style='top: 0.3rem; color:#fff;' aria-label='Close alert' type='button'><span aria-hidden='true'>&times;</span></button></div>",document.body.appendChild(banner),banner.appendChild(wrapper)}function openBanner(){var height=document.getElementById("cookie-banner").offsetHeight;document.getElementById("cookie-banner").style.display="block",document.body.style.paddingBottom=height+"px"}function closeBanner(){document.getElementById("cookie-banner").offsetHeight;document.getElementById("cookie-banner").style.display="none",document.body.style.paddingBottom="0"}function init(){try{"true"!==getCookie("cookies-accepted")&&(createBanner(),openBanner(),setCookie("cookies-accepted","true",90),document.getElementById("cookie-dismiss").onclick=function(){return closeBanner(),!1})}catch(err){setTimeout(init,100)}}init()}function ebiFrameworkInvokeScripts(){ebiFrameworkPopulateBlackBar(),ebiFrameworkActivateBlackBar(),ebiFrameworkExternalLinks(),ebiFrameworkManageGlobalSearch(),ebiFrameworkSearchNullError(),ebiFrameworkHideGlobalNav(),ebiFrameworkAssignImageByMetaTags(),ebiFrameworkInsertEMBLdropdown(),ebiFrameworkUpdateFoot(),ebiFrameworkUpdateFooterMeta(),ebiFrameworkIncludeAnnouncements(),ebiFrameworkCookieBanner()}document.addEventListener("DOMContentLoaded",function(event){var bodyData=document.body.dataset;isIE()&&isIE()<=10&&(bodyData=[]),"false"!=bodyData.ebiframeworkinvokescripts&&ebiFrameworkInvokeScripts()});
function ebiGetParameterByName(name,url){url||(url=window.location.href),name=name.replace(/[\[\]]/g,"\\$&");var results=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)").exec(url);return results?results[2]?decodeURIComponent(results[2].replace(/\+/g," ")):"":null}function ebiHasClass(element,cls){return(" "+element.className+" ").indexOf(" "+cls+" ")>-1}function ebiFrameworkExternalLinks(){try{var i,icon,alist=document.getElementsByTagName("a"),fileTypes=["pdf","doc","txt"];for(i=0;i<alist.length;i++)for(var type in fileTypes)-1===alist[i].innerHTML.indexOf('<span class="link-'+fileTypes[type]+'"></span>')&&-1===alist[i].innerHTML.indexOf("<img")&&function(url,type){return-1!==url.indexOf(type,url.length-type.length)}(alist[i].href,fileTypes[type])&&function(url){return-1===url.indexOf("//")||-1!==url.indexOf("//www.ebi.ac.uk")||-1!==url.indexOf("//wwwdev.ebi.ac.uk")||-1!==url.indexOf("//srs.ebi.ac.uk")||-1!==url.indexOf("//ftp.ebi.ac.uk")||-1!==url.indexOf("//intranet.ebi.ac.uk")||-1!==url.indexOf("//pdbe.org")||-1!==url.indexOf("//"+document.domain)}(alist[i].href)&&((icon=document.createElement("span")).className="link-"+fileTypes[type],alist[i].appendChild(icon))}catch(err){}}function ebiFrameworkManageGlobalSearch(){try{var hasLocalSearch=null!==document.getElementById("local-search"),hasLocalEBISearch=null!==document.getElementById("ebi_search");if(hasLocalSearch||hasLocalEBISearch)document.body.className+=" no-global-search";else try{null!==(elem=document.getElementById("search-bar"))&&document.getElementById("search-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='<nav id="search-bar" class="search-bar global-masthead-interactive-banner"><div class="row padding-bottom-medium"><div class="columns padding-top-medium"><button class="close-button" aria-label="Close alert" type="button"><span aria-hidden="true">×</span></button></div></div><div class="row"><form id="global-search" name="global-search" action="/ebisearch/search.ebi" method="GET" class=""><fieldset><div class="input-group"><input type="text" name="query" id="global-searchbox" class="input-group-field" placeholder="Search all of EMBL-EBI"><div class="input-group-button"><input type="submit" name="submit" value="Search" class="button"><input type="hidden" name="db" value="allebi" checked="checked"><input type="hidden" name="requestFrom" value="masthead-black-bar" checked="checked"></div></div></fieldset></form></div></nav>',document.getElementById("masthead-black-bar").insertBefore(dropdownDiv,document.getElementById("masthead-black-bar").firstChild);var searchBar=document.querySelectorAll(".search-bar")[0],searchBarButton=document.querySelectorAll(".search-toggle")[0],blackBar=document.querySelectorAll(".masthead-black-bar")[0];searchBarButton.addEventListener("mouseenter",function(event){0==ebiHasClass(document.querySelectorAll(".search-bar")[0],"active")&&(blackBar.className+=" peek")},!1),searchBarButton.addEventListener("mouseleave",function(event){0==ebiHasClass(document.querySelectorAll(".search-bar")[0],"active")&&blackBar.classList.remove("peek")},!1);document.querySelectorAll(".search-toggle")[0].addEventListener("click",function(event){ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".search-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1)}catch(err){setTimeout(init,500)}}catch(err){}}function ebiFrameworkSearchNullError(){try{var disabled=-1!==document.body.className.indexOf("no-search-error"),searchBoxes=[{inputNode:document.getElementById("global-searchbox")},{inputNode:document.getElementById("local-searchbox")},{inputNode:-1!==document.body.className.indexOf("front")?document.getElementById("query"):null},{inputNode:document.getElementById("people-groups")?document.getElementById("people-groups").getElementsByTagName("input")[0]:null}];if(!disabled)for(searchBox in searchBoxes){var searchInput=searchBoxes[searchBox].inputNode,searchForm=searchInput?searchInput.form:null,searchInputDefault=searchBoxes[searchBox].defaultText||"",searchError=searchBoxes[searchBox].errorText||"Please enter a search term",isEbiSearch=-1!==(searchForm?searchForm.action:"").indexOf("/ebisearch/");searchForm&&searchInput&&isEbiSearch&&(searchForm.searchInput=searchInput,searchForm.searchInputDefault=searchInputDefault,searchForm.searchError=searchError,searchForm.onsubmit=function(){if(searchInput=this.searchInput,searchInputDefault=this.searchInputDefault,searchError=this.searchError,searchInput.value=searchInput.value.trim(),searchInput.value===searchInputDefault||""===searchInput.value)return alert(searchError),!1})}}catch(err){}}function isIE(){var myNav=navigator.userAgent.toLowerCase();return-1!=myNav.indexOf("msie")&&parseInt(myNav.split("msie")[1])}function ebiToggleClass(element,toggleClass){var newClass,currentClass=element.className;newClass=currentClass.split(" ").indexOf(toggleClass)>-1?currentClass.replace(new RegExp("\\b"+toggleClass+"\\b","g"),""):currentClass+" "+toggleClass,element.className=newClass.trim()}function ebiActivateClass(element,cssClass){element.classList.remove(cssClass),element.classList.add(cssClass)}function ebiRemoveClass(element,cssClass){element.classList.remove(cssClass)}function ebiFrameworkHideGlobalNav(){try{var elem,hasGlobalMasthead=null!==document.getElementById("masthead-black-bar"),disabled=-1!==document.body.className.indexOf("no-global-nav");hasGlobalMasthead&&disabled&&(null!==(elem=document.getElementById("global-nav"))&&elem.parentNode.removeChild(elem),null!==(elem=document.getElementById("global-nav-expanded"))&&elem.parentNode.removeChild(elem))}catch(err){}}function ebiFrameworkAssignImageByMetaTags(){var masthead=document.getElementById("masthead"),mastheadColor=document.querySelector("meta[name='ebi:masthead-color']")||document.querySelector("meta[name='ebi-masthead-color']"),mastheadImage=document.querySelector("meta[name='ebi:masthead-image']")||document.querySelector("meta[name='ebi-masthead-image']");null!=mastheadColor&&(masthead.style.backgroundColor=mastheadColor.getAttribute("content"),masthead.className+=" meta-background-color"),null!=mastheadImage&&(masthead.style.backgroundImage="url("+mastheadImage.getAttribute("content")+")",masthead.className+=" meta-background-image")}function ebiFrameworkPopulateBlackBar(){try{null!==(elem=document.getElementById("masthead-black-bar"))&&(document.getElementById("masthead-black-bar").innerHTML="");var barContents=document.createElement("div");barContents.innerHTML='<nav class="row"><ul id="global-nav" class="menu global-nav text-right"><li class="home-mobile"><a href="https://www.ebi.ac.uk"></a></li><li class="where embl hide"><a href="http://www.embl.org">EMBL</a></li><li class="where barcelona hide"><a href="#">Barcelona</a></li><li class="where hamburg hide"><a href="#">Hamburg</a></li><li class="where grenoble hide"><a href="#">Heidelberg</a></li><li class="where grenoble hide"><a href="#">Grenoble</a></li><li class="where rome hide"><a href="#">Rome</a></li><li id="embl-selector" class="float-right show-for-medium embl-selector embl-ebi"><button class="button float-right">&nbsp;</button></li><li class="float-right search"><a href="#" class="inline-block collpased float-left search-toggle"><span class="show-for-small-only">Search</span></a></li><li class="what about"><a href="https://www.ebi.ac.uk/about">About us</a></li><li class="what training"><a href="https://www.ebi.ac.uk/training">Training</a></li><li class="what research"><a href="https://www.ebi.ac.uk/research">Research</a></li><li class="what services"><a href="https://www.ebi.ac.uk/services">Services</a></li><li class="where ebi"><a href="https://www.ebi.ac.uk">EMBL-EBI</a></li></ul></nav>',document.getElementById("masthead-black-bar").insertBefore(barContents,document.getElementById("masthead-black-bar").firstChild),document.body.className+=" ebi-black-bar-loaded"}catch(err){}}function ebiGetFacet(passedAttribute){var tag="#masthead-black-bar ."+passedAttribute.toLowerCase();return document.querySelectorAll(tag)[0]}function ebiFrameworkActivateBlackBar(){try{for(var metas=document.getElementsByTagName("meta"),i=0;i<metas.length;i++)if("embl:active"==metas[i].getAttribute("name")&&(ebiRemoveClass(targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":",".")),"hide"),ebiActivateClass(targetFacet,"active")),"embl:parent-1"==metas[i].getAttribute("name")&&(ebiRemoveClass(targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":",".")),"hide"),ebiActivateClass(targetFacet,"active")),"embl:parent-2"==metas[i].getAttribute("name")){var targetFacet=ebiGetFacet(metas[i].getAttribute("content").replace(":","."));ebiRemoveClass(targetFacet,"hide"),ebiActivateClass(targetFacet,"active")}var mouseoutTimer;blackBar.addEventListener("mouseenter",function(){window.clearTimeout(mouseoutTimer)},!1),blackBar.addEventListener("mouseleave",function(){mouseoutTimer=window.setTimeout(function(){resetBlackBar()},500)});function resetBlackBar(){ebiFrameworkActivateBlackBar()}}catch(err){}}function ebiFrameworkInsertEMBLdropdown(){try{null!==(elem=document.getElementById("embl-bar"))&&document.getElementById("embl-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='<nav id="embl-bar" class="embl-bar global-masthead-interactive-banner"><div class="row padding-bottom-medium"><div class="columns padding-top-medium"><button class="close-button" aria-label="Close alert" type="button"><span aria-hidden="true">×</span></button></div><div class="columns medium-7"><div class="large-10 medium-12"><div class="margin-bottom-large padding-top-xsmall margin-top-large"><h3 class="no-underline inline" style="line-height: 1rem;"><a href="//embl.org">EMBL</a></h3> was set up in 1974 as Europe’s flagship laboratory for the life sciences – an intergovernmental organisation with more than 80 independent research groups covering the spectrum of molecular biology:</div></div><div class="row large-up-3 medium-up-3 small-up-2 no-underline medium-11"><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/research/index.php"><h5 class="inline underline">Research:</h5> perform basic research in molecular biology</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/services/index.html"><h5 class="inline underline">Services:</h5> offer vital services to scientists in the member states</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/training/index.php"><h5 class="inline underline">Training</h5> scientists, students and visitors at all levels</a></div><div class="column padding-bottom-medium"><a class="" href="https://www.embl.de/research/tech_transfer/index.html"><h5 class="inline underline">Transfer</h5> and development of technology</a></div><div class="column padding-bottom-medium"><h5 class="inline underline">Develop</h5> new instruments and methods</div><div class="column padding-bottom-medium"><h5 class="inline underline">Integrating</h5> life science research in Europe</div></div><div class="margin-top-xlarge no-underline"><h3><a href="//embl.org" class="readmore">More about EMBL</a></h3></div></div><div class="columns medium-5"><div class="large-10 medium-12"><h3 class="inline">Six sites</h3><p>represent EMBL in Europe.</p></div><div class="row medium-up-2 small-up-2"><div class="column"><h5 class="inline"><a href="//www.embl-barcelona.es/">Barcelona</a></h5><p class="">Tissue biology and disease modelling</p></div><div class="column"><h5 class="inline"><a href="//www.embl.fr/">Grenoble</a></h5><p class="">Structural biology</p></div><div class="column"><h5 class="inline"><a href="//www.embl-hamburg.de/">Hamburg</a></h5><p class="">Structural biology</p></div><div class="column"><h5 class="inline"><a href="//www.embl.de/">Heidelberg</a></h5><p class="">Main laboratory</p></div><div class="column"><h5 class="inline"><a href="https://www.ebi.ac.uk/">Hinxton</a></h5><p class="margin-bottom-none">EMBL-EBI: European Bioinformatics Institute</p></div><div class="column"><h5 class="inline"><a href="//www.embl.it/">Rome</a></h5><p class="">Epigenetics and neurobiology</p></div></div></div></div></nav>',document.getElementById("masthead-black-bar").insertBefore(dropdownDiv,document.getElementById("masthead-black-bar").firstChild);var emblBar=document.querySelectorAll(".embl-bar")[0],emblBarButton=document.querySelectorAll(".embl-selector")[0],blackBar=document.querySelectorAll(".masthead-black-bar")[0];emblBarButton.addEventListener("mouseenter",function(event){0==ebiHasClass(document.querySelectorAll(".embl-bar")[0],"active")&&(blackBar.className+=" peek")},!1),emblBarButton.addEventListener("mouseleave",function(event){0==ebiHasClass(document.querySelectorAll(".embl-bar")[0],"active")&&blackBar.classList.remove("peek")},!1);document.querySelectorAll(".embl-selector")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".embl-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),window.scrollTo(0,0)},!1)}catch(err){}}function ebiFrameworkUpdateFoot(){function init(){try{document.getElementById("global-nav-expanded").innerHTML=html}catch(err){setTimeout(init,500)}}var html='<div class="columns small-12"><h4 class="inline-block"><a href="https://www.ebi.ac.uk" class="no-underline" title="EMBL-EBI">EMBL-EBI</a></h4><span class="small inline-block padding-left-large"><a class="readmore" href="http://intranet.ebi.ac.uk"><span class="icon icon-functional" data-icon="L"></span> Intranet for staff</a></span></div><div class="medium-up-5 small-up-2"><div class="column"><h5 class="services"><a class="services-color" href="https://www.ebi.ac.uk/services">Services</a></h5><ul> <li class="first"><a href="https://www.ebi.ac.uk/services">By topic</a></li> <li><a href="https://www.ebi.ac.uk/services/all">By name (A-Z)</a></li> <li class="last"><a href="https://www.ebi.ac.uk/support">Help &amp; Support</a></li> </ul></div><div class="column"><h5 class="research"><a class="research-color" href="https://www.ebi.ac.uk/research">Research</a></h5><ul> <li><a href="https://www.ebi.ac.uk/research/publications">Publications</a></li> <li><a href="https://www.ebi.ac.uk/research/groups">Research groups</a></li> <li class="last"><a href="https://www.ebi.ac.uk/research/postdocs">Postdocs</a> &amp; <a href="https://www.ebi.ac.uk/research/eipp">PhDs</a></li> </ul></div><div class="column"> <h5 class="training"><a class="training-color" href="https://www.ebi.ac.uk/training">Training</a></h5><ul> <li><a href="https://www.ebi.ac.uk/training/handson">Train at EBI</a></li> <li><a href="https://www.ebi.ac.uk/training/roadshow">Train outside EBI</a></li> <li><a href="https://www.ebi.ac.uk/training/online">Train online</a></li> <li class="last"><a href="https://www.ebi.ac.uk/training/contact-us">Contact organisers</a></li> </ul></div> <div class="column"> <h5 class="industry"><a class="industry-color" href="https://www.ebi.ac.uk/industry">Industry</a></h5><ul> <li><a href="https://www.ebi.ac.uk/industry/private">Members Area</a></li> <li><a href="https://www.ebi.ac.uk/industry/workshops">Workshops</a></li> <li><a href="https://www.ebi.ac.uk/industry/sme-forum"><abbr title="Small Medium Enterprise">SME</abbr> Forum</a></li> <li class="last"><a href="https://www.ebi.ac.uk/industry/contact">Contact Industry programme</a></li> </ul></div> <div class="column"> <h5 class="about"><a class="ebi-color" href="https://www.ebi.ac.uk/about">About</a></h5><ul> <li><a href="https://www.ebi.ac.uk/about/contact">Contact us</a><li><a href="https://www.ebi.ac.uk/about/events">Events</a></li> <li><a href="https://www.ebi.ac.uk/about/jobs" title="Jobs, postdocs, PhDs...">Jobs</a></li> <li class="first"><a href="https://www.ebi.ac.uk/about/news">News</a></li> <li><a href="https://www.ebi.ac.uk/about/people">People &amp; groups</a></li> </ul></div></div>';init()}function ebiFrameworkUpdateFooterMeta(){function init(){try{document.getElementById("ebi-footer-meta").innerHTML=html}catch(err){setTimeout(init,500)}}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 '+(new Date).getFullYear()+' | EMBL-EBI is <a href="http://www.embl.org/">part of the European Molecular Biology Laboratory</a> | <a href="https://www.ebi.ac.uk/about/terms-of-use">Terms of use</a></p></div>';init()}function ebiInjectAnnouncements(message){if(void 0===message)return!1;if(void 0!==message.processed)return!0;message.processed=!0;var container=document.getElementById("main-content-area")||document.getElementById("main-content")||document.getElementById("main")||document.getElementById("content")||document.getElementById("contentsarea");if(null==container)return console.warn("A message needs to be shown on this site, but an appropriate container could not be found. \n Message follows:","\n"+message.headline,"\n"+message.message,"\nPriority:",message.priority),!1;var banner=document.createElement("div"),wrapper=document.createElement("div");banner.className="notifications-js row margin-top-medium",wrapper.className="callout "+(message.priority||""),wrapper.innerHTML="<h3>"+message.headline+"</h3>"+message.message,container.insertBefore(banner,container.firstChild),banner.appendChild(wrapper)}function ebiFrameworkIncludeAnnouncements(){function detectAnnouncements(messages){var currentHost=window.location.hostname,currentPath=window.location.pathname;if(currentHost=currentHost.replace(/wwwdev/g,"www"),ebiInjectAnnouncements(messages[currentHost]),ebiInjectAnnouncements(messages[currentHost+"/"]),ebiInjectAnnouncements(messages[currentHost+"/*"]),currentPath.length>1){for(var currentPathArray=currentPath.split("/"),pathsToMatch=[currentHost+currentPathArray[0]],i=1;i<currentPathArray.length;i++){var tempPath=pathsToMatch[i-1];pathsToMatch.push(tempPath+"/"+currentPathArray[i])}for(i=0;i<pathsToMatch.length;i++)ebiInjectAnnouncements(messages[pathsToMatch[i]]),ebiInjectAnnouncements(messages[pathsToMatch[i]+"*"]),ebiInjectAnnouncements(messages[pathsToMatch[i]+"/*"])}}function loadRemoteAnnouncements(file){window.XMLHttpRequest&&(xmlhttp=new XMLHttpRequest),xmlhttp.open("GET",file,!0),xmlhttp.onload=function(e){4===xmlhttp.readyState&&(200===xmlhttp.status?(eval(xmlhttp.responseText),detectAnnouncements(m)):console.error(xmlhttp.statusText))},xmlhttp.onerror=function(e){console.error(xmlhttp.statusText)},xmlhttp.send(null)}loadRemoteAnnouncements(0===window.location.hostname.indexOf("wwwdev.")?"https://dev.ebi.emblstatic.net/announcements.js":"https://ebi.emblstatic.net/announcements.js")}function ebiFrameworkCreateDataProtectionBanner(){var banner=document.createElement("div"),wrapper=document.createElement("div");document.createElement("div");null!=document.getElementById("data-protection-banner")&&document.getElementById("data-protection-banner").remove(),banner.id="data-protection-banner",banner.className="data-protection-banner",banner.style.cssText="position: fixed; background: #111; width: 100%; padding: .75rem 1%; left: 0; bottom: 0; color: #eee; z-index: 10;",wrapper.className="row",wrapper.innerHTML="<div class='columns medium-8 large-9 white-color'>"+dataProtectionSettings.message+"</div><div class='columns medium-4 large-3 text-right white-color'><a id='data-protection-agree' class=''>I agree, dismiss this banner</a></div>",document.body.appendChild(banner),banner.appendChild(wrapper),ebiFrameworkTrackDataProtectionBanner(),openDataProtectionBanner()}function ebiFrameworkTrackDataProtectionBanner(){var bannerTrackingEventLoaded=0;"function"==typeof analyticsTrackInteraction&&"function"==typeof jQuery&&jQuery("body").hasClass("google-analytics-loaded")?(bannerTrackingEventLoaded=1,jQuery("body.google-analytics-loaded .data-protection-banner a").on("mousedown",function(e){analyticsTrackInteraction(e.target,"Data protection banner")})):bannerTrackingEventLoaded=ebiFrameworkRetryTrackDataProtectionBanner(bannerTrackingEventLoaded)}function ebiFrameworkRetryTrackDataProtectionBanner(bannerTrackingEventLoaded){return--bannerTrackingEventLoaded>-3&&setTimeout(ebiFrameworkTrackDataProtectionBanner,900),bannerTrackingEventLoaded}function openDataProtectionBanner(){var height=document.getElementById("data-protection-banner").offsetHeight||0;document.getElementById("data-protection-banner").style.display="block",document.body.style.paddingBottom=height+"px",document.getElementById("data-protection-agree").onclick=function(){return closeDataProtectionBanner(),!1}}function closeDataProtectionBanner(){document.getElementById("data-protection-banner").offsetHeight;document.getElementById("data-protection-banner").style.display="none",document.body.style.paddingBottom="0",ebiFrameworkSetCookie(dataProtectionSettings.cookieName,"true",90)}function ebiFrameworkSetCookie(c_name,value,exdays){var c_value,exdate=new Date;exdate.setDate(exdate.getDate()+exdays),c_value=escape(value)+(null===exdays?"":";expires="+exdate.toUTCString())+";domain="+document.domain+";path=/",document.cookie=c_name+"="+c_value}function ebiFrameworkGetCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i<ARRcookies.length;i++)if(x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")),y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1),(x=x.replace(/^\s+|\s+$/g,""))===c_name)return unescape(y)}function ebiFrameworkRunDataProtectionBanner(targetedFrameworkVersion){try{"undefined"!=typeof newDataProtectionNotificationBanner&&(targetedFrameworkVersion=newDataProtectionNotificationBanner.src.split("legacyRequest=")[1]||"generic");var compatibilityStyles=document.createElement("style");switch(compatibilityStyles.innerHTML="\n #cookie-banner {\n display: none;\n }\n .data-protection-banner {\n box-sizing: border-box;\n }\n .data-protection-banner a,\n .data-protection-banner a:hover {\n cursor: pointer;\n color: #fff;\n border-bottom-width: 1px;\n border-bottom-style: dotted;\n border-bottom-color: inherit;\n text-decoration: none;\n }\n .data-protection-banner .medium-8 {\n width: 75%; margin-left: 1%; float: left;\n }\n .data-protection-banner .medium-4 {\n width: 23%; margin-right: 1%; float: right; text-align: right;\n }\n ",targetedFrameworkVersion){case"1.1":case"1.2":null!=document.getElementById("cookie-banner")&&document.getElementById("cookie-banner").remove(),document.body.style.paddingBottom=0;break;case"1.3":null!=document.getElementById("cookie-banner")&&document.getElementById("cookie-banner").remove();break;case"compliance":null!=document.getElementById("cookie-banner")&&document.getElementById("cookie-banner").remove(),document.body.style.paddingTop=0,document.body.appendChild(compatibilityStyles);break;case"other":document.body.appendChild(compatibilityStyles);break;default:console.warn("You should specify the targeted FrameworkVersion (allowed values: 1.1, 1.2, 1.3, compliance, other). You sent: "+targetedFrameworkVersion)}dataProtectionSettings.message='This website requires cookies, and the limited processing of your personal data in order to function. By using the site you are agreeing to this as outlined in our <a target="_blank" href="https://www.ebi.ac.uk/data-protection/privacy-notice/embl-ebi-public-website">Privacy Notice</a> and <a target="_blank" href="https://www.ebi.ac.uk/about/terms-of-use">Terms of Use</a>.',dataProtectionSettings.serviceId="embl-ebi-public-website",dataProtectionSettings.dataProtectionVersion="1.0";var divDataProtectionBanner=document.getElementById("data-protection-message-configuration");null!==divDataProtectionBanner&&(void 0!==divDataProtectionBanner.dataset.message&&(dataProtectionSettings.message=divDataProtectionBanner.dataset.message),void 0!==divDataProtectionBanner.dataset.serviceId&&(dataProtectionSettings.serviceId=divDataProtectionBanner.dataset.serviceId),void 0!==divDataProtectionBanner.dataset.dataProtectionVersion&&(dataProtectionSettings.dataProtectionVersion=divDataProtectionBanner.dataset.dataProtectionVersion)),dataProtectionSettings.cookieName=dataProtectionSettings.serviceId+"-v"+dataProtectionSettings.dataProtectionVersion+"-data-protection-accepted","true"!=ebiFrameworkGetCookie(dataProtectionSettings.cookieName)&&ebiFrameworkCreateDataProtectionBanner()}catch(err){setTimeout(ebiFrameworkRunDataProtectionBanner,100)}}function resetDataProtectionBanner(){document.cookie=dataProtectionSettings.cookieName+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+document.domain+";path=/",ebiFrameworkRunDataProtectionBanner("1.3")}function ebiFrameworkCookieBanner(){console.warn("You are calling an old function name, update it to ebiFrameworkRunDataProtectionBanner();"),ebiFrameworkRunDataProtectionBanner("1.3")}function ebiFrameworkInvokeScripts(){ebiFrameworkPopulateBlackBar(),ebiFrameworkActivateBlackBar(),ebiFrameworkExternalLinks(),ebiFrameworkManageGlobalSearch(),ebiFrameworkSearchNullError(),ebiFrameworkHideGlobalNav(),ebiFrameworkAssignImageByMetaTags(),ebiFrameworkInsertEMBLdropdown(),ebiFrameworkUpdateFoot(),ebiFrameworkUpdateFooterMeta(),ebiFrameworkIncludeAnnouncements(),ebiFrameworkRunDataProtectionBanner("1.3")}var dataProtectionSettings=new Object;document.addEventListener("DOMContentLoaded",function(event){var bodyData=document.body.dataset;isIE()&&isIE()<=10&&(bodyData=[]),"false"!=bodyData.ebiframeworkinvokescripts&&ebiFrameworkInvokeScripts()});

@@ -12,3 +12,3 @@ {

"name": "ebi-framework",
"version": "1.3.0",
"version": "1.3.5",
"scripts": {

@@ -15,0 +15,0 @@ "test": "npm run libraries && npm run scss && npm run js && npm run documentation",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc