Implemented ability to submit expression trough window hash

This commit is contained in:
BorisLevitskiy
2015-04-08 13:34:11 +03:00
parent fb1c9e125a
commit 04d5e67946

View File

@@ -148,10 +148,18 @@
app.bootstrap(document.getElementById('rootView'));
var cmd = app.get('cmd');
cmd.execute('help');
cmd.execute('1|2');
cmd.execute('2 4 8 16 32');
cmd.execute('help');
if(window.location.hash.length > 1) {
cmd.execute(window.location.hash.substr(1).replace(/,/g,' '));
}
else {
cmd.execute('1|2');
cmd.execute('2 4 8 16 32');
}
</script>
</body>
</html>