search input tooltip WIP

This commit is contained in:
zadam
2019-03-30 17:41:53 +01:00
parent 66e2a12f3d
commit a1ac609b34
4 changed files with 17 additions and 5 deletions

View File

@@ -16,6 +16,17 @@ const $closeSearchButton = $("#close-search-button");
function showSearch() {
$searchBox.slideDown();
$searchInput.focus();
$searchBox.tooltip({
trigger: 'focus',
html: true,
title: 'Hello! <a href="http://google.com" class="external">google</a>',
placement: 'right',
delay: {
show: 500, // necessary because sliding out may cause wrong position
hide: 500
}
});
}
function hideSearch() {