added light mode

This commit is contained in:
Navan Chauhan 2020-09-24 16:11:43 +05:30
parent 7e9940d6c7
commit b3da7f98f9
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@
<canvas id="canvas-{{x}}" width="500" height="500"></canvas>
<script>
SmilesDrawer.parse('{{result[0]}}', function(tree) {
smilesDrawer.draw(tree, "canvas-{{x}}", "dark", false);
console.log(smilesDrawer.draw(tree, "canvas-{{x}}", "dark", false))
smilesDrawer.draw(tree, "canvas-{{x}}", "light", false);
console.log(smilesDrawer.draw(tree, "canvas-{{x}}", "light", false))
});
</script>
{% endfor %}