Changeset 13875 for trunk/FACT++/www/smartfact
- Timestamp:
- 05/24/12 15:32:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r13870 r13875 163 163 function valid(str) { if (str==undefined) return false; if (str.length==0) return false; return true;} 164 164 function isSliding() { var z = $("body").getAttribute("data-visible"); return $("table"+z).offsetLeft!=0; } 165 function htmlDecode(input) { var e = document.createElement('div'); e.innerHTML = input; return e.childNodes[0].nodeValue; } 165 166 166 167 function cycleCol(el) … … 1274 1275 var umax = data[2]; 1275 1276 1276 var unit = canv.getAttribute("data-data");//.split("/");1277 unit = unit.replace("°", "\u00B0");1278 unit = unit.replace("µ", "\u00B5");1279 unit = unit.replace("²", "\u00B2");1280 unit = unit.replace("³", "\u00B3");1277 var unit = htmlDecode(canv.getAttribute("data-data")); 1278 //unit = unit.replace("°", "\u00B0"); 1279 //unit = unit.replace("µ", "\u00B5"); 1280 //unit = unit.replace("²", "\u00B2"); 1281 //unit = unit.replace("³", "\u00B3"); 1281 1282 1282 1283 var min = data[3]+unit … … 1318 1319 function drawGraph(canv, vals, data) 1319 1320 { 1320 var unit = canv.getAttribute("data-data");//.split("/"); 1321 unit = unit.replace("°", "\u00B0"); 1322 unit = unit.replace("µ", "\u00B5"); 1323 unit = unit.replace("²", "\u00B2"); 1324 unit = unit.replace("³", "\u00B3"); 1321 var unit = htmlDecode(canv.getAttribute("data-data"));//.split("/"); 1322 1323 //unit = unit.replace("°", "\u00B0"); 1324 //unit = unit.replace("µ", "\u00B5"); 1325 //unit = unit.replace("²", "\u00B2"); 1326 //unit = unit.replace("³", "\u00B3"); 1325 1327 1326 1328 var umin = vals[1]+unit;
Note:
See TracChangeset
for help on using the changeset viewer.