diff --git a/index.html b/index.html index 945440a179..56885f3fe2 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ body { Source code on the left, compiled code and AST on the right (or error).
Note: Chrome/Chromium currently reports "Uncaught JavaScript Exception". To work around this problem, enable the debug console (Ctrl+Shift+i) and reload.
-Version: 86850c3... 2015-07-03 +Version: (loading)
@@ -132,7 +132,11 @@ editor.getSession().setUseSoftTabs(true); var compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]); var ready = false; -Module['onRuntimeInitialized'] = function() { ready = true; onChange(); }; +Module['onRuntimeInitialized'] = function() { + ready = true; + $('#version').text(Module.cwrap("version", "string", [])()); + onChange(); +}; var previousInput = ''; var compile = function() {