diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/CGP.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -130,6 +130,12 @@ var CGP = (function() { | |||
130 | var canvases = document.getElementsByClassName('rrd'); | 130 | var canvases = document.getElementsByClassName('rrd'); |
131 | for (var i = 0; i < canvases.length; i++) { | 131 | for (var i = 0; i < canvases.length; i++) { |
132 | draw(canvases[i].id, async); | 132 | draw(canvases[i].id, async); |
133 | |||
134 | if (document.getElementById(canvases[i].id + '-img')) { | ||
135 | document.getElementById(canvases[i].id).style.display = 'none'; | ||
136 | var dataURL = canvases[i].toDataURL(); | ||
137 | document.getElementById(canvases[i].id + '-img').src = dataURL; | ||
138 | } | ||
133 | } | 139 | } |
134 | } | 140 | } |
135 | 141 | ||