--- a/web/res/metadataplayer.polemic/src/js/polemic.js Mon Nov 21 11:02:05 2011 +0100
+++ b/web/res/metadataplayer.polemic/src/js/polemic.js Mon Nov 21 11:50:40 2011 +0100
@@ -502,10 +502,13 @@
e.mouseover(function () {
//this.attr({stroke:"#fff","stroke-width":5});
//this.toFront();
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.PT.mouseover(time:"+this.time+",id:"+this.id+")"]);
}).mouseout(function () {
//this.attr({stroke:"#00","stroke-width":0.1});
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.PT.mouseout(time:"+this.time+",id:"+this.id+")"]);
}).mousedown(function () {
__IriSP.MyApiPlayer.seek(this.time/1000);
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.PT.mousedown(time:"+this.time+",id:"+this.id+")"]);
});
__IriSP.jQuery(e.node).attr('id', 't'+k+'');
__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
@@ -546,6 +549,8 @@
__IriSP.jQuery("#tipcolor").css("background-color", tipColor);
__IriSP.jQuery("#tiptext").text(tipText);
__IriSP.jQuery("#tip").show();
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"!!MetaDatPlayer.PT.mouseover("+this.time+","+this.id+")"]);
+
}else{
if (typeof(__IriSP) !== 'undefined' && typeof(__IriSP.jQuery) === 'function') {
__IriSP.jQuery("#tip").css("left", -10000).css("top", -100000);
--- a/web/res/metadataplayer/src/js/LdtPlayer.js Mon Nov 21 11:02:05 2011 +0100
+++ b/web/res/metadataplayer/src/js/LdtPlayer.js Mon Nov 21 11:50:40 2011 +0100
@@ -485,6 +485,8 @@
step: 0.1,
slide: function(event, ui) {
__IriSP.MyApiPlayer.seek(ui.value);
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.Slide.seek("+ui.value+")"]);
+
}
});
__IriSP.trace("__IriSP.createInterface","ICI");
@@ -614,7 +616,11 @@
__IriSP.trace("__IriSP.APIplayer.prototype.play.status",status);
if (status!=1){ __IriSP.player.playVideo();
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.C.play()"]);
+
}else{__IriSP.player.pauseVideo();
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.C.pause()"]);
+
}
} else if(__IriSP.config.player.type=='vimeo') {
@@ -1255,7 +1261,8 @@
var endPourcent = this.timeToPourcent(this.end,this.duration)-startPourcent;
var titleForDiv = this.title.substr(0,55);
- __IriSP.jQueryAnnotationTemplate = "<div title='"+__IriSP.stripHtml(titleForDiv)+"' id='"+this.id+"' class='ui-slider-range ui-slider-range-min ui-widget-header iri-chapter' width='100%' style=\"left:"+startPourcent+"%; width:"+endPourcent+"%; padding-top:15px; border-left:solid 1px #aaaaaa; border-right:solid 1px #aaaaaa; background:#"+__IriSP.DEC_HEXA_COLOR(this.color)+";\" onClick=\"__IriSP.MyApiPlayer.seek('"+Math.round(this.begin/1000)+"');__IriSP.jQuery('#Ldt-ShowAnnotation').slideDown();\" ></div> ";
+ __IriSP.jQueryAnnotationTemplate = "<div title='"+__IriSP.stripHtml(titleForDiv)+"' id='"+this.id+"' class='ui-slider-range ui-slider-range-min ui-widget-header iri-chapter' width='100%' style=\"left:"+startPourcent+"%; width:"+endPourcent+"%; padding-top:15px; border-left:solid 1px #aaaaaa; border-right:solid 1px #aaaaaa; background:#"+__IriSP.DEC_HEXA_COLOR(this.color)+
+ ";\" onClick=\"__IriSP.MyApiPlayer.seek('"+Math.round(this.begin/1000)+"');__IriSP.jQuery('#Ldt-ShowAnnotation').slideDown();_gaq.push(['_trackPageview','"+location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.C.mousedown(begin:"+this.begin+",id:"+this.id+",end:"+this.end+"']);\" ></div> ";
//alert(this.color+" : "+DEC_HEXA_COLOR(this.color));
@@ -1270,8 +1277,12 @@
__IriSP.jQuery("#"+this.id).fadeTo(0,0.3);
__IriSP.jQuery("#"+this.id).mouseover(function() {
__IriSP.jQuery("#"+this.id).animate({opacity: 0.6}, 5);
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.C.mouseover(begin:"+this.begin+",id:"+this.id+",end:"+this.end+")"]);
+
}).mouseout(function(){
__IriSP.jQuery("#"+this.id).animate({opacity: 0.3}, 5);
+ _gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"/#!/MetaDatPlayer.C.mouseout(begin:"+this.begin+",id:"+this.id+",end:"+this.end+")"]);
+
});
__IriSP.trace("__IriSP.Annotation.prototype.draw","ADD ANOTATION : "+this.begin+" "+this.end+" "+__IriSP.stripHtml(this.title)+" | "+startPourcent+" | "+endPourcent+" | duration = "+this.duration);