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
9d00a34e
Commit
9d00a34e
authored
8 years ago
by
khawkins
Browse files
Options
Downloads
Patches
Plain Diff
Missed block of code
parent
3be24fce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/foundationExtendEBI.js
+12
-13
12 additions, 13 deletions
js/foundationExtendEBI.js
with
12 additions
and
13 deletions
js/foundationExtendEBI.js
+
12
−
13
View file @
9d00a34e
...
...
@@ -4,7 +4,19 @@
*/
// Analytics tracking
// This code tracks the user's clicks in various parts of the EBI site and logs them as GA events.
// Links in non-generic regions can be tracked by adding '.track-with-analytics-events' to a parent div. Careful with the scoping.
// -------------
var
ga
=
ga
||
[];
if
(
ga
.
loaded
)
{
jQuery
(
'
body
'
).
addClass
(
'
google-analytics-loaded
'
);
}
// Confirm GA is loaded, add a class if found
// Utility method
if
(
!
Array
.
prototype
.
last
){
Array
.
prototype
.
last
=
function
(){
return
this
[
this
.
length
-
1
];
};
};
function
analyticsTrackInteraction
(
actedOnItem
,
parentContainer
)
{
var
linkName
=
jQuery
(
actedOnItem
).
text
().
toString
();
// if there's no text, it's probably and image...
...
...
@@ -95,19 +107,6 @@ if (jQuery('body').hasClass('google-analytics-loaded')) {
});
// Analytics tracking
// This code tracks the user's clicks in various parts of the EBI site and logs them as GA events.
// Links in non-generic regions can be tracked by adding '.track-with-analytics-events' to a parent div. Careful with the scoping.
var
ga
=
ga
||
[];
if
(
ga
.
loaded
)
{
jQuery
(
'
body
'
).
addClass
(
'
google-analytics-loaded
'
);
}
// Confirm GA is loaded, add a class if found
// Utility method
if
(
!
Array
.
prototype
.
last
){
Array
.
prototype
.
last
=
function
(){
return
this
[
this
.
length
-
1
];
};
};
$
.
fn
.
foundationExtendEBI
=
function
()
{
// Insert EMBL dropdown menu
...
...
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