diff --git a/js/documenation.md b/js/documenation.md index c582d267..2d82eff7 100644 --- a/js/documenation.md +++ b/js/documenation.md @@ -313,7 +313,7 @@ Active tabs in `#masthead-black-bar` according to metadata ## ebiFrameworkActivateBlackBar -[js/script.js:283-345][102] +[js/script.js:283-346][102] Active tabs in `#masthead-black-bar` according to metadata @@ -325,7 +325,7 @@ Insert EMBL dropdown menu into `#masthead-black-bar` ## ebiFrameworkInsertEMBLdropdown -[js/script.js:350-396][104] +[js/script.js:351-397][104] Insert EMBL dropdown menu into `#masthead-black-bar` @@ -337,7 +337,7 @@ Insert EBI Footer into `#global-nav-expanded` ## ebiFrameworkUpdateFoot -[js/script.js:401-413][106] +[js/script.js:402-414][106] Insert EBI Footer into `#global-nav-expanded` @@ -349,7 +349,7 @@ Insert footer meta info into `#ebi-footer-meta` ## ebiFrameworkUpdateFooterMeta -[js/script.js:418-433][108] +[js/script.js:419-434][108] Insert footer meta info into `#ebi-footer-meta` @@ -374,7 +374,7 @@ ebiInjectAnnouncements({ headline: 'Your headline here', message: 'this', priori ## ebiInjectAnnouncements -[js/script.js:444-477][111] +[js/script.js:445-478][111] Once an announcement has been matched to the current page, show it (if there is one). @@ -400,7 +400,7 @@ For more info, see: [https://gitlab.ebi.ac.uk/ebiwd/ebi.emblstatic.net-root-asse ## ebiFrameworkIncludeAnnouncements -[js/script.js:483-552][114] +[js/script.js:484-553][114] Load the downtime/announcement messages, if any. For more info, see: [https://gitlab.ebi.ac.uk/ebiwd/ebi.emblstatic.net-root-assets/tree/master/src][113] @@ -414,7 +414,7 @@ For guidance on using: [https://www.ebi.ac.uk/style-lab/websites/patterns/banner ## ebiFrameworkCreateDataProtectionBanner -[js/script.js:558-580][117] +[js/script.js:559-581][117] Injects the Data Protection notice onto sites For guidance on using: [https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html][116] @@ -427,7 +427,7 @@ Log acceptance of banner, if GA is set and using EBIFoundationExtend ## ebiFrameworkTrackDataProtectionBanner -[js/script.js:586-600][119] +[js/script.js:587-601][119] Log acceptance of banner, if GA is set and using EBIFoundationExtend @@ -443,7 +443,7 @@ Give a second for banner checking if GA was slow to load ## ebiFrameworkRetryTrackDataProtectionBanner -[js/script.js:606-613][121] +[js/script.js:607-614][121] Give a second for banner checking if GA was slow to load @@ -459,7 +459,7 @@ Shows the data protection banner on screen. ## openDataProtectionBanner -[js/script.js:618-627][123] +[js/script.js:619-628][123] Shows the data protection banner on screen. @@ -471,7 +471,7 @@ Hides the data protection banner from the screen. ## closeDataProtectionBanner -[js/script.js:632-637][125] +[js/script.js:633-638][125] Hides the data protection banner from the screen. @@ -488,7 +488,7 @@ Further documentation at [https://www.ebi.ac.uk/style-lab/websites/patterns/bann ## ebiFrameworkRunDataProtectionBanner -[js/script.js:671-739][127] +[js/script.js:672-740][127] 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][116] @@ -505,7 +505,7 @@ Clear the cooke. This is mostly a development tool. ## resetDataProtectionBanner -[js/script.js:744-747][129] +[js/script.js:745-748][129] Clear the cooke. This is mostly a development tool. @@ -518,7 +518,7 @@ Fallback for any code that was directly calling the old cookie banner: ## ebiFrameworkCookieBanner -[js/script.js:753-756][132] +[js/script.js:754-757][132] 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][131] @@ -538,7 +538,7 @@ Configurable with a data attribute: ## ebiFrameworkInvokeScripts -[js/script.js:767-780][134] +[js/script.js:768-781][134] All scripts are automatically loaded, unless the page asked us not to. @@ -868,162 +868,162 @@ Background: [https://github.com/ebiwd/EBI-Framework/issues/77][151] [74]: #addexternal -[75]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/1_about.js#L16-L24 "Source code on GitHub" +[75]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/1_about.js#L16-L24 "Source code on GitHub" [76]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String -[77]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L16-L24 "Source code on GitHub" +[77]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L16-L24 "Source code on GitHub" -[78]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js#L4-L35 "Source code on GitHub" +[78]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/2_ebiFrameworkExternalLinks.js#L4-L35 "Source code on GitHub" -[79]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L35-L58 "Source code on GitHub" +[79]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L35-L58 "Source code on GitHub" -[80]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L5-L80 "Source code on GitHub" +[80]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L5-L80 "Source code on GitHub" -[81]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L64-L117 "Source code on GitHub" +[81]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L64-L117 "Source code on GitHub" -[82]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L86-L130 "Source code on GitHub" +[82]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/3_ebiFrameworkForms.js#L86-L130 "Source code on GitHub" -[83]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L123-L165 "Source code on GitHub" +[83]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L123-L165 "Source code on GitHub" -[84]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L7-L10 "Source code on GitHub" +[84]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L7-L10 "Source code on GitHub" [85]: https://stackoverflow.com/a/15983064 -[86]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L173-L176 "Source code on GitHub" +[86]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L173-L176 "Source code on GitHub" -[87]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L15-L24 "Source code on GitHub" +[87]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L15-L24 "Source code on GitHub" -[88]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L181-L191 "Source code on GitHub" +[88]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L181-L191 "Source code on GitHub" -[89]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L29-L32 "Source code on GitHub" +[89]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L29-L32 "Source code on GitHub" -[90]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L196-L199 "Source code on GitHub" +[90]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L196-L199 "Source code on GitHub" -[91]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L37-L39 "Source code on GitHub" +[91]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L37-L39 "Source code on GitHub" -[92]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L204-L206 "Source code on GitHub" +[92]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L204-L206 "Source code on GitHub" -[93]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L44-L60 "Source code on GitHub" +[93]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L44-L60 "Source code on GitHub" -[94]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L211-L226 "Source code on GitHub" +[94]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L211-L226 "Source code on GitHub" -[95]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L65-L79 "Source code on GitHub" +[95]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L65-L79 "Source code on GitHub" -[96]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L231-L245 "Source code on GitHub" +[96]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L231-L245 "Source code on GitHub" -[97]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L84-L124 "Source code on GitHub" +[97]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L84-L124 "Source code on GitHub" -[98]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L250-L270 "Source code on GitHub" +[98]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L250-L270 "Source code on GitHub" -[99]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L129-L132 "Source code on GitHub" +[99]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L129-L132 "Source code on GitHub" -[100]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L275-L278 "Source code on GitHub" +[100]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L275-L278 "Source code on GitHub" -[101]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L137-L200 "Source code on GitHub" +[101]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L137-L200 "Source code on GitHub" -[102]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L283-L345 "Source code on GitHub" +[102]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L283-L346 "Source code on GitHub" -[103]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L205-L290 "Source code on GitHub" +[103]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L205-L290 "Source code on GitHub" -[104]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L350-L396 "Source code on GitHub" +[104]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L351-L397 "Source code on GitHub" -[105]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L295-L325 "Source code on GitHub" +[105]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L295-L325 "Source code on GitHub" -[106]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L401-L413 "Source code on GitHub" +[106]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L402-L414 "Source code on GitHub" -[107]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L330-L344 "Source code on GitHub" +[107]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L330-L344 "Source code on GitHub" -[108]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L418-L433 "Source code on GitHub" +[108]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L419-L434 "Source code on GitHub" -[109]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L355-L389 "Source code on GitHub" +[109]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L355-L389 "Source code on GitHub" [110]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object -[111]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L444-L477 "Source code on GitHub" +[111]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L445-L478 "Source code on GitHub" -[112]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L395-L465 "Source code on GitHub" +[112]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/4_ebiFrameworkContent.js#L395-L465 "Source code on GitHub" [113]: https://gitlab.ebi.ac.uk/ebiwd/ebi.emblstatic.net-root-assets/tree/master/src -[114]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L483-L552 "Source code on GitHub" +[114]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L484-L553 "Source code on GitHub" -[115]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L5-L32 "Source code on GitHub" +[115]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L5-L32 "Source code on GitHub" [116]: https://www.ebi.ac.uk/style-lab/websites/patterns/banner-data-protection.html -[117]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L558-L580 "Source code on GitHub" +[117]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L559-L581 "Source code on GitHub" -[118]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L38-L52 "Source code on GitHub" +[118]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L38-L52 "Source code on GitHub" -[119]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L586-L600 "Source code on GitHub" +[119]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L587-L601 "Source code on GitHub" -[120]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L58-L64 "Source code on GitHub" +[120]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L58-L64 "Source code on GitHub" -[121]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L606-L613 "Source code on GitHub" +[121]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L607-L614 "Source code on GitHub" -[122]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L69-L78 "Source code on GitHub" +[122]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L69-L78 "Source code on GitHub" -[123]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L618-L627 "Source code on GitHub" +[123]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L619-L628 "Source code on GitHub" -[124]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L83-L88 "Source code on GitHub" +[124]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L83-L88 "Source code on GitHub" -[125]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L632-L637 "Source code on GitHub" +[125]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L633-L638 "Source code on GitHub" -[126]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L119-L208 "Source code on GitHub" +[126]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L119-L208 "Source code on GitHub" -[127]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L671-L739 "Source code on GitHub" +[127]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L672-L740 "Source code on GitHub" -[128]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L213-L216 "Source code on GitHub" +[128]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L213-L216 "Source code on GitHub" -[129]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L744-L747 "Source code on GitHub" +[129]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L745-L748 "Source code on GitHub" -[130]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L222-L225 "Source code on GitHub" +[130]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/5_ebiFrameworkNotificationBanner.js#L222-L225 "Source code on GitHub" [131]: https://github.com/ebiwd/EBI-Framework/blob/6707eff40e15036f735637413deed0dcb7392818/js/ebi-global-includes/script/5_ebiFrameworkCookieBanner.js -[132]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L753-L756 "Source code on GitHub" +[132]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L754-L757 "Source code on GitHub" -[133]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js#L7-L20 "Source code on GitHub" +[133]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/ebi-global-includes/script/6_ebiFrameworkInvokeScripts.js#L7-L20 "Source code on GitHub" -[134]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/script.js#L767-L780 "Source code on GitHub" +[134]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/script.js#L768-L781 "Source code on GitHub" -[135]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L12-L34 "Source code on GitHub" +[135]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L12-L34 "Source code on GitHub" [136]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number -[137]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L19-L26 "Source code on GitHub" +[137]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L19-L26 "Source code on GitHub" -[138]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L42-L46 "Source code on GitHub" +[138]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L42-L46 "Source code on GitHub" -[139]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L52-L52 "Source code on GitHub" +[139]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L52-L52 "Source code on GitHub" [140]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date -[141]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L71-L102 "Source code on GitHub" +[141]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L71-L102 "Source code on GitHub" [142]: https://developer.mozilla.org/docs/Web/API/Element -[143]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L111-L194 "Source code on GitHub" +[143]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L111-L194 "Source code on GitHub" -[144]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L200-L207 "Source code on GitHub" +[144]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L200-L207 "Source code on GitHub" -[145]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L213-L218 "Source code on GitHub" +[145]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L213-L218 "Source code on GitHub" -[146]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L231-L260 "Source code on GitHub" +[146]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L231-L260 "Source code on GitHub" -[147]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L265-L298 "Source code on GitHub" +[147]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L265-L298 "Source code on GitHub" -[148]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L303-L411 "Source code on GitHub" +[148]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L303-L411 "Source code on GitHub" -[149]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L416-L511 "Source code on GitHub" +[149]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L416-L511 "Source code on GitHub" -[150]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L483-L483 "Source code on GitHub" +[150]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L483-L483 "Source code on GitHub" [151]: https://github.com/ebiwd/EBI-Framework/issues/77 -[152]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L488-L492 "Source code on GitHub" +[152]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L488-L492 "Source code on GitHub" -[153]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L497-L501 "Source code on GitHub" +[153]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L497-L501 "Source code on GitHub" -[154]: https://github.com/ebiwd/EBI-Framework/blob/f82685e9ad17dc20fe299d329ed25a733478ae79/js/foundationExtendEBI.js#L506-L509 "Source code on GitHub" +[154]: https://github.com/ebiwd/EBI-Framework/blob/a014b0ebbc3b8333118b01b4196e186d305f6c33/js/foundationExtendEBI.js#L506-L509 "Source code on GitHub" diff --git a/js/ebi-global-includes/script/4_ebiFrameworkContent.js b/js/ebi-global-includes/script/4_ebiFrameworkContent.js index 91cc5e2e..4ff6d5a0 100644 --- a/js/ebi-global-includes/script/4_ebiFrameworkContent.js +++ b/js/ebi-global-includes/script/4_ebiFrameworkContent.js @@ -237,7 +237,7 @@ function ebiFrameworkInsertEMBLdropdown() { '

