From 9af50519eb8d06878e00975b259f373102afb6e7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 16 Jul 2015 14:35:12 +0200 Subject: [PATCH] Compiler update; also pull version from compiler. --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() {