Refactored to 2 namespaces: Wootook & Legacies

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-10-04 19:57:00 +02:00
commit ec7e40e1aa
1004 changed files with 4808 additions and 2971 deletions

View file

View file

@ -0,0 +1,27 @@
var _gaq = _gaq || [];
(function()){
var trackErrorThroughEvent = function(exception, f) {
_gaq.push(['_trackEvent',
'JS ERROR: '+ (f || 'native') + ' (nav:'+ navigator.userAgent +') Exception: '+ (exception.name || 'Error'),
exception.message || exception,
' url: '+document.location.href+' referer: '+ document.referrer
]);
};
var outLink = function(link){
var _gA = link.href.split('/');
var _gS = link.href.split('#');
var _gT = '/out-link/' + _gA[2] + '/?d=' + _gS[0];
_gaq.push(['_trackPageview',_gT]);
_gaq.push(function() {
try {
setTimeout('window.open(_gat._getTrackerByName()._getLinkerUrl(\'' + lien.href + '\',false),\'_blank\')', 100);
} catch(err) {
window.open(lien.href, '_blank'); /* préserve le fonctionnement du lien href en cas de pb */
trackErrorThroughEvent(err,'lienSortant : '+lien.href );
}
});
}
})();