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')
|
|
|
|
|
script(src='//ajax.aspnetcdn.com/ajax/jshint/r07/jshint.js')
|
|
|
|
|
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')
|
|
|
|
|
script(src='/js/lib/bonfire/bonfireInit.js')
|
|
|
|
|
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-02-10 12:46:34 -08:00
|
|
|
|
p!= brief
|
2015-02-01 14:22:34 -08:00
|
|
|
|
#brief-instructions
|
|
|
|
|
.text-center
|
|
|
|
|
button#more-info.btn.btn-info
|
|
|
|
|
span.ion-help-circled
|
|
|
|
|
| More information
|
|
|
|
|
#long-instructions.row.hide
|
|
|
|
|
.col-xs-12
|
2015-02-04 01:50:14 -05:00
|
|
|
|
for sentence in details
|
|
|
|
|
p!= sentence
|
|
|
|
|
.text-center
|
|
|
|
|
button#less-info.btn.btn-info
|
|
|
|
|
span.ion-help-circled
|
|
|
|
|
| Less information
|
2015-02-12 16:48:35 -08:00
|
|
|
|
- if (cc)
|
|
|
|
|
a.btn.btn-primary.btn-lg.btn-block#next-courseware-button Go to my next challenge (ctrl + enter)
|
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = true;
|
|
|
|
|
|
|
|
|
|
- else
|
|
|
|
|
a.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
|
|
|
|
script.
|
|
|
|
|
var userLoggedIn = false;
|
2015-02-02 23:31:43 -08:00
|
|
|
|
div.hidden
|
|
|
|
|
#submitButton.btn.btn-primary.btn-big.btn-block Run code (ctrl + enter)
|
|
|
|
|
br
|
|
|
|
|
form.code
|
|
|
|
|
.form-group.codeMirrorView
|
|
|
|
|
textarea#codeOutput
|
2015-02-01 14:22:34 -08:00
|
|
|
|
br
|
|
|
|
|
#testSuite
|
|
|
|
|
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-02-01 23:35:27 -08:00
|
|
|
|
var passedCoursewareHash = !{JSON.stringify(coursewareHash)};
|
2015-02-07 21:11:26 -08:00
|
|
|
|
var challengeName = !{JSON.stringify(name)};
|
2015-02-06 16:55:48 -08:00
|
|
|
|
var prodOrDev = !{JSON.stringify(environment)};
|
2015-02-07 21:11:26 -08:00
|
|
|
|
var started = Math.floor(Date.now() / 1000);
|
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
|
|
|
|
|
textarea#codeEditor(autofocus=true)
|
2015-02-12 16:48:35 -08:00
|
|
|
|
script(src='/js/lib/coursewares/coursewaresFramework_v0.1.1.js')
|
2015-02-04 02:29:38 -05:00
|
|
|
|
.col-md-4.col-lg-3
|
|
|
|
|
.hidden-xs.hidden-sm
|
|
|
|
|
img.iphone-position(src="https://s3.amazonaws.com/freecodecamp/iphone6-frame.png")
|
2015-02-01 14:22:34 -08:00
|
|
|
|
iframe.iphone#preview
|
2015-02-04 19:59:51 -05:00
|
|
|
|
|
|
|
|
|
|
2015-02-04 21:35:20 -05:00
|
|
|
|
#complete-courseware-dialog.modal(tabindex='-1')
|
|
|
|
|
.modal-dialog.animated.zoomIn.fast-animation
|
|
|
|
|
.modal-content
|
2015-02-04 19:00:40 -08:00
|
|
|
|
.modal-header.challenge-list-header
|
|
|
|
|
= compliment
|
2015-02-04 21:35:20 -05:00
|
|
|
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
2015-02-04 19:00:40 -08:00
|
|
|
|
.modal-body
|
2015-02-04 21:35:20 -05:00
|
|
|
|
.text-center
|
|
|
|
|
.animated.zoomInDown.delay-half
|
|
|
|
|
span.completion-icon.ion-checkmark-circled.text-primary
|
2015-02-06 16:55:48 -08:00
|
|
|
|
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|