diff --git a/build/bundle.js b/build/bundle.js index 2c9eec38..8969b751 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -6571,6 +6571,13 @@ var init = function() { ].join('')); }); } + if (/command=/.test(window.location.href)) { + var commandRaw = window.location.href.split('command=')[1].split('&')[0]; + var command = unescape(commandRaw); + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger('commandSubmitted', command); + }); + } if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) { setTimeout(function() { eventBaton.trigger('commandSubmitted', 'iOS alert'); @@ -18499,6 +18506,13 @@ var init = function() { ].join('')); }); } + if (/command=/.test(window.location.href)) { + var commandRaw = window.location.href.split('command=')[1].split('&')[0]; + var command = unescape(commandRaw); + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger('commandSubmitted', command); + }); + } if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) { setTimeout(function() { eventBaton.trigger('commandSubmitted', 'iOS alert'); diff --git a/src/js/app/index.js b/src/js/app/index.js index 0ba24add..79a77c79 100644 --- a/src/js/app/index.js +++ b/src/js/app/index.js @@ -132,6 +132,13 @@ var init = function() { ].join('')); }); } + if (/command=/.test(window.location.href)) { + var commandRaw = window.location.href.split('command=')[1].split('&')[0]; + var command = unescape(commandRaw); + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger('commandSubmitted', command); + }); + } if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) { setTimeout(function() { eventBaton.trigger('commandSubmitted', 'iOS alert'); diff --git a/todo.txt b/todo.txt index daf2a5c1..2bb49266 100644 --- a/todo.txt +++ b/todo.txt @@ -1,6 +1,5 @@ Big Things ~~~~~~~~~~~~~~~~~~~~~~~~~ -[ ] import random level JSON [ ] compare settings for a level!!! integrated into builder... Medium things: @@ -22,11 +21,12 @@ Big Bugs to fix: Ideas for cleaning ~~~~~~~~~~~~~ -- CSS... a ton. Switch to less +- CSS... a ton. Switch to less ? Done things: (I only started this on Dec 17th 2012 to get a better sense of what was done) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[x] import random level JSON [x] export / import tree from JSON [x] rebase bug... ugh [x] bug with weird tree string: