1
0
mirror of https://github.com/zadam/trilium.git synced 2025-03-01 14:22:32 +01:00
2017-08-22 20:19:46 -04:00

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');
});