2015-02-01 14:22:34 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								extends ../layout-wide
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								block content
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-19 17:27:05 -08: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 14:24:26 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								    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')
							 | 
						
					
						
							
								
									
										
										
										
											2016-04-14 19:49:19 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								    include ../partials/flyer
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-09 22:12:32 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								    .row
							 | 
						
					
						
							
								
									
										
										
										
											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%;")
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-09 15:32:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    .row
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        .col-xs-12
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-04 11:24:09 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                            h4.text-center.challenge-instructions-title= name
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-09 15:32:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                if (isCompleted)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                    |  
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                    i.ion-checkmark-circled.text-primary(title="Completed")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                            hr
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-04 11:24:09 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                            .challenge-instructions
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-11 22:47:49 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                for sentence in description
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-26 11:22:01 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                    if (/\<blockquote|\<h4|\<table/.test(sentence))
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-17 10:47:17 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                        !=sentence
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                    else
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                        p.wrappable!= sentence
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-09 15:32:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                .negative-bottom-margin-30
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-11 18:25:20 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    .button-spacer
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-14 23:06:06 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    .btn-big.btn.btn-primary.btn-block#submitButton
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        | Run tests (ctrl + enter)
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-09 19:51:24 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    .button-spacer
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    .btn-group.input-group.btn-group-justified
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-14 23:06:06 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        label.btn.btn-primary.btn-primary-ghost.btn-lg#trigger-reset-modal Reset
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-09 15:32:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        label.btn.btn-primary.btn-primary-ghost.hidden-sm.hidden-md.hidden-lg
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-14 23:06:06 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                            a(href='//gitter.im/freecodecamp/help') Help
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        label.btn.btn-primary.btn-primary-ghost.hidden-xs.btn-lg#challenge-help-btn Help
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        label.btn.btn-primary.btn-primary-ghost.btn-lg#trigger-issue-modal Bug
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-09 19:51:24 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    script.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        var userLoggedIn = true;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                    if (!user)
							 | 
						
					
						
							
								
									
										
										
										
											2015-08-25 22:25:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                        .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
							 | 
						
					
						
							
								
									
										
										
										
											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
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-11 22:47:49 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								                                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 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)};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-11 22:47:49 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      common.challengeId = !{JSON.stringify(id)};
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 16:35:57 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      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)};
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-30 00:13:41 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      common.gaName = !{JSON.stringify(gaName)};
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 16:35:57 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-11 04:54:26 +04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      common.username = !{JSON.stringify(user && user.username || '')};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-19 17:27:05 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      common.init.push(function() {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								        common.editor.setOption('lint', false);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								        common.editor.setOption('mode', 'text/html');
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								      });
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-06 16:35:57 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
								
									
								 | 
							
							
								    include ../partials/challenge-footer
							 |