Commit 39a36772cad7ede24ea55c5a9758128f55c8cae9
1 parent
3d6c5e13
against Merge Request #758
Showing
1 changed file
with
4 additions
and
4 deletions
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1939,14 +1939,14 @@ | @@ -1939,14 +1939,14 @@ | ||
1939 | <script> | 1939 | <script> |
1940 | $(function () { | 1940 | $(function () { |
1941 | $("#btnSaveEI").click(function () { | 1941 | $("#btnSaveEI").click(function () { |
1942 | - var $ua = navigator.userAgent; | 1942 | + var $ua = navigator.userAgent; |
1943 | if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { | 1943 | if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { |
1944 | $("#canvasDiv").append("<img id='exportlogo' class='img-responsive' src='content/images/adam-logo-small.png'/>"); | 1944 | $("#canvasDiv").append("<img id='exportlogo' class='img-responsive' src='content/images/adam-logo-small.png'/>"); |
1945 | html2canvas($("#canvasDiv"), { | 1945 | html2canvas($("#canvasDiv"), { |
1946 | onrendered: function (canvas) { | 1946 | onrendered: function (canvas) { |
1947 | - var imgsrc = canvas.toDataURL("image/png"); | ||
1948 | - console.log(imgsrc); | ||
1949 | - var html = '<div id="img"><img src="' + imgsrc + '" id="newimg" style="margin:auto;top:0px;left:0px;right:0px;position:absolute;border:1px solid #ccc;" /></div>'; | 1947 | + var imgsrc = canvas.toDataURL("image/png"); |
1948 | + console.log(imgsrc); | ||
1949 | + var html = '<div id="img"><img src="' + imgsrc + '" id="newimg" style="margin:auto;top:0px;left:0px;right:0px;position:absolute;border:1px solid #ccc;" /></div>'; | ||
1950 | var w = window.open(); | 1950 | var w = window.open(); |
1951 | $(w.document.body).html(html); | 1951 | $(w.document.body).html(html); |
1952 | $("#filename").val(""); | 1952 | $("#filename").val(""); |