https://github.com/e00dan/ktooltip
Simple tooltip library written in 6 hours.
https://github.com/e00dan/ktooltip
Last synced: 2 months ago
JSON representation
Simple tooltip library written in 6 hours.
- Host: GitHub
- URL: https://github.com/e00dan/ktooltip
- Owner: e00dan
- License: mit
- Created: 2016-06-08T14:12:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T14:17:26.000Z (about 10 years ago)
- Last Synced: 2026-01-03T16:28:46.817Z (5 months ago)
- Language: JavaScript
- Homepage: http://kuzirashi.github.io/ktooltip/
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kTooltip
Simple tooltip library written in 6 hours.
[](https://youtu.be/Sc6vRhDxnhM)
## Requirements
Link CSS and JS in your HTML file:
~~~ HTML
~~~
## Usage
### Simple
Add attributes `data-tooltip` and `data-tooltip-content` to desired element for tooltip to work.
~~~ HTML
This is span.
~~~
### Focus
Just switch `data-tooltip` from `text` to `focus`.
~~~ HTML
~~~
### AJAX
Switch `data-tooltip` to `ajax` and use `data-tooltip-api` to provide URL instead of `data-tooltip-content`.
~~~ HTML
AJAX request will be fired on hover
~~~
## License
The MIT License (MIT)
Copyright (c) 2016 Daniel Kmak