Update Logo rendering
This commit is contained in:
24
script.js
24
script.js
@@ -87,6 +87,30 @@ jQuery(function(){
|
||||
this.blur();
|
||||
});
|
||||
|
||||
(function enhanceHeaderMenu(){
|
||||
var $menu = jQuery('#dokuwiki__header .header__menu');
|
||||
|
||||
if ($menu.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
function closeMenu() {
|
||||
$menu.removeAttr('open');
|
||||
}
|
||||
|
||||
jQuery(document).on('click', function (event) {
|
||||
if (!jQuery(event.target).closest($menu).length) {
|
||||
closeMenu();
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(document).on('keydown', function (event) {
|
||||
if (event.key === 'Escape') {
|
||||
closeMenu();
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
// make edit toolbar icons themeable by converting img icons to CSS masks
|
||||
(function enhanceEditToolbarIcons() {
|
||||
function toMaskIcons() {
|
||||
|
||||
Reference in New Issue
Block a user