web/res/metadataplayer/src/js/LdtPlayer.js
changeset 119 4c86151704e9
parent 100 32898b2c8e9c
child 133 9578d3ddce17
--- a/web/res/metadataplayer/src/js/LdtPlayer.js	Thu Apr 07 16:39:32 2011 +0200
+++ b/web/res/metadataplayer/src/js/LdtPlayer.js	Fri Apr 22 12:31:41 2011 +0200
@@ -1017,8 +1017,8 @@
 	//var tmp = document.getElementById("posit");
 	//if (tmp) { tmp.innerHTML = "position: " + __IriSP.currentPosition; }
 	__IriSP.jQuery("#slider-range-min").slider("value", obj.position);
-	PaperSliderPostion = obj.position/(__IriSP.LDTligne.duration/1000)*650;
-	PaperSlider.attr({x:PaperSliderPostion,y:20});	
+	PaperSliderPostion = obj.position/(__IriSP.LDTligne.duration/1000)*__IriSP.config.gui.width;
+	PaperSlider.attr({x:PaperSliderPostion,y:yMax});	
 	//PaperSlider.toFront();
 	//__IriSP.jQuery("#amount").val(obj.position+" s");
 	// afficher annotation 
@@ -1050,11 +1050,29 @@
 		  dec = Math.floor(dec/16);
 	 }
 	 hex = hexa.charAt(dec)+hex;
-	 if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ }
+	 //if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ }
 	 return(hex);
 }
 
 
+/*
+private function colorNbrToHexaStr(c:int):String{
+                  var s:String = c.toString(16);
+                  var nbZero:uint = 6 - s.length;
+                  for(var i:uint=0;i<nbZero;i++){
+                        s = "0" + s;
+                  }
+                  return s;
+            }
+private function colorHexaStrToNbr(s:String):Number{
+                  var n:Number;
+                  if(s.substr(0,1)=="#") n = Number("0x" + s.substr(1));
+                  else n = Number(s);
+                  return n;
+            }
+*/
+
+
 
 /* CLASS Ligne (annotationType) 	*/
 
@@ -1165,7 +1183,7 @@
 	var title 			= null;
 	var color 			= null;
 	var tags			= null;
-	__IriSP.trace("annotation ","réussi")
+	__IriSP.trace("annotation ","rᅵussi")
 }	
 __IriSP.Annotation = function(json,duration){
 	this.id 			= json.id;