@visual-framework/ebi-header-footer
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,6 @@ | ||
### 2.0.1 | ||
* Use VF 1.4 JS to load the HTML for the global header. | ||
* Add documentation and example on disabling the 1.4 data protection banner, as you should use the 2.0 data protection banner from the contentHub. | ||
### 2.0.0 | ||
@@ -2,0 +7,0 @@ |
@@ -11,3 +11,3 @@ /** | ||
var parentTemplate = null; | ||
output += "<!-- embl-ebi global header -->\n<header id=\"masthead-black-bar\" class=\"clearfix masthead-black-bar | ebi-header-footer vf-content vf-u-fullbleed\"></header>\n<link rel=\"import\" href=\"https://www.embl.org/api/v1/pattern.html?filter-content-type=article&filter-id=6682&pattern=node-body&source=contenthub\" data-target=\"self\" data-embl-js-content-hub-loader>\n<link rel=\"stylesheet\" href=\"//ebi.emblstatic.net/web_guidelines/EBI-Icon-fonts/v1.3/fonts.css\" type=\"text/css\" media=\"all\" />\n<script defer=\"defer\" src=\"//ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.3/js/script.js\"></script>\n"; | ||
output += "<!-- Tell the VF 1.4 not to display a data protection banner. -->\n<!-- You should use the 2.0 data protection banner from the contentHub. -->\n<span data-protection-message-disable=\"true\"></span>\n<!-- embl-ebi global header -->\n<header id=\"masthead-black-bar\" class=\"clearfix masthead-black-bar | ebi-header-footer vf-content vf-u-fullbleed\"></header>\n<link rel=\"import\" href=\"https://www.embl.org/api/v1/pattern.html?filter-content-type=article&filter-id=6682&pattern=node-body&source=contenthub\" data-target=\"self\" data-embl-js-content-hub-loader>\n<link rel=\"stylesheet\" href=\"//ebi.emblstatic.net/web_guidelines/EBI-Icon-fonts/v1.3/fonts.css\" type=\"text/css\" media=\"all\" />\n<script defer=\"defer\" src=\"//ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.4/js/script.js\"></script>\n"; | ||
if(parentTemplate) { | ||
@@ -14,0 +14,0 @@ parentTemplate.rootRenderFunc(env, context, frame, runtime, cb); |
{ | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"name": "@visual-framework/ebi-header-footer", | ||
@@ -23,3 +23,3 @@ "description": "ebi-header-footer component", | ||
], | ||
"gitHead": "a656c25307a78aabd06e678798730a37915f42fe" | ||
"gitHead": "d2f8a2fac1aadd5c1d4f2acb85232cc3afd5f0d8" | ||
} |
@@ -15,2 +15,3 @@ # EMBL-EBI Header and Footer component | ||
- This uses the existing `//ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.3/js/script.js` to load the HTML for the header. | ||
- The EBI VF 1.x will also included a data protection banner, to disable this with 1.4 you can an included an element with `data-protection-message-disable="true"` | ||
@@ -17,0 +18,0 @@ ## Install |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
40
55456
22
747
1