2015-02-01 14:22:34 -08:00
|
|
|
|
extends ../layout-wide
|
|
|
|
|
block content
|
|
|
|
|
link(rel='stylesheet', href='/js/lib/codemirror/lib/codemirror.css')
|
|
|
|
|
link(rel='stylesheet', href='/js/lib/codemirror/addon/lint/lint.css')
|
|
|
|
|
link(rel='stylesheet', href='/js/lib/codemirror/theme/monokai.css')
|
2015-09-17 00:06:01 -07:00
|
|
|
|
link(rel='stylesheet', href='/css/ubuntu.css')
|
2015-02-04 01:50:14 -05:00
|
|
|
|
.row.courseware-height
|
2015-09-17 11:53:19 -07:00
|
|
|
|
.col-md-3.col-lg-3
|
2015-08-25 22:25:00 +01:00
|
|
|
|
.scroll-locker(id = "scroll-locker")
|
|
|
|
|
.innerMarginFix(style = "width: 99%;")
|
|
|
|
|
.well
|
|
|
|
|
.row
|
|
|
|
|
.col-xs-12
|
|
|
|
|
h3.text-center.negative-10= name
|
|
|
|
|
.bonfire-instructions
|
|
|
|
|
for sentence in details
|
|
|
|
|
p.wrappable.negative-10!= sentence
|
|
|
|
|
.negative-bottom-margin-30
|
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-09-09 19:51:24 -07: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 16:45:32 -07:00
|
|
|
|
label.btn.btn-success.hidden-sm.hidden-md.hidden-lg
|
|
|
|
|
a(href='//gitter.im/freecodecamp/help')
|
|
|
|
|
i.fa.fa-medkit
|
|
|
|
|
| Help
|
|
|
|
|
label.btn.btn-success.hidden-xs#challenge-help-btn
|
2015-09-09 19:51:24 -07:00
|
|
|
|
i.fa.fa-medkit
|
|
|
|
|
| Help
|
|
|
|
|
label.btn.btn-success#trigger-issue-modal
|
|
|
|
|
i.fa.fa-bug
|
|
|
|
|
| Bug
|
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = true;
|
|
|
|
|
if (!user)
|
2015-08-25 22:25:00 +01:00
|
|
|
|
.button-spacer
|
2015-09-06 14:41:55 +04:00
|
|
|
|
a.btn.signup-btn.btn-block.btn-block(href='/login') Sign in so you can save your progress
|
2015-08-25 22:25:00 +01:00
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = false;
|
|
|
|
|
.button-spacer
|
2015-09-27 23:22:06 -07:00
|
|
|
|
#testSuite
|
2015-08-25 22:25:00 +01:00
|
|
|
|
br
|
2015-09-17 11:53:19 -07:00
|
|
|
|
.col-md-5.col-lg-6
|
2015-08-01 20:24:16 +01:00
|
|
|
|
.editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
|
|
|
|
|
#mainEditorPanel
|
|
|
|
|
form.code
|
|
|
|
|
.codeMirrorView
|
|
|
|
|
textarea#codeEditor(autofocus=true, style='display: none;')
|
2015-02-04 02:29:38 -05:00
|
|
|
|
.col-md-4.col-lg-3
|
|
|
|
|
.hidden-xs.hidden-sm
|
2015-08-17 14:04:12 +01:00
|
|
|
|
img.iphone-position.iframe-scroll(src="https://s3.amazonaws.com/freecodecamp/iphone6-frame.png", style = "z-index: -2;")
|
2015-05-27 15:15:28 -04:00
|
|
|
|
iframe.iphone.iframe-scroll#preview
|
2015-06-03 15:50:28 -07:00
|
|
|
|
.spacer
|
2015-03-21 18:42:19 +09:00
|
|
|
|
#complete-courseware-dialog.modal(tabindex='-1')
|
2015-09-09 19:51:24 -07:00
|
|
|
|
.modal-dialog.animated.fadeIn.fast-animation
|
2015-03-21 18:42:19 +09:00
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header.challenge-list-header
|
|
|
|
|
= compliment
|
|
|
|
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
|
|
|
.modal-body
|
|
|
|
|
.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
|
2015-09-04 14:26:56 -07:00
|
|
|
|
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-09-04 14:11:52 -04:00
|
|
|
|
else
|
2015-11-09 11:15:14 -08:00
|
|
|
|
a#next-challenge.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").
|
|
|
|
|
$('#next-courseware-button').attr('disabled', 'disabled');
|
|
|
|
|
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)};
|
|
|
|
|
|
|
|
|
|
common.started = Math.floor(Date.now());
|
|
|
|
|
|
|
|
|
|
include ../partials/challenge-footer
|
2015-10-08 16:42:24 -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-06 16:35:57 -08:00
|
|
|
|
|
|
|
|
|
editor.setOption('lint', false);
|
|
|
|
|
editor.setOption("mode", "text/html");
|