|
1 | 1 | <div class='course js-course'> |
2 | | - |
3 | 2 | <div class='row'> |
4 | 3 | <div class='cell'> |
5 | | - |
6 | 4 | <nav class='course-toc'> |
7 | 5 | <div class='well well--m--xl course-toc-inner'> |
8 | 6 | <ol class='list list--s list--divided list--divided--s checklist tfh js-course--toc'> |
9 | 7 | <li ng-repeat='challenge in ctrl.challenges' ng-class="{ 'is-active': challenge.active, 'is-completed': challenge.completed }" class='list-item checklist-item'> |
10 | | - <a ng-href='#{{challenge.id}}' ng-if='challenge.started' ng-click='ctrl.activateChallenge(challenge)' class='checklist-item-link'>{{ ::challenge.title }}</a> |
| 8 | + <a ng-href='#{{challenge.id}}' ng-if='challenge.started' ng-click='ctrl.activateChallenge(challenge)' class='checklist-item-link'>{{ ::challenge.title }}</a> |
11 | 9 | <span ng-if='!challenge.started'>{{ ::challenge.title }}</span> |
12 | 10 | </li> |
| 11 | + |
| 12 | + <li ng-class="{ 'is-active': ctrl.onWrapupPage(), 'is-completed': ctrl.challengeProgress.courseCompleted }" class='list-item checklist-item'> |
| 13 | + <a ng-href='#wrapup' ng-if='ctrl.challengeProgress.courseCompleted' ng-click='ctrl.activateChallenge(null)' class='checklist-item-link'>Wrap Up</a> |
| 14 | + <span>Wrap Up</span> |
| 15 | + </li> |
13 | 16 | </ol> |
14 | 17 | </div> |
15 | 18 | </nav> |
16 | | - |
17 | 19 | </div> |
18 | 20 | </div> |
19 | 21 |
|
20 | | - <div ng-if='ctrl.challenges.length'> |
21 | | - <js-challenge ng-repeat='challenge in ::ctrl.challenges' challenge='challenge' ng-if='challenge.started' class='animate--fade'> |
| 22 | + <div ng-if='ctrl.challenges.length' id='im-sure-youll-change-this'> |
| 23 | + <js-challenge ng-repeat='challenge in ::ctrl.challenges' challenge='challenge' ng-if='challenge.active' class='animate--fade'> |
22 | 24 | </js-challenge> |
23 | | - </div> |
24 | 25 |
|
25 | | - <div ng-if='ctrl.challengeProgress.courseCompleted' class='animate--fade' ng-class="{ 'is-active' ctrl.challengeProgress.courseCompleted }"> |
26 | | - <div class='row'> |
27 | | - <div class='cell cell--s well well--l well--m--xl'> |
28 | | - <div class="g"> |
29 | | - <div class="g-b g-b--m--2of5 mbl"> |
30 | | - <img class='thumb mhc' src='http://placehold.it/220x220' /> |
31 | | - </div> |
| 26 | + <section ng-if='ctrl.onWrapupPage()' class='animate--fade'> |
| 27 | + <div class='row'> |
| 28 | + <div class='cell cell--s well well--l well--m--xl'> |
| 29 | + <div class="g"> |
| 30 | + <div class="g-b g-b--m--2of5 mbl"> |
| 31 | + <img class='thumb mhc' src='http://placehold.it/220x220' /> |
| 32 | + </div> |
32 | 33 |
|
33 | | - <div class="g-b g-b--m--3of5"> |
34 | | - <h1 class='h h--1'>Congratulations!</h1> |
| 34 | + <div class="g-b g-b--m--3of5"> |
| 35 | + <h1 class='h h--1'>Congratulations!</h1> |
35 | 36 |
|
36 | | - <p>You completed Try JavaScript and you earned this shiny new badge! Wow, you must be someone super important and awesome. You’re well on your way to becoming a JavaScript master.</p> |
37 | | - <p class="mbl">Sign in or create an account to claim your badge at Code School where you can continue your learning!</p> |
| 37 | + <p>You completed Try JavaScript and you earned this shiny new badge! Wow, you must be someone super important and awesome. You’re well on your way to becoming a JavaScript master.</p> |
| 38 | + <p class="mbl">Sign in or create an account to claim your badge at Code School where you can continue your learning!</p> |
38 | 39 |
|
39 | | - <a href='https://www.codeschool.com' class='btn db dib--s mbs mrs mrs--s'>Claim Your Badge</a> |
40 | | - <a href='/resources' class='btn db dib--s btn--a--bordered'>Nope, I’m Good</a> |
| 40 | + <a href='https://www.codeschool.com' class='btn db dib--s mbs mrs mrs--s'>Claim Your Badge</a> |
| 41 | + <a href='/resources' class='btn db dib--s btn--a--bordered'>Nope, I’m Good</a> |
| 42 | + </div> |
41 | 43 | </div> |
42 | 44 | </div> |
43 | 45 | </div> |
44 | | - </div> |
| 46 | + </section> |
45 | 47 | </div> |
| 48 | + |
| 49 | + <js-console></js-console> |
46 | 50 | </div> |
0 commit comments