start widescreen refactor
This commit is contained in:
@ -177,18 +177,18 @@ var createTestDisplay = function() {
|
|||||||
var test = userTests[i];
|
var test = userTests[i];
|
||||||
var testDoc = document.createElement("li");
|
var testDoc = document.createElement("li");
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.addClass('list-group-item')
|
//.addClass('list-group-item')
|
||||||
.addClass('well img-rounded')
|
//.addClass('well img-rounded')
|
||||||
.addClass('well-sm')
|
//.addClass('well-sm')
|
||||||
if (test.err != null) {
|
if (test.err != null) {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html(test.text + "\n" + test.err)
|
.html(test.text + "\n" + test.err)
|
||||||
.css("background-color", 'rgba(255,0,0,.2)')
|
.css("text-color", 'rgba(255,0,0,.2)')
|
||||||
.prependTo($('#testSuite'));
|
.prependTo($('#testSuite'));
|
||||||
} else {
|
} else {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html(test.text)
|
.html(test.text)
|
||||||
.css('background-color', 'rgba(0,255,0,.2)')
|
.css('text-color', 'rgba(0,255,0,.2)')
|
||||||
.appendTo($('#testSuite'));
|
.appendTo($('#testSuite'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -18,7 +18,7 @@ block content
|
|||||||
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
#mainEditorPanel.col-sm-12.col-md-7.col-xs-12
|
#mainEditorPanel.col-xs-12.col-sm-12.col-md-8
|
||||||
.panel.panel-primary.panel-bonfire
|
.panel.panel-primary.panel-bonfire
|
||||||
.panel-heading.text-center #{name} (Level #{difficulty} bonfire)
|
.panel-heading.text-center #{name} (Level #{difficulty} bonfire)
|
||||||
.panel.panel-body
|
.panel.panel-body
|
||||||
@ -43,7 +43,8 @@ block content
|
|||||||
form.code
|
form.code
|
||||||
.form-group.codeMirrorView
|
.form-group.codeMirrorView
|
||||||
textarea#codeEditor(autofocus=true)
|
textarea#codeEditor(autofocus=true)
|
||||||
#testCreatePanel.col-sm-12.col-md-5.col-xs-12
|
|
||||||
|
#testCreatePanel.col-xs-12.col-sm-12.col-md-4
|
||||||
.panel.panel-primary.panel-bonfire
|
.panel.panel-primary.panel-bonfire
|
||||||
.panel-heading.text-center Output
|
.panel-heading.text-center Output
|
||||||
.panel.panel-body
|
.panel.panel-body
|
||||||
@ -60,47 +61,48 @@ block content
|
|||||||
var challengeSeed = !{JSON.stringify(challengeSeed)};
|
var challengeSeed = !{JSON.stringify(challengeSeed)};
|
||||||
var challengeEntryPoint = !{JSON.stringify(challengeEntryPoint)};
|
var challengeEntryPoint = !{JSON.stringify(challengeEntryPoint)};
|
||||||
var passedBonfireHash = !{JSON.stringify(bonfireHash)};
|
var passedBonfireHash = !{JSON.stringify(bonfireHash)};
|
||||||
console.log(passedBonfireHash);
|
|
||||||
script(src='/js/lib/bonfire/bonfireFramework.js')
|
script(src='/js/lib/bonfire/bonfireFramework.js')
|
||||||
|
|
||||||
|
|
||||||
#complete-bonfire-dialog.modal(tabindex='-1')
|
|
||||||
.modal-dialog.animated.zoomIn.fast-animation
|
|
||||||
.modal-content
|
|
||||||
.modal-header.challenge-list-header= compliment
|
|
||||||
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
||||||
.modal-body(ng-controller="pairedWithController")
|
|
||||||
|
|
||||||
.text-center
|
#complete-bonfire-dialog.modal(tabindex='-1')
|
||||||
.animated.zoomInDown.delay-half
|
.modal-dialog.animated.zoomIn.fast-animation
|
||||||
span.landing-icon.ion-checkmark-circled.text-primary
|
.modal-content
|
||||||
- if (cc)
|
.modal-header.challenge-list-header= compliment
|
||||||
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
||||||
.form-group.text-center
|
.modal-body(ng-controller="pairedWithController")
|
||||||
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2
|
|
||||||
.input-group.twitter-input.animated.fadeIn
|
|
||||||
// extra field to distract password tools like lastpass from injecting css into our username field
|
|
||||||
input.form-control(ng-show="false")
|
|
||||||
span.input-group-addon @
|
|
||||||
input.form-control#completed-with(name="existingUser", placeholder="If you paired, enter your pair's username here", existing-username='', ng-model="existingUser", autofocus)
|
|
||||||
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2(ng-show="completedWithForm.$error.exists && !completedWithForm.existingUser.$pristine && existingUser.length > 0")
|
|
||||||
alert(type='danger')
|
|
||||||
span.ion-close-circled
|
|
||||||
| Username not found
|
|
||||||
|
|
||||||
a.animated.fadeIn.btn.btn-lg.btn-primary.btn-block.next-bonfire-button(name='_csrf', value=_csrf, aria-hidden='true', ng-disabled='completedWithForm.$invalid && existingUser.length > 0') Take me to my next challenge
|
.text-center
|
||||||
|
.animated.zoomInDown.delay-half
|
||||||
|
span.landing-icon.ion-checkmark-circled.text-primary
|
||||||
|
- if (cc)
|
||||||
|
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
|
||||||
|
.form-group.text-center
|
||||||
|
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2
|
||||||
|
.input-group.twitter-input.animated.fadeIn
|
||||||
|
// extra field to distract password tools like lastpass from injecting css into our username field
|
||||||
|
input.form-control(ng-show="false")
|
||||||
|
span.input-group-addon @
|
||||||
|
input.form-control#completed-with(name="existingUser", placeholder="If you paired, enter your pair's username here", existing-username='', ng-model="existingUser", autofocus)
|
||||||
|
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2(ng-show="completedWithForm.$error.exists && !completedWithForm.existingUser.$pristine && existingUser.length > 0")
|
||||||
|
alert(type='danger')
|
||||||
|
span.ion-close-circled
|
||||||
|
| Username not found
|
||||||
|
|
||||||
|
a.animated.fadeIn.btn.btn-lg.btn-primary.btn-block.next-bonfire-button(name='_csrf', value=_csrf, aria-hidden='true', ng-disabled='completedWithForm.$invalid && existingUser.length > 0') Take me to my next challenge
|
||||||
|
|
||||||
|
|
||||||
- if (points && points > 2)
|
- if (points && points > 2)
|
||||||
a.animated.fadeIn.btn.btn-lg.btn-block.btn-twitter(href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20Challenge%20%23#{number}:%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/bonfires/#{number}&hashtags=learntocode, javascript" target="_blank")
|
a.animated.fadeIn.btn.btn-lg.btn-block.btn-twitter(href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20Challenge%20%23#{number}:%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/bonfires/#{number}&hashtags=learntocode, javascript" target="_blank")
|
||||||
i.fa.fa-twitter
|
i.fa.fa-twitter
|
||||||
= phrase
|
= phrase
|
||||||
- else
|
- else
|
||||||
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
||||||
#all-bonfires-dialog.modal(tabindex='-1')
|
|
||||||
.modal-dialog.animated.fadeInUp.fast-animation
|
#all-bonfires-dialog.modal(tabindex='-1')
|
||||||
.modal-content
|
.modal-dialog.animated.fadeInUp.fast-animation
|
||||||
.modal-header.challenge-list-header Bonfires
|
.modal-content
|
||||||
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
.modal-header.challenge-list-header Bonfires
|
||||||
.modal-body
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
||||||
include ../partials/bonfires
|
.modal-body
|
||||||
|
include ../partials/bonfires
|
||||||
|
@ -18,10 +18,8 @@ html(ng-app='profileValidation', lang='en')
|
|||||||
|
|
||||||
body
|
body
|
||||||
include partials/navbar
|
include partials/navbar
|
||||||
|
include partials/flash
|
||||||
.container
|
block content
|
||||||
include partials/flash
|
|
||||||
block content
|
|
||||||
include partials/footer
|
include partials/footer
|
||||||
!= js('application')
|
!= js('application')
|
||||||
script.
|
script.
|
||||||
|
Reference in New Issue
Block a user