Sha256: a0c3109be54ba12d76a1d288e8c54e39a2c3a9d8312b03cccabe0073bd610f28
Contents?: true
Size: 640 Bytes
Versions: 62
Compression:
Stored size: 640 Bytes
Contents
/* */ "format cjs"; !function(a){var b=a.getElementsByTagName("script"),c=b[b.length-1],d=c.getAttribute("src").replace(/[^\/]+$/,"save.php");window.canvas2png=function(b,c){var e=b.tagName.toLowerCase();if("canvas"===e)if("undefined"!=typeof FlashCanvas)FlashCanvas.saveImage(b,c);else{var f=d;c&&(f+="?filename="+c);var g=a.createElement("form"),h=a.createElement("input");g.setAttribute("action",f),g.setAttribute("method","post"),h.setAttribute("type","hidden"),h.setAttribute("name","dataurl"),h.setAttribute("value",b.toDataURL()),a.body.appendChild(g),g.appendChild(h),g.submit(),g.removeChild(h),a.body.removeChild(g)}}}(document);
Version data entries
62 entries across 31 versions & 1 rubygems