mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-01-12 11:37:08 +01:00
re-fix js for links and firefox sizing weirdness
This commit is contained in:
parent
c18a193973
commit
f34858d644
@ -24,10 +24,7 @@ html, body {
|
||||
|
||||
.content {
|
||||
grid-area: content;
|
||||
}
|
||||
|
||||
.content .hiding p {
|
||||
word-break: break-all;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
|
6
js/js.js
6
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("<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>");
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user