diff --git a/css/css.css b/css/css.css index 500af4f..b387177 100644 --- a/css/css.css +++ b/css/css.css @@ -24,10 +24,7 @@ html, body { .content { grid-area: content; -} - -.content .hiding p { - word-break: break-all; + max-width: 900px; } .sidebar { diff --git a/js/js.js b/js/js.js index 211020c..81eaa63 100644 --- a/js/js.js +++ b/js/js.js @@ -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("Link to this command: "+window.location.href+""); + window.location.hash = ('#' + id) + $('#' + id).closest('div').find('.link').empty(); + $('#' + id).closest('div').find('.link').append("Link to this command: "+window.location.href+""); }); });