2014-11-02 17:07:40 +00:00
|
|
|
|
extends ../layout
|
|
|
|
|
block content
|
|
|
|
|
.row
|
2015-01-17 22:41:30 +00:00
|
|
|
|
.col-sm-12.col-md-12.col-xs-12
|
2014-11-07 01:38:47 +00:00
|
|
|
|
.panel.panel-primary
|
2015-02-04 21:04:51 +00:00
|
|
|
|
.panel-heading.text-center
|
|
|
|
|
h1 #{name} (takes #{time} minutes)
|
2015-02-03 23:37:56 +00:00
|
|
|
|
script.
|
2015-02-08 05:11:26 +00:00
|
|
|
|
var challengeName = null;
|
2014-11-07 01:38:47 +00:00
|
|
|
|
.panel.panel-body
|
2014-12-11 06:41:37 +00:00
|
|
|
|
.embed-responsive.embed-responsive-16by9
|
|
|
|
|
iframe.embed-responsive-item(src='//player.vimeo.com/video/#{video}')
|
2015-01-17 22:41:30 +00:00
|
|
|
|
.col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2
|
|
|
|
|
h3 Steps:
|
|
|
|
|
h4
|
|
|
|
|
ol
|
|
|
|
|
for step in steps
|
|
|
|
|
li!= step
|
|
|
|
|
.btn.btn-primary.btn-big.btn-block.completed-challenge I've completed this challenge
|
|
|
|
|
.ten-pixel-break
|
|
|
|
|
.btn.btn-success.btn-big.btn-block.all-challenges Show me all the challenges
|
2015-01-24 05:44:08 +00:00
|
|
|
|
#complete-challenge-dialog.modal(tabindex='-1')
|
2014-11-07 01:38:47 +00:00
|
|
|
|
.modal-dialog.animated.zoomIn.fast-animation
|
|
|
|
|
.modal-content
|
2015-01-25 07:03:25 +00:00
|
|
|
|
.modal-header.challenge-list-header= compliment
|
2015-01-18 00:36:10 +00:00
|
|
|
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
|
|
|
.modal-body
|
2014-11-07 01:38:47 +00:00
|
|
|
|
.text-center
|
2015-01-18 21:34:45 +00:00
|
|
|
|
.animated.zoomInDown.delay-half
|
2015-01-31 01:42:17 +00:00
|
|
|
|
span.completion-icon.ion-checkmark-circled.text-primary
|
2014-12-24 22:34:52 +00:00
|
|
|
|
- if (cc)
|
2015-01-24 08:11:01 +00:00
|
|
|
|
a.animated.fadeIn.btn.btn-lg.btn-primary.btn-block.next-challenge-button(name='_csrf', value=_csrf, aria-hidden='true') Take me to my next challenge
|
2014-12-24 22:34:52 +00:00
|
|
|
|
- if (points && points > 2)
|
2015-02-22 23:01:55 +00:00
|
|
|
|
a.animated.fadeIn.btn.btn-lg.btn-block.btn-twitter(target="_blank")
|
2014-12-24 22:34:52 +00:00
|
|
|
|
i.fa.fa-twitter
|
2015-01-09 02:39:16 +00:00
|
|
|
|
= phrase
|
2014-12-24 22:34:52 +00:00
|
|
|
|
- else
|
2015-01-18 21:34:45 +00:00
|
|
|
|
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
|
2015-01-17 22:41:30 +00:00
|
|
|
|
#all-challenges-dialog.modal(tabindex='-1')
|
2015-01-18 00:36:10 +00:00
|
|
|
|
.modal-dialog.animated.fadeInUp.fast-animation
|
2014-11-07 01:38:47 +00:00
|
|
|
|
.modal-content
|
2015-01-18 00:36:10 +00:00
|
|
|
|
.modal-header.challenge-list-header Challenges
|
|
|
|
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
|
|
|
.modal-body
|
2015-02-22 23:01:55 +00:00
|
|
|
|
include ../partials/challenges
|
|
|
|
|
script.
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: 'https://api-ssl.bitly.com/v3/shorten?access_token=75e7931a19befaafcf108021b6d597e554b2c5c3&longUrl=http%3A%2F%2Ffreecodecamp.com%2Fchallenges%2F' + !{JSON.stringify(number)} + '&format=txt'
|
|
|
|
|
})
|
|
|
|
|
.success(
|
|
|
|
|
function (data) {
|
|
|
|
|
console.log(data);
|
|
|
|
|
url = "https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20Bonfire:%20#{name}&url=" + data + "&hashtags=LearnToCode, JavaScript";
|
|
|
|
|
$('.btn-twitter').attr('href', url);
|
|
|
|
|
}
|
|
|
|
|
);
|