src/js/utils.js
branchpopcorn-port
changeset 473 1a09ab7e7163
parent 374 138e76fe73a6
child 479 24308670f1bb
equal deleted inserted replaced
472:1da76db24aa8 473:1a09ab7e7163
   101 	 while (dec>15){
   101 	 while (dec>15){
   102 		  tmp = dec-(Math.floor(dec/16))*16;
   102 		  tmp = dec-(Math.floor(dec/16))*16;
   103 		  hex = hexa.charAt(tmp)+hex;
   103 		  hex = hexa.charAt(tmp)+hex;
   104 		  dec = Math.floor(dec/16);
   104 		  dec = Math.floor(dec/16);
   105 	 }
   105 	 }
   106 	 hex = hexa.charAt(dec)+hex;
   106 	 hex = hexa.charAt(dec)+hex;	 
   107 	 if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ }
       
   108 	 return(hex);
   107 	 return(hex);
   109 };
   108 };
   110 
   109 
   111 /* shortcut to have global variables in templates */
   110 /* shortcut to have global variables in templates */
   112 IriSP.templToHTML = function(template, values) {
   111 IriSP.templToHTML = function(template, values) {