mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
Implemented ability to submit expression trough window hash
This commit is contained in:
14
index.html
14
index.html
@@ -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>
|
||||
Reference in New Issue
Block a user