fix search results formatting for mobile and desktop camper news

This commit is contained in:
Quincy Larson
2015-09-28 20:48:56 -07:00
committed by Berkeley Martinez
parent 242351e0e4
commit ab204c654e

View File

@ -13,15 +13,6 @@
.visible-xs
.button-spacer
//.spacer
//.row
// .col-xs-12.col-sm-8.col-sm-offset-2.well
// h4.text-center Which other free resources do you use?
// img.img-responsive(src='https://www.evernote.com/l/AHRNhlwViM1Kh5qCm6iy7MSWrbdyxYbRkWkB/image.png')
// p Link us to your favorite free coding resources.
// p Use the headline: "Awesome Free Resource: (the name of the book, podcast, or video series)". We'll publish a list of the 25 most-upvoted resources (and the campers who submitted them) in Wednesday's blog post, and in an upcoming Field Guide article. Also - as always - you'll get 1 point every time someone upvotes your post.
//.spacer
#search-results
.spacer
@ -58,6 +49,9 @@ script.
})
.done(function (data, textStatus, xhr) {
$('#search-results').empty();
var spacer = document.createElement('div');
$(spacer).html("<div class='spacer'></div>");
$(spacer).appendTo($('#search-results'));
for (var i = 0; i < data.length; i++) {
var div = document.createElement('div');
var linkedName = getLinkedName(data[i].storyLink);
@ -117,7 +111,7 @@ script.
$(div).appendTo($('#search-results'));
}
var hr = document.createElement("div");
$(hr).html("<h3 class='negative-35 text-center text-success dotted-underline'><em>End search results</em></h3>")
$(hr).html("<h3 class='text-center text-success dotted-underline'><em>End search results</em></h3>")
$(hr).appendTo($('#search-results'));
});
}