2015-02-01 14:22:34 -08:00
|
|
|
|
extends ../layout-wide
|
|
|
|
|
block content
|
|
|
|
|
script(src='/js/lib/codemirror/lib/codemirror.js')
|
|
|
|
|
script(src='/js/lib/codemirror/addon/edit/closebrackets.js')
|
|
|
|
|
script(src='/js/lib/codemirror/addon/edit/matchbrackets.js')
|
|
|
|
|
script(src='/js/lib/codemirror/addon/lint/lint.js')
|
|
|
|
|
script(src='/js/lib/codemirror/addon/lint/javascript-lint.js')
|
2015-05-11 23:40:04 -07:00
|
|
|
|
script(src='/bower_components/jshint/dist/jshint.js')
|
2015-02-01 14:22:34 -08:00
|
|
|
|
script(src='/js/lib/chai/chai.js')
|
2015-02-04 19:59:51 -05:00
|
|
|
|
script(src='/js/lib/chai/chai-jquery.js')
|
2015-02-01 14:22:34 -08:00
|
|
|
|
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')
|
|
|
|
|
link(rel="stylesheet", href="http://fonts.googleapis.com/css?family=Ubuntu+Mono")
|
|
|
|
|
script(src='/js/lib/codemirror/mode/javascript/javascript.js')
|
|
|
|
|
script(src='/js/lib/jailed/jailed.js')
|
2015-05-26 02:31:10 -04:00
|
|
|
|
script(src='/js/lib/coursewares/sandbox.js')
|
2015-02-01 14:22:34 -08:00
|
|
|
|
script(src='/js/lib/codemirror/mode/xml/xml.js')
|
|
|
|
|
script(src='/js/lib/codemirror/mode/css/css.js')
|
|
|
|
|
script(src='/js/lib/codemirror/mode/htmlmixed/htmlmixed.js')
|
2015-02-04 01:50:14 -05:00
|
|
|
|
.row.courseware-height
|
2015-02-04 02:29:38 -05:00
|
|
|
|
.col-xs-12.col-sm-12.col-md-3.col-lg-3
|
2015-02-01 14:22:34 -08:00
|
|
|
|
.well
|
|
|
|
|
.row
|
|
|
|
|
.col-xs-12
|
2015-02-01 23:35:27 -08:00
|
|
|
|
h2.text-center= name
|
2015-02-01 14:22:34 -08:00
|
|
|
|
.bonfire-instructions
|
2015-05-26 09:46:23 -07:00
|
|
|
|
p.wrappable!= brief
|
2015-02-01 14:22:34 -08:00
|
|
|
|
#brief-instructions
|
2015-02-22 17:32:30 -08:00
|
|
|
|
#more-info.btn.btn-primary.btn-block.btn-primary-ghost
|
|
|
|
|
span.ion-arrow-down-b
|
|
|
|
|
| More information
|
2015-02-01 14:22:34 -08:00
|
|
|
|
#long-instructions.row.hide
|
|
|
|
|
.col-xs-12
|
2015-02-04 01:50:14 -05:00
|
|
|
|
for sentence in details
|
2015-05-26 09:46:23 -07:00
|
|
|
|
p.wrappable!= sentence
|
2015-02-22 17:32:30 -08:00
|
|
|
|
#less-info.btn.btn-primary.btn-block.btn-primary-ghost
|
|
|
|
|
span.ion-arrow-up-b
|
|
|
|
|
| Less information
|
2015-05-25 18:00:45 -07:00
|
|
|
|
br
|
2015-05-28 16:59:25 -07:00
|
|
|
|
if (user)
|
2015-03-29 17:09:12 -07:00
|
|
|
|
a.btn.btn-primary.btn-big.btn-block#next-courseware-button
|
2015-02-13 20:55:49 -05:00
|
|
|
|
| Go to my next challenge
|
|
|
|
|
br
|
|
|
|
|
| (ctrl + enter)
|
2015-05-26 02:36:29 -07:00
|
|
|
|
if (user.sentSlackInvite)
|
|
|
|
|
.button-spacer
|
|
|
|
|
.btn-group.input-group.btn-group-justified
|
2015-05-28 14:29:45 -07:00
|
|
|
|
label.btn.btn-success#trigger-help-modal
|
2015-05-26 02:36:29 -07:00
|
|
|
|
i.fa.fa-medkit
|
2015-05-28 16:59:25 -07:00
|
|
|
|
| Help
|
2015-05-28 14:29:45 -07:00
|
|
|
|
label.btn.btn-success#trigger-issue-modal
|
2015-05-26 02:36:29 -07:00
|
|
|
|
i.fa.fa-bug
|
|
|
|
|
| Bug
|
|
|
|
|
.button-spacer
|
2015-02-12 16:48:35 -08:00
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = true;
|
2015-05-28 16:59:25 -07:00
|
|
|
|
else
|
2015-02-12 16:48:35 -08:00
|
|
|
|
a.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
2015-03-21 18:42:19 +09:00
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = false;
|
2015-03-29 17:09:12 -07:00
|
|
|
|
.button-spacer
|
2015-02-14 18:31:32 -05:00
|
|
|
|
ul#testSuite.list-group
|
2015-02-01 14:22:34 -08:00
|
|
|
|
br
|
|
|
|
|
script(type="text/javascript").
|
2015-02-12 16:48:35 -08:00
|
|
|
|
$('#next-courseware-button').attr('disabled', 'disabled');
|
2015-02-01 14:22:34 -08:00
|
|
|
|
var tests = !{JSON.stringify(tests)};
|
|
|
|
|
var challengeSeed = !{JSON.stringify(challengeSeed)};
|
2015-05-20 21:50:31 -04:00
|
|
|
|
var challenge_Id = !{JSON.stringify(challengeId)};
|
|
|
|
|
var challenge_Name = !{JSON.stringify(name)};
|
2015-02-06 16:55:48 -08:00
|
|
|
|
var prodOrDev = !{JSON.stringify(environment)};
|
2015-03-29 20:39:41 +09:00
|
|
|
|
var challengeType = !{JSON.stringify(challengeType)};
|
2015-03-27 14:36:17 -07:00
|
|
|
|
var started = Math.floor(Date.now());
|
2015-02-04 02:29:38 -05:00
|
|
|
|
.col-xs-12.col-sm-12.col-md-5.col-lg-6
|
2015-02-01 14:22:34 -08:00
|
|
|
|
#mainEditorPanel
|
|
|
|
|
form.code
|
|
|
|
|
.form-group.codeMirrorView
|
2015-03-09 23:03:17 -07:00
|
|
|
|
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-05-27 15:15:28 -04:00
|
|
|
|
img.iphone-position.iframe-scroll(src="https://s3.amazonaws.com/freecodecamp/iphone6-frame.png")
|
|
|
|
|
iframe.iphone.iframe-scroll#preview
|
2015-03-21 18:42:19 +09:00
|
|
|
|
#complete-courseware-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
|
|
|
|
|
.text-center
|
|
|
|
|
.animated.zoomInDown.delay-half
|
|
|
|
|
span.completion-icon.ion-checkmark-circled.text-primary
|
|
|
|
|
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
2015-05-28 14:29:45 -07:00
|
|
|
|
include ../partials/challenge-modals
|
2015-05-28 19:51:42 -04:00
|
|
|
|
script(src="/js/lib/coursewares/coursewaresHCJQFramework_0.1.7.js")
|