Skip to content

Instantly share code, notes, and snippets.

@athap
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athap/9e44ce2ed7ad62bf95c0 to your computer and use it in GitHub Desktop.
Save athap/9e44ce2ed7ad62bf95c0 to your computer and use it in GitHub Desktop.
Index file
<!DOCTYPE html>
<html>
<head>
<style>
.center {margin: auto; width: 50%;}
<style>
</head>
<body>
<div class='input-box'>
<input id='tree-input' type='number' placeholder='Enter number'>
<button id='add-to-tree' onclick="addToTree()">Add To Tree</button>
</div>
<div class="tree center">
<canvas id='my-canvas' width="400" height="400">
Your browser doesnot support canvas
</canvas>
</div>
<script>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment