Changeset 13495 for trunk/FACT++
- Timestamp:
- 05/01/12 13:18:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/index.js
r13479 r13495 279 279 var x = table.offsetLeft; 280 280 281 var ix = parseInt(x );281 var ix = parseInt(x, 10); 282 282 if (ix>W) 283 283 { … … 310 310 var x = table.offsetLeft; 311 311 312 var ix = parseInt(x );312 var ix = parseInt(x, 10); 313 313 if (ix==0) 314 314 { … … 353 353 if (xmlHttp.readyState == 4) 354 354 { 355 if ( this.status!=0 && this.status!=200)355 if (xmlHttp.status!=0 && xmlHttp.status!=200) 356 356 { 357 alert("ERROR[1] - HTTP request '"+fname+".txt': "+ this.statusText+" ["+this.status+"]");357 alert("ERROR[1] - HTTP request '"+fname+".txt': "+xmlHttp.statusText+" ["+xmlHttp.status+"]"); 358 358 setTimeout("refresh_text()", 10000); 359 359 return; 360 360 } 361 361 362 update_text(fname, this.responseText);362 update_text(fname, xmlHttp.responseText); 363 363 setTimeout("refresh_text()", 3000); 364 364 } … … 523 523 hue %= 6; 524 524 525 if (hue<1) return parseInt(255*hue );526 if (hue<3) return parseInt(255 );527 if (hue<4) return parseInt(255*(4-hue) );525 if (hue<1) return parseInt(255*hue, 10); 526 if (hue<3) return parseInt(255, 10); 527 if (hue<4) return parseInt(255*(4-hue), 10); 528 528 529 529 /* … … 719 719 } 720 720 */ 721 722 window['onload'] = onload;
Note:
See TracChangeset
for help on using the changeset viewer.