2015-02-13 20:55:49 -05:00
extends ../layout-wide
block content
2015-11-24 15:01:22 -08:00
link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
2015-09-17 00:06:01 -07:00
link(rel='stylesheet', href='/css/ubuntu.css')
2015-12-04 18:24:09 -08:00
.row
2015-09-17 11:53:19 -07:00
.col-md-4.col-lg-3
2015-08-25 22:25:00 +01:00
.scroll-locker(id = "scroll-locker")
.innerMarginFix(style = "width: 99%;")
2016-01-09 22:12:32 -06:00
#testCreatePanel
2015-08-25 22:25:00 +01:00
h3.text-center.negative-10= name
2016-01-02 15:50:28 +04:00
if (isCompleted)
|
i.ion-checkmark-circled.text-primary(title="Completed")
2016-01-09 22:12:32 -06:00
hr
2015-08-25 22:25:00 +01:00
.row
2015-07-02 21:32:20 +01:00
.col-xs-12
2015-08-25 22:25:00 +01:00
.bonfire-instructions
for sentence in details
2015-12-24 16:00:44 -08:00
if (/blockquote|h4|table/.test(sentence))
2015-12-22 13:27:17 -08:00
!=sentence
else
p.wrappable.negative-10!= sentence
2016-01-13 14:25:49 +04:00
if (MDNlinks.length)
2015-08-25 22:25:00 +01:00
.negative-bottom-margin-30
#MDN-links
p.negative-10 Here are some helpful links:
for link, index in MDNlinks
.negative-10
ul: li: a(href="" + link, target="_blank") !{MDNkeys[index]}
if (user)
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
.form-group.text-center.negative-10
.col-xs-12
// extra field to distract password tools like lastpass from injecting css into our username field
2015-09-09 19:51:24 -07:00
label.negative-10.btn.btn-primary.btn-lg.btn-block#submitButton
2015-08-25 22:25:00 +01:00
i.fa.fa-play
2015-08-29 09:30:47 -07:00
| Run tests (ctrl + enter)
2015-08-25 22:25:00 +01:00
.button-spacer
.btn-group.input-group.btn-group-justified
label.btn.btn-success#trigger-reset-modal
i.fa.fa-refresh
| Reset
2015-10-16 11:57:33 -07:00
label.btn.btn-success#challenge-help-btn
2015-08-25 22:25:00 +01:00
i.fa.fa-medkit
| Help
label.btn.btn-success#trigger-issue-modal
i.fa.fa-bug
| Bug
2015-09-09 19:51:24 -07:00
if (!user)
.button-spacer
a.btn.signup-btn.btn-block.btn-block(href='/login') Sign in so you can save your progress
script.
var userLoggedIn = false;
2015-08-25 22:25:00 +01:00
.button-spacer
form.code
.form-group.codeMirrorView
textarea#codeOutput(style='display: none;')
br
#testSuite.negative-10
br
2015-09-17 11:53:19 -07:00
.col-md-8.col-lg-9
2015-08-01 20:22:02 +01:00
.editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
2015-08-01 19:55:40 +01:00
#mainEditorPanel
form.code
.codeMirrorView
textarea#codeEditor(autofocus=true, style='display: none;')
2015-02-13 20:55:49 -05:00
#complete-courseware-dialog.modal(tabindex='-1')
2015-09-09 18:55:20 -07:00
.modal-dialog.animated.fadeIn.fast-animation
2015-02-13 20:55:49 -05:00
.modal-content
.modal-header.challenge-list-header= compliment
2015-07-10 10:12:53 -07:00
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
2015-07-05 17:15:54 -07:00
.modal-body
2015-02-13 20:55:49 -05:00
.text-center
2015-08-26 15:17:19 -07:00
#checkmark-container.row
#challenge-checkmark.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
.spacer
.row
if (user)
2015-09-09 18:59:56 -07:00
#submit-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block Submit and go to my next challenge (ctrl + enter)
2015-08-26 15:17:19 -07:00
else
2015-11-09 11:15:14 -08:00
a#next-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block(href="/challenges/next-challenge?id="+challengeId) Go to my next challenge (ctrl + enter)
2015-05-28 14:29:45 -07:00
include ../partials/challenge-modals
2015-11-06 16:35:57 -08:00
script(type="text/javascript").
var common = window.common = { init: [] };
common.tests = !{JSON.stringify(tests)};
common.head = !{JSON.stringify(head)};
common.tail = !{JSON.stringify(tail)};
common.challengeId = !{JSON.stringify(challengeId)};
common.challengeName = !{JSON.stringify(name)};
common.challengeSeed = !{JSON.stringify(challengeSeed)};
common.challengeType = !{JSON.stringify(challengeType)};
common.dashedName = !{JSON.stringify(dashedName)};
2016-01-02 15:50:28 +04:00
common.isCompleted = !{JSON.stringify(isCompleted)};
2015-11-06 16:35:57 -08:00
include ../partials/challenge-footer
2015-07-05 17:15:54 -07:00
script.
2015-10-16 11:57:33 -07:00
document.addEventListener('gitter-sidecar-ready', function(e) {
if (window.main) {
window.main.chat.createHelpChat('freecodecamp/help', '#challenge-help-btn');
}
});
2015-11-24 15:01:22 -08:00
common.init.push(function() {
common.editor.setOption('mode', 'javascript');
});