diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-03-14 15:18:27 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-03-14 15:18:27 +0530 |
commit | a989f93d7e0017b7c79ad3fa4e453f215cdd9b47 (patch) | |
tree | 571c301158c0773250aa55d667eac0b6f6b5cd72 /assets/src/js/main.js | |
parent | 849fe346897fa91e574db463a2a03ece2d27b16d (diff) |
improving image quality and size
Diffstat (limited to 'assets/src/js/main.js')
-rw-r--r-- | assets/src/js/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/src/js/main.js b/assets/src/js/main.js index 7ff1019..31dbf7b 100644 --- a/assets/src/js/main.js +++ b/assets/src/js/main.js @@ -43,7 +43,8 @@ function draw_me_like_one_of_your_french_girls(mol){ var dest = document.getElementById("draw-output"); var svg = mol.get_svg(); dest.outerHTML = "<div id='drawing-1'>" + svg + "</div>"; - console.log(svg) + document.getElementById('drawing-1').children[0].setAttribute("height", "100%"); + document.getElementById('drawing-1').children[0].setAttribute("width", "100%"); } |