Changeset 14979 for trunk/FACT++/www
- Timestamp:
- 03/04/13 17:06:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r14677 r14979 1091 1091 form = "—"; 1092 1092 1093 form = form.replace(/<B#(.*?)>/g, "<b style='background:#$1'>"); 1093 1094 form = form.replace(/<#(.*?)>/g, "<font color='$1'>"); 1094 1095 form = form.replace(/<([\+-])>/g, "<font size='$11'>"); … … 1430 1431 1431 1432 ctx.strokeStyle = "#666"; 1433 ctx.fillStyle = "#"+color(100); 1432 1434 1433 1435 // --- data --- … … 1435 1437 for (var j=1; j<data.length; j++) 1436 1438 { 1437 if (data[j].length< 2)1439 if (data[j].length<5) 1438 1440 continue; 1441 1442 ctx.strokeStyle = "#"+data[j].substr(0, 3); 1443 data[j] = data[j].substr(3); 1439 1444 1440 1445 ctx.beginPath(); … … 1446 1451 ctx.lineTo(cw-mr, ch-mb); 1447 1452 ctx.lineTo(ml, ch-mb); 1448 ctx.fillStyle = "#"+color(100);1449 1453 ctx.stroke(); 1450 1454
Note:
See TracChangeset
for help on using the changeset viewer.