2015-03-06 08:20:49 +09:00
|
|
|
.spacer
|
|
|
|
.col-xs-12
|
2015-03-07 17:42:22 +09:00
|
|
|
script.
|
|
|
|
var storyURL = !{JSON.stringify(storyURL)};
|
|
|
|
var storyTitle = !{JSON.stringify(storyTitle)};
|
2015-03-05 19:21:26 +09:00
|
|
|
form.form-horizontal.control-label-story-submission#story-submission-form
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12
|
2015-03-05 19:21:26 +09:00
|
|
|
.form-group
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12.col-md-1
|
2015-03-05 19:21:26 +09:00
|
|
|
label.control-label.control-label-story-submission(for='name') Link
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12.col-md-11
|
2015-03-07 17:42:22 +09:00
|
|
|
input#story-url.form-control(placeholder='Paste your link here', name='Link')
|
2015-03-05 19:21:26 +09:00
|
|
|
.form-group
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12.col-md-1
|
2015-03-05 19:21:26 +09:00
|
|
|
label.control-label.control-label-story-submission(for='name') Title
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12.col-md-11
|
2015-03-08 17:51:27 -07:00
|
|
|
input#story-title.form-control(placeholder='Type a headline for your link here', name='Title', maxlength='140' autofocus)
|
2015-03-07 18:26:49 +09:00
|
|
|
.form-group
|
2015-03-07 16:48:57 -08:00
|
|
|
.col-xs-12.col-md-1
|
|
|
|
label.control-label.control-label-story-submission(for='name') Description
|
|
|
|
.col-xs-12.col-md-11
|
2015-03-08 17:51:27 -07:00
|
|
|
input#description-box.form-control(name="comment-box", placeholder="Start off the discussion with a description of your post" maxlength='140')
|
|
|
|
span.pull-left#textarea_feedback
|
2015-03-06 08:20:49 +09:00
|
|
|
.spacer
|
2015-03-05 19:21:26 +09:00
|
|
|
.form-group
|
2015-03-07 20:51:20 +09:00
|
|
|
button.btn.btn-big.btn-block.btn-primary#story-submit Submit
|
2015-03-07 17:42:22 +09:00
|
|
|
script.
|
|
|
|
$('#story-url').val(storyURL).attr('disabled', 'disabled');
|
2015-03-08 17:51:27 -07:00
|
|
|
$('#story-title').val(storyTitle);
|
|
|
|
var text_max = 140;
|
|
|
|
$('#textarea_feedback').html(text_max + ' characters remaining');
|
|
|
|
$('#description-box').keyup(function () {
|
|
|
|
var text_length = $('#description-box').val().length;
|
|
|
|
var text_remaining = text_max - text_length;
|
|
|
|
$('#textarea_feedback').html(text_remaining + ' characters remaining');
|
|
|
|
});
|