mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Fix issues
Fix issues
This commit is contained in:
parent
b789cdd6bb
commit
b9f898b7c0
1 changed files with 5 additions and 2 deletions
|
@ -206,6 +206,8 @@ function addAnchorLinks() {
|
|||
}
|
||||
}
|
||||
|
||||
/* jshint ignore:start */
|
||||
|
||||
function _gaLt(event) {
|
||||
|
||||
/* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
|
||||
|
@ -274,7 +276,8 @@ function trackOutgoingLinks() {
|
|||
/* Use "click" if touchscreen device, else "mousedown" */
|
||||
var _gaLtEvt = ("ontouchstart" in _w) ? "click" : "mousedown";
|
||||
/* Attach the event to all clicks in the document after page has loaded */
|
||||
_w.addEventListener ? _w.addEventListener("load", function() {document.body.addEventListener(_gaLtEvt, _gaLt, !1)}, !1)
|
||||
: _w.attachEvent && _w.attachEvent("onload", function() {document.body.attachEvent("on" + _gaLtEvt, _gaLt)});
|
||||
_w.addEventListener ? _w.addEventListener("load", function() {document.body.addEventListener(_gaLtEvt, _gaLt, !1)}, !1) : _w.attachEvent && _w.attachEvent("onload", function() {document.body.attachEvent("on" + _gaLtEvt, _gaLt)});
|
||||
}
|
||||
}
|
||||
|
||||
/* jshint ignore:end */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue