mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
17 lines
665 B
JavaScript
17 lines
665 B
JavaScript
$(function() {
|
|
$(window).resize(function() {
|
|
$('div#tree').height($(window).height() - $('div#tree').offset().top);
|
|
$('div.note-editable').height($(window).height() - $('div.note-editable').offset().top);
|
|
});
|
|
$(window).resize();
|
|
});
|
|
|
|
jQuery.hotkeys.options.filterInputAcceptingElements = true;
|
|
jQuery.hotkeys.options.filterContentEditable = true;
|
|
|
|
$(document).bind('keypress', 'alt+ctrl+h', function() {
|
|
const toggle = $(".hide-toggle");
|
|
|
|
// use visibility instead of display so that content isn't moved around and stays set in place
|
|
toggle.css('visibility', toggle.css('visibility') === 'hidden' ? 'visible' : 'hidden');
|
|
}); |