minor fixes

This commit is contained in:
Ilya Kantor 2019-11-28 13:56:48 +03:00
parent 2af74029e2
commit ce8e68f21c
5 changed files with 15 additions and 12 deletions

View file

@ -22,8 +22,10 @@ In this task we assume that all elements with `data-tooltip` have only text insi
Details:
- The distance between the element and the tooltip should be `5px`.
- The tooltip should be centered relative to the element, if possible.
- The tooltip should not cross window edges. Normally it should be above the element, but if the element is at the page top and there's no space for the tooltip, then below it.
- The tooltip is given in the `data-tooltip` attribute. It can be arbitrary HTML.
- The tooltip content is given in the `data-tooltip` attribute. It can be arbitrary HTML.
You'll need two events here:
- `mouseover` triggers when a pointer comes over an element.