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 {
grid-area: content;
}
.content .hiding p {
word-break: break-all;
max-width: 900px;
}
.sidebar {

View File

@ -12,9 +12,9 @@ $(document).ready(function() {
// add hash URL when recipe is opened
$('label[class="recipe"]').on("click", function(){
id = $(this).attr("for");
window.location.hash = id
$(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>");
window.location.hash = ('#' + id)
$('#' + 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>");
});
});