--- a/web/res/metadataplayer.polemic/src/js/polemic.js Tue Apr 26 10:53:35 2011 +0200
+++ b/web/res/metadataplayer.polemic/src/js/polemic.js Tue Apr 26 13:57:29 2011 +0200
@@ -62,11 +62,11 @@
// ou Frame vide
};
Frames.prototype.draw = function(){
- }
+ };
Frames.prototype.zoom = function(){
- }
+ };
Frames.prototype.inside = function(){
- }
+ };
var Clusters = function(){
var Object;
var yDist;
@@ -79,7 +79,7 @@
// make my object
};
var Tweet = function(){
- }
+ };
// Classes =======================================================================
// trace function
@@ -130,7 +130,7 @@
yframe:Myframe,
title:item.content['title'],
timeframe:item.begin
- }
+ };
numberOfTweet+=1;
}
}else{
@@ -142,7 +142,7 @@
yframe:Myframe,
title:item.content['title'],
timeframe:item.begin
- }
+ };
numberOfTweet+=1;
}
@@ -198,7 +198,7 @@
for (var j=0; j<6; j++){
if (frames[i]!=undefined){
if (frames[i].qualifVol[j]!=undefined){
- moy += frames[i].qualifVol[j]
+ moy += frames[i].qualifVol[j];
}
}
}
@@ -235,12 +235,12 @@
}).mouseout(function () {
//this.attr({stroke:"#00","stroke-width":0.1});
}).mousedown(function () {
- __IriSP.MyApiPlayer.seek(this.time/1000)
+ __IriSP.MyApiPlayer.seek(this.time/1000);
});
__IriSP.jQuery(e.node).attr('id', 't'+k+'');
__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
__IriSP.jQuery(e.node).attr('begin', frames[i].mytweetsID[k].timeframe);
- var tempPosition = {x:i*frameSize,y:config.heightmax-addEheight}
+ var tempPosition = {x:i*frameSize,y:config.heightmax-addEheight};
addTip(e.node, frames[i].mytweetsID[k].title,colors[j],tempPosition);
//frames[i].mytweetsID.pop();
}
@@ -262,14 +262,17 @@
PaperSlider.toFront();
PaperBackground.toBack();
}
- PaperSlider.toFront();
+
+ if(typeof(PaperSlider) !== 'undefined' ) {
+ PaperSlider.toFront();
+ }
}
$(document).mousemove(function(e){
if (over){
__IriSP.jQuery("#tip").css("left", e.pageX-106).css("top", e.pageY-160);
- __IriSP.jQuery("#tipcolor").css("background-color", tipColor)
+ __IriSP.jQuery("#tipcolor").css("background-color", tipColor);
__IriSP.jQuery("#tiptext").text(tipText);
__IriSP.jQuery("#tip").show();
}else{