Sha256: 6baa8735d4ac18975b9e610a64e260571b1cb3c1e956fca6fdcfee9d5a605123
Contents?: true
Size: 592 Bytes
Versions: 6
Compression:
Stored size: 592 Bytes
Contents
(function(e){var t=e.getElementsByTagName("script"),n=t[t.length-1],r=n.getAttribute("src").replace(/[^\/]+$/,"save.php");window.canvas2png=function(t){var n=t.tagName.toLowerCase();if(n!=="canvas")return;if(typeof FlashCanvas!="undefined")FlashCanvas.saveImage(t);else{var i=e.createElement("form"),s=e.createElement("input");i.setAttribute("action",r),i.setAttribute("method","post"),s.setAttribute("type","hidden"),s.setAttribute("name","dataurl"),s.setAttribute("value",t.toDataURL()),e.body.appendChild(i),i.appendChild(s),i.submit(),i.removeChild(s),e.body.removeChild(i)}}})(document);
Version data entries
6 entries across 3 versions & 1 rubygems