How I got started with kodeboard.js

This page needs some improvement since it should start at the beginning of learning html5, css3 and javascript. For now it just covers getting started with kodeboard.

I simply grabbed kodeboard.js from github and included it in my HTML5 document, preferable the head. KodeBoard is written in core JavaScript.

<script src="../src/kodeboard.js" type="text/javascript"></script>

Once included in my HTML5 document I created a new KodeBoard within my document body.

<script type="text/javascript"> var kb = new KodeBoard(); </script>

I am also able to create it within my own specific container div like below:

<div id="container-1" class="container"></div>

I then create my KodeBoard as follows:

<script type="text/javascript"> var kb = new KodeBoard({"container":"container-1"}); </script>

Canvas can now be accessed as follows:

var context = kb.canvas.getContext("2d");