mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
stuff
This commit is contained in:
parent
576823dbfd
commit
ab5a752691
7 changed files with 35 additions and 31 deletions
|
@ -4698,7 +4698,7 @@ var Sandbox = Backbone.View.extend({
|
|||
'level': this.startLevel,
|
||||
'sandbox': this.exitLevel,
|
||||
'levels': this.showLevels,
|
||||
'iosAlert': this.iosAlert,
|
||||
'mobileAlert': this.mobileAlert,
|
||||
'build level': this.buildLevel,
|
||||
'export tree': this.exportTree,
|
||||
'import tree': this.importTree,
|
||||
|
@ -4828,10 +4828,9 @@ var Sandbox = Backbone.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
iosAlert: function(command, deferred) {
|
||||
var whenClosed = Q.defer();
|
||||
alert("Can't bring up the keyboard on iOS, try visiting on desktop! :D");
|
||||
whenClosed.resolve();
|
||||
mobileAlert: function(command, deferred) {
|
||||
alert("Can't bring up the keyboard on mobile / tablet :( try visiting on desktop! :D");
|
||||
command.finishWith(deferred);
|
||||
},
|
||||
|
||||
delay: function(command, deferred) {
|
||||
|
@ -6578,10 +6577,10 @@ var init = function() {
|
|||
eventBaton.trigger('commandSubmitted', command);
|
||||
});
|
||||
}
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
|
||||
setTimeout(function() {
|
||||
eventBaton.trigger('commandSubmitted', 'iOS alert');
|
||||
}, 600);
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
|
||||
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
|
||||
eventBaton.trigger('commandSubmitted', 'mobile alert');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -6652,6 +6651,7 @@ var Main = require('../app');
|
|||
|
||||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../level/sandbox').Sandbox;
|
||||
var Constants = require('../util/constants');
|
||||
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var ParseWaterfall = require('../level/parseWaterfall').ParseWaterfall;
|
||||
|
@ -13287,7 +13287,7 @@ var regexMap = {
|
|||
'sandbox': /^sandbox($|\s)/,
|
||||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'iosAlert': /^iOS alert($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
|
@ -18572,10 +18572,10 @@ var init = function() {
|
|||
eventBaton.trigger('commandSubmitted', command);
|
||||
});
|
||||
}
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
|
||||
setTimeout(function() {
|
||||
eventBaton.trigger('commandSubmitted', 'iOS alert');
|
||||
}, 600);
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
|
||||
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
|
||||
eventBaton.trigger('commandSubmitted', 'mobile alert');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -21469,6 +21469,7 @@ var Main = require('../app');
|
|||
|
||||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../level/sandbox').Sandbox;
|
||||
var Constants = require('../util/constants');
|
||||
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var ParseWaterfall = require('../level/parseWaterfall').ParseWaterfall;
|
||||
|
@ -22265,7 +22266,7 @@ var Sandbox = Backbone.View.extend({
|
|||
'level': this.startLevel,
|
||||
'sandbox': this.exitLevel,
|
||||
'levels': this.showLevels,
|
||||
'iosAlert': this.iosAlert,
|
||||
'mobileAlert': this.mobileAlert,
|
||||
'build level': this.buildLevel,
|
||||
'export tree': this.exportTree,
|
||||
'import tree': this.importTree,
|
||||
|
@ -22395,10 +22396,9 @@ var Sandbox = Backbone.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
iosAlert: function(command, deferred) {
|
||||
var whenClosed = Q.defer();
|
||||
alert("Can't bring up the keyboard on iOS, try visiting on desktop! :D");
|
||||
whenClosed.resolve();
|
||||
mobileAlert: function(command, deferred) {
|
||||
alert("Can't bring up the keyboard on mobile / tablet :( try visiting on desktop! :D");
|
||||
command.finishWith(deferred);
|
||||
},
|
||||
|
||||
delay: function(command, deferred) {
|
||||
|
@ -22489,7 +22489,7 @@ var regexMap = {
|
|||
'sandbox': /^sandbox($|\s)/,
|
||||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'iosAlert': /^iOS alert($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
|
|
|
@ -139,10 +139,10 @@ var init = function() {
|
|||
eventBaton.trigger('commandSubmitted', command);
|
||||
});
|
||||
}
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
|
||||
setTimeout(function() {
|
||||
eventBaton.trigger('commandSubmitted', 'iOS alert');
|
||||
}, 600);
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
|
||||
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
|
||||
eventBaton.trigger('commandSubmitted', 'mobile alert');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ var Main = require('../app');
|
|||
|
||||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../level/sandbox').Sandbox;
|
||||
var Constants = require('../util/constants');
|
||||
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var ParseWaterfall = require('../level/parseWaterfall').ParseWaterfall;
|
||||
|
|
|
@ -205,7 +205,7 @@ var Sandbox = Backbone.View.extend({
|
|||
'level': this.startLevel,
|
||||
'sandbox': this.exitLevel,
|
||||
'levels': this.showLevels,
|
||||
'iosAlert': this.iosAlert,
|
||||
'mobileAlert': this.mobileAlert,
|
||||
'build level': this.buildLevel,
|
||||
'export tree': this.exportTree,
|
||||
'import tree': this.importTree,
|
||||
|
@ -335,10 +335,9 @@ var Sandbox = Backbone.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
iosAlert: function(command, deferred) {
|
||||
var whenClosed = Q.defer();
|
||||
alert("Can't bring up the keyboard on iOS, try visiting on desktop! :D");
|
||||
whenClosed.resolve();
|
||||
mobileAlert: function(command, deferred) {
|
||||
alert("Can't bring up the keyboard on mobile / tablet :( try visiting on desktop! :D");
|
||||
command.finishWith(deferred);
|
||||
},
|
||||
|
||||
delay: function(command, deferred) {
|
||||
|
|
|
@ -53,7 +53,7 @@ var regexMap = {
|
|||
'sandbox': /^sandbox($|\s)/,
|
||||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'iosAlert': /^iOS alert($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
|
|
|
@ -66,7 +66,10 @@
|
|||
|
||||
</div>
|
||||
|
||||
<a href="https://github.com/pcottle/learnGitBranching" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
||||
<!-- lol inline styles -->
|
||||
<a href="https://github.com/pcottle/learnGitBranching" target="_blank" style="z-index: 99; position: fixed; top: 0; right: 0">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
|
||||
</a>
|
||||
|
||||
<!-- Dependencies -->
|
||||
<script src="lib/jquery-1.8.0.min.js"></script>
|
||||
|
|
1
todo.txt
1
todo.txt
|
@ -4,6 +4,7 @@ Big Things
|
|||
|
||||
Medium things:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
[ ] fix clickthrough when goal and start are shown
|
||||
|
||||
Cases to handle / things to edit
|
||||
=======================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue