freeCodeCamp/server/views/challenges/showHTML.jade

99 lines
4.9 KiB
Plaintext
Raw Normal View History

extends ../layout-wide
block content
2015-11-20 01:27:05 +00:00
link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
2015-11-24 22:24:26 +00:00
link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
2015-09-17 07:06:01 +00:00
link(rel='stylesheet', href='/css/ubuntu.css')
2016-04-15 02:49:19 +00:00
include ../partials/flyer
2016-01-10 04:12:32 +00:00
.row
.col-md-3.col-lg-3
.scroll-locker(id = "scroll-locker")
.innerMarginFix(style = "width: 99%;")
2016-01-09 21:32:52 +00:00
.row
.col-xs-12
2016-02-04 16:24:09 +00:00
h4.text-center.challenge-instructions-title= name
2016-01-09 21:32:52 +00:00
if (isCompleted)
|  
i.ion-checkmark-circled.text-primary(title="Completed")
hr
2016-02-04 16:24:09 +00:00
.challenge-instructions
for sentence in description
if (/\<blockquote|\<h4|\<table/.test(sentence))
2016-01-17 18:47:17 +00:00
!=sentence
else
p.wrappable!= sentence
2016-01-09 21:32:52 +00:00
.negative-bottom-margin-30
2016-01-12 00:25:20 +00:00
.button-spacer
button.btn-big.btn.btn-primary.btn-block#submitButton
| Run tests (ctrl + enter)
.button-spacer
.btn-group.btn-group-justified
.btn-group
button.btn.btn-primary.btn-primary-ghost.btn-lg#trigger-reset-modal Reset
.btn-group
2016-06-10 14:29:29 +00:00
button.btn.btn-primary.btn-primary-ghost.btn-lg#challenge-help-btn Help
.btn-group
button.btn.btn-primary.btn-primary-ghost.btn-lg#trigger-issue-modal Bug
script.
var userLoggedIn = true;
if (!user)
.button-spacer
2016-05-03 15:06:20 +00:00
a.btn.signup-btn.btn-block.btn-block(href='/signin') Sign in so you can save your progress
script.
var userLoggedIn = false;
.button-spacer
#testSuite
br
.col-md-5.col-lg-6
.editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
#mainEditorPanel
form.code
.codeMirrorView
textarea#codeEditor(autofocus=true, style='display: none;')
.col-md-4.col-lg-3
.hidden-xs.hidden-sm
2015-08-17 13:04:12 +00:00
img.iphone-position.iframe-scroll(src="https://s3.amazonaws.com/freecodecamp/iphone6-frame.png", style = "z-index: -2;")
iframe.iphone.iframe-scroll#preview
.spacer
#complete-courseware-dialog.modal(tabindex='-1')
.modal-dialog.animated.fadeIn.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
2015-08-26 22:17:19 +00:00
#checkmark-container.row
#challenge-checkmark.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
.spacer
if(user)
button#submit-challenge.animated.fadeIn.btn.btn-lg.btn-primary.btn-block Submit and go to my next challenge (ctrl + enter)
else
a#next-challenge.btn.btn-lg.btn-primary.btn-block(href="/challenges/next-challenge?id="+id) Go to my next challenge (ctrl + enter)
2015-05-28 21:29:45 +00:00
include ../partials/challenge-modals
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(id)};
common.challengeName = !{JSON.stringify(name)};
common.challengeSeed = !{JSON.stringify(challengeSeed)};
common.challengeType = !{JSON.stringify(challengeType)};
common.dashedName = !{JSON.stringify(dashedName)};
common.isCompleted = !{JSON.stringify(isCompleted)};
common.gaName = !{JSON.stringify(gaName)};
common.username = !{JSON.stringify(user && user.username || '')};
2015-11-20 01:27:05 +00:00
common.init.push(function() {
common.editor.setOption('lint', false);
common.editor.setOption('mode', 'text/html');
});
include ../partials/challenge-footer