Show More
@@ -383,8 +383,12 b' function ajaxScrollInit(urlFormat,' | |||
|
383 | 383 | }, |
|
384 | 384 | function onsuccess(htmlText) { |
|
385 | 385 | if (mode == 'graph') { |
|
386 |
var |
|
|
386 | var sizes = htmlText.match(/^\s*<canvas id="graph" width="(\d+)" height="(\d+)"><\/canvas>$/m); | |
|
387 | var addWidth = sizes[1]; | |
|
388 | var addHeight = sizes[2]; | |
|
389 | addWidth = parseInt(addWidth); | |
|
387 | 390 | addHeight = parseInt(addHeight); |
|
391 | graph.canvas.width = addWidth; | |
|
388 | 392 | graph.canvas.height = addHeight; |
|
389 | 393 | |
|
390 | 394 | var dataStr = htmlText.match(/^\s*var data = (.*);$/m)[1]; |
General Comments 0
You need to be logged in to leave comments.
Login now