mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-06 19:14:41 +02:00
READY TO BUILD LEVELS :DDDDDDDDDDDDDD
This commit is contained in:
parent
c5f4d6e3f2
commit
8a1986a923
7 changed files with 175 additions and 48 deletions
|
@ -57,7 +57,8 @@ var MarkdownGrabber = ContainedBase.extend({
|
|||
options = options || {};
|
||||
this.deferred = options.deferred || Q.defer();
|
||||
this.JSON = {
|
||||
previewText: options.previewText || 'Preview'
|
||||
previewText: options.previewText || 'Preview',
|
||||
fillerText: options.fillerText || '## Enter some markdown!\n\n\n'
|
||||
};
|
||||
|
||||
this.container = options.container || new ModalTerminal({
|
||||
|
@ -127,6 +128,34 @@ var MarkdownGrabber = ContainedBase.extend({
|
|||
}
|
||||
});
|
||||
|
||||
var MarkdownPresenter = ContainedBase.extend({
|
||||
tagName: 'div',
|
||||
className: 'markdownPresenter box vertical',
|
||||
template: _.template($('#markdown-presenter').html()),
|
||||
|
||||
initialize: function(options) {
|
||||
options = options || {};
|
||||
this.JSON = {
|
||||
previewText: options.previewText || 'Here is something for you',
|
||||
fillerText: options.fillerText || '# Yay'
|
||||
};
|
||||
|
||||
this.container = new ModalTerminal({
|
||||
title: 'Check this out...'
|
||||
});
|
||||
this.render();
|
||||
|
||||
var confirmCancel = new Views.ConfirmCancelView({
|
||||
destination: this.getDestination()
|
||||
});
|
||||
confirmCancel.deferred.promise
|
||||
.fail(function() { })
|
||||
.done(_.bind(this.die, this));
|
||||
|
||||
this.show();
|
||||
}
|
||||
});
|
||||
|
||||
var DemonstrationBuilder = ContainedBase.extend({
|
||||
tagName: 'div',
|
||||
className: 'demonstrationBuilder box vertical',
|
||||
|
@ -334,4 +363,5 @@ exports.MarkdownGrabber = MarkdownGrabber;
|
|||
exports.DemonstrationBuilder = DemonstrationBuilder;
|
||||
exports.TextGrabber = TextGrabber;
|
||||
exports.MultiViewBuilder = MultiViewBuilder;
|
||||
exports.MarkdownPresenter = MarkdownPresenter;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue