re-fix js for links and firefox sizing weirdness

This commit is contained in:
Ashley Blewer 2017-10-18 20:56:35 -04:00
parent c18a193973
commit f34858d644
2 changed files with 4 additions and 7 deletions

View File

@ -24,10 +24,7 @@ html, body {
.content { .content {
grid-area: content; grid-area: content;
} max-width: 900px;
.content .hiding p {
word-break: break-all;
} }
.sidebar { .sidebar {

View File

@ -12,9 +12,9 @@ $(document).ready(function() {
// add hash URL when recipe is opened // add hash URL when recipe is opened
$('label[class="recipe"]').on("click", function(){ $('label[class="recipe"]').on("click", function(){
id = $(this).attr("for"); id = $(this).attr("for");
window.location.hash = id window.location.hash = ('#' + id)
$(id).closest('div').find('.link').empty(); $('#' + id).closest('div').find('.link').empty();
$(id).closest('div').find('.link').append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>"); $('#' + id).closest('div').find('.link').append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
}); });
}); });