diff --git a/src/var.js b/src/var.js index 894df82..d7f7e10 100755 --- a/src/var.js +++ b/src/var.js @@ -1,3 +1,5 @@ +// initialize variables + var board; var info; var score; @@ -9,8 +11,12 @@ var root; var themesel; var dopredict; +// called when all the resources for the page have been loaded + function load() { + // asing values to variables + board = [ [ @@ -74,6 +80,8 @@ function load() setup(); } +// runs functions to get ready for game + function setup() { setupTheme();