Six sites

represent EMBL in Europe.

'+ ''+ '
'+ - '
Barcelona

Tissue biology and disease modelling

'+ + '
Barcelona

Tissue biology and disease modelling

'+ '
Grenoble

Structural biology

'+ '
Hamburg

Structural biology

'+ '
Heidelberg

Main laboratory

'+ @@ -330,7 +330,7 @@ function ebiFrameworkUpdateFoot() { function ebiFrameworkUpdateFooterMeta() { var d = new Date(); var html = '
' + - '

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

'; diff --git a/js/script.js b/js/script.js index dfaf7d1a..e61a1d74 100644 --- a/js/script.js +++ b/js/script.js @@ -358,7 +358,7 @@ function ebiFrameworkInsertEMBLdropdown() { var dropdownDiv = document.createElement("div"); dropdownDiv.innerHTML = ''; document.getElementById("masthead-black-bar").insertBefore(dropdownDiv, document.getElementById("masthead-black-bar").firstChild); @@ -418,7 +418,7 @@ function ebiFrameworkUpdateFoot() { */ function ebiFrameworkUpdateFooterMeta() { var d = new Date(); - var html = '
' + '

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

' + '

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

'; diff --git a/js/script.min.js b/js/script.min.js index c26a57aa..b19ac5c3 100644 --- a/js/script.min.js +++ b/js/script.min.js @@ -1 +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(){function isFileType(url,type){return-1!==url.indexOf(type,url.length-type.length)}try{var i,icon,alist=document.getElementsByTagName("a"),fileTypes=["pdf","doc","txt"];for(i=0;i')&&-1===alist[i].innerHTML.indexOf("
',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){event.preventDefault(),ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".search-bar .close-button")[0].addEventListener("click",function(event){event.preventDefault(),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='',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{var mouseoutTimer;blackBar.addEventListener("mouseenter",function(){window.clearTimeout(mouseoutTimer)},!1),blackBar.addEventListener("mouseleave",function(){mouseoutTimer=window.setTimeout(function(){ebiFrameworkActivateBlackBar()},500)})}catch(err){}}function ebiFrameworkInsertEMBLdropdown(){try{null!==(elem=document.getElementById("embl-bar"))&&document.getElementById("embl-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='',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"),event.preventDefault(),window.scrollTo(0,0)},!1),document.querySelectorAll(".embl-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),event.preventDefault(),window.scrollTo(0,0)},!1)}catch(err){}}function ebiFrameworkUpdateFoot(){var html='';!function init(){try{document.getElementById("global-nav-expanded").innerHTML=html}catch(err){setTimeout(init,500)}}()}function ebiFrameworkUpdateFooterMeta(){var html='

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

';!function init(){try{document.getElementById("ebi-footer-meta").innerHTML=html}catch(err){setTimeout(init,500)}}()}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="

"+message.headline+"

"+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(ebiInjectAnnouncements(messages[currentHost=currentHost.replace(/wwwdev/g,"www")]),ebiInjectAnnouncements(messages[currentHost+"/"]),ebiInjectAnnouncements(messages[currentHost+"/*"]),currentPath.length>1){for(var currentPathArray=currentPath.split("/"),pathsToMatch=[currentHost+currentPathArray[0]],i=1;i",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-1}function ebiFrameworkExternalLinks(){function isFileType(url,type){return-1!==url.indexOf(type,url.length-type.length)}try{var i,icon,alist=document.getElementsByTagName("a"),fileTypes=["pdf","doc","txt"];for(i=0;i')&&-1===alist[i].innerHTML.indexOf("
',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){event.preventDefault(),ebiToggleClass(searchBar,"active"),ebiToggleClass(searchBarButton,"active"),window.scrollTo(0,0)},!1),document.querySelectorAll(".search-bar .close-button")[0].addEventListener("click",function(event){event.preventDefault(),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='',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{var mouseoutTimer;blackBar.addEventListener("mouseenter",function(){window.clearTimeout(mouseoutTimer)},!1),blackBar.addEventListener("mouseleave",function(){mouseoutTimer=window.setTimeout(function(){ebiFrameworkActivateBlackBar()},500)})}catch(err){}}function ebiFrameworkInsertEMBLdropdown(){try{null!==(elem=document.getElementById("embl-bar"))&&document.getElementById("embl-bar").remove();var dropdownDiv=document.createElement("div");dropdownDiv.innerHTML='',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"),event.preventDefault(),window.scrollTo(0,0)},!1),document.querySelectorAll(".embl-bar .close-button")[0].addEventListener("click",function(event){ebiToggleClass(emblBar,"active"),ebiToggleClass(emblBarButton,"active"),event.preventDefault(),window.scrollTo(0,0)},!1)}catch(err){}}function ebiFrameworkUpdateFoot(){var html='';!function init(){try{document.getElementById("global-nav-expanded").innerHTML=html}catch(err){setTimeout(init,500)}}()}function ebiFrameworkUpdateFooterMeta(){var html='

EMBL-EBI, Wellcome Genome Campus, Hinxton, Cambridgeshire, CB10 1SD, UK. +44 (0)1223 49 44 44

';!function init(){try{document.getElementById("ebi-footer-meta").innerHTML=html}catch(err){setTimeout(init,500)}}()}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="

"+message.headline+"

"+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(ebiInjectAnnouncements(messages[currentHost=currentHost.replace(/wwwdev/g,"www")]),ebiInjectAnnouncements(messages[currentHost+"/"]),ebiInjectAnnouncements(messages[currentHost+"/*"]),currentPath.length>1){for(var currentPathArray=currentPath.split("/"),pathsToMatch=[currentHost+currentPathArray[0]],i=1;i",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