2015-03-30 13:48:54 -07:00
|
|
|
|
extends ../layout
|
|
|
|
|
block content
|
|
|
|
|
script.
|
|
|
|
|
var challengeName = 'Wiki View';
|
|
|
|
|
.col-xs-12.col-sm-12.col-md-12
|
|
|
|
|
.panel.panel-info
|
|
|
|
|
.panel-heading.text-center
|
|
|
|
|
h1= title
|
|
|
|
|
.panel-body
|
2015-04-05 17:17:31 -07:00
|
|
|
|
.row
|
|
|
|
|
.col-xs-12
|
|
|
|
|
div!= description
|
|
|
|
|
.spacer
|
2015-03-30 15:55:00 -07:00
|
|
|
|
.spacer
|
2015-04-05 17:17:31 -07:00
|
|
|
|
.spacer
|
|
|
|
|
.col-xs-12.col-sm-6.col-sm-offset-3
|
|
|
|
|
.text-center
|
|
|
|
|
.next-wiki-button.btn.btn-primary.btn-big.btn-block Next article (ctrl + enter)
|
|
|
|
|
.ten-pixel-break
|
2015-04-07 22:33:49 -07:00
|
|
|
|
#showAllButton.btn.btn-info.btn-big.btn-block Show me all articles
|
2015-03-30 15:55:00 -07:00
|
|
|
|
.spacer
|
2015-03-30 15:15:07 -07:00
|
|
|
|
.row
|
|
|
|
|
.col-xs-12.text-center
|
|
|
|
|
if !user
|
|
|
|
|
a.btn.btn-cta.signup-btn.btn-primary(href="/login") Start learning to code (it's free)
|
|
|
|
|
.spacer
|
2015-04-05 18:37:58 -07:00
|
|
|
|
#show-all-dialog.modal(tabindex='-1')
|
2015-03-30 15:55:00 -07:00
|
|
|
|
.modal-dialog.animated.fadeInUp.fast-animation
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header.all-list-header Wiki Articles
|
|
|
|
|
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
|
|
|
|
|
.modal-body
|
|
|
|
|
include ../partials/wikis
|
2015-04-05 16:44:07 -07:00
|
|
|
|
#wikiId.hidden= wikiId
|
2015-04-05 17:17:31 -07:00
|
|
|
|
script.
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$('body').keydown(function(e) {
|
|
|
|
|
if (e.ctrlKey && e.keyCode == 13) {
|
|
|
|
|
$('.next-wiki-button').click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|