mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-03-26 12:55:29 +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 {
|
.content {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
}
|
max-width: 900px;
|
||||||
|
|
||||||
.content .hiding p {
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
6
js/js.js
6
js/js.js
@ -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>");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user