"
+"
"+IriSP.stripHtml(this.title)+"
"
+"
"+this.begin+" : "+this.end+"
"
@@ -1305,14 +1348,16 @@
IriSP.jQuery("#"+this.id).fadeTo(0,0.3);
IriSP.jQuery("#"+this.id).mouseover(function() {
- IriSP.jQuery("#"+this.id).animate({opacity: 0.6}, 5)
+ IriSP.jQuery("#"+this.id).animate({opacity: 0.6}, 5);
}).mouseout(function(){
- IriSP.jQuery("#"+this.id).animate({opacity: 0.3}, 5)
+ IriSP.jQuery("#"+this.id).animate({opacity: 0.3}, 5);
});
IriSP.trace("__IriSP.Annotation.prototype.draw","ADD ANOTATION : "+this.begin+" "+this.end+" "+IriSP.stripHtml(this.title)+" | "+startPourcent+" | "+endPourcent+" | duration = "+this.duration);
-}
+};
+
__IriSP.Annotation.prototype.drawTags = function(){
+ /* FIXME : to implement */
var KeywordPattern = '
'+' ';
//__IriSP.trace(" !? Tags : ",this.tags);
@@ -1325,18 +1370,21 @@
}
}
-}
+};
+
__IriSP.Annotation.prototype.tootTipAnnotation = function() {
// 1 chercher le div correspondant
// 2 y mettre les information
return this.color + ' ' + this.type + ' apple';
-}
+};
+
__IriSP.Annotation.prototype.onRollOverAnnotation = function (){
this.tootTip();
-}
+};
+
__IriSP.Annotation.prototype.timeToPourcent = function(time,timetotal){
return (parseInt(Math.round(time/timetotal*100)));
-}
+};
/* CLASS Tags */
@@ -1346,7 +1394,8 @@
this.htmlTags = null;
this.weigthMax = 0;
//this.mySegments = new array();
-}
+};
+
__IriSP.Tags.prototype.addAnnotation = function (annotation){
for (var i = 0; i < this.myTags.length; ++i){
this.myTags[i].mySegments = new Array();
@@ -1354,7 +1403,7 @@
for (var j = 0; j < annotation.tags.length; ++j){
if (this.myTags[i]['id'] == annotation.tags[j]['id-ref']){
this.myTags[i].mySegments.push([annotation.begin,annotation.end,annotation.id]);
- var weigthTempo = this.myTags[i].mySegments.length
+ var weigthTempo = this.myTags[i].mySegments.length;
var tempo = this.myTags[i].mySegments[weigthTempo-1];
//__IriSP.trace ("__IriSP.Tags.prototype.addAnnotation "," "+this.myTags[i]['meta']['dc:title']+" "+this.myTags[i]['id']+" : "+tempo[0]+" - "+tempo[1]);
@@ -1365,7 +1414,8 @@
}
}
}
-}
+};
+
__IriSP.Tags.prototype.getTitle = function (id){
for (var i = 0; i < this.myTags.length; ++i){
if(this.myTags[i]['id']==id){
@@ -1373,7 +1423,8 @@
}
}
-}
+};
+
__IriSP.Tags.prototype.draw = function (){
IriSP.trace("__IriSP.Tags.prototype.draw"," !!! WELL START " );
@@ -1390,7 +1441,8 @@
IriSP.jQuery('#Ldt-Tags').html(this.htmlTags);
IriSP.trace("__IriSP.Tags.prototype.draw"," !!!! END WMAX= "+this.weigthMax );
-}
+};
+
__IriSP.Tags.prototype.show = function (id){
var timeStartOffsetA = 100000000000000000000;
@@ -1436,9 +1488,10 @@
//WidthPourCent = timeToPourcent((timeEndOffsetA*1+(timeEndOffsetB-timeEndOffsetA)/2),MyLdt.duration)-startPourcent;
IriSP.jQuery("#Ldt-Show-Tags").css('left',leftPourCent+'%');
IriSP.jQuery("#Ldt-Show-Tags").css('width',WidthPourCent+'%');
+ IriSP.jQuery("#Ldt-Show-Tags").text('joijoij');
// like arrow script
-}
+};