Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ebiwd
EBI-Framework
Commits
a014b0eb
Commit
a014b0eb
authored
6 years ago
by
Ken Hawkins
Browse files
Options
Downloads
Patches
Plain Diff
Build JS
parent
1b1218d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#14144
passed with stage
in 33 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/script.js
+19
-18
19 additions, 18 deletions
js/script.js
js/script.min.js
+1
-1
1 addition, 1 deletion
js/script.min.js
with
20 additions
and
19 deletions
js/script.js
+
19
−
18
View file @
a014b0eb
...
...
@@ -298,24 +298,25 @@ function ebiFrameworkActivateBlackBar() {
ebiFrameworkActivateBlackBar
();
};
var
metas
=
document
.
getElementsByTagName
(
'
meta
'
);
for
(
var
i
=
0
;
i
<
metas
.
length
;
i
++
)
{
if
(
metas
[
i
].
getAttribute
(
"
name
"
)
==
"
embl:active
"
)
{
var
targetFacet
=
ebiGetFacet
(
metas
[
i
].
getAttribute
(
"
content
"
).
replace
(
'
:
'
,
'
.
'
));
ebiRemoveClass
(
targetFacet
,
'
hide
'
);
ebiActivateClass
(
targetFacet
,
'
active
'
);
}
if
(
metas
[
i
].
getAttribute
(
"
name
"
)
==
"
embl:parent-1
"
)
{
var
targetFacet
=
ebiGetFacet
(
metas
[
i
].
getAttribute
(
"
content
"
).
replace
(
'
:
'
,
'
.
'
));
ebiRemoveClass
(
targetFacet
,
'
hide
'
);
ebiActivateClass
(
targetFacet
,
'
active
'
);
}
if
(
metas
[
i
].
getAttribute
(
"
name
"
)
==
"
embl:parent-2
"
)
{
var
targetFacet
=
ebiGetFacet
(
metas
[
i
].
getAttribute
(
"
content
"
).
replace
(
'
:
'
,
'
.
'
));
ebiRemoveClass
(
targetFacet
,
'
hide
'
);
ebiActivateClass
(
targetFacet
,
'
active
'
);
}
}
// This meta navigation concept has been deprecated in favour of the VF 2.0
// var metas = document.getElementsByTagName('meta');
// for (var i = 0; i < metas.length; i++) {
// if (metas[i].getAttribute("name") == "embl:active") {
// var targetFacet = ebiGetFacet(metas[i].getAttribute("content").replace(':','.'));
// ebiRemoveClass(targetFacet,'hide');
// ebiActivateClass(targetFacet,'active');
// }
// if (metas[i].getAttribute("name") == "embl:parent-1") {
// var targetFacet = ebiGetFacet(metas[i].getAttribute("content").replace(':','.'));
// ebiRemoveClass(targetFacet,'hide');
// ebiActivateClass(targetFacet,'active');
// }
// if (metas[i].getAttribute("name") == "embl:parent-2") {
// var targetFacet = ebiGetFacet(metas[i].getAttribute("content").replace(':','.'));
// ebiRemoveClass(targetFacet,'hide');
// ebiActivateClass(targetFacet,'active');
// }
// }
// add interactivity to facets, so that hovering on what:research shows what:*
...
...
This diff is collapsed.
Click to expand it.
js/script.min.js
+
1
−
1
View file @
a014b0eb
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment