Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "hint", | ||
"description": "Awesome tooltips at your fingertips", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/bevacqua/hint", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,3 +0,3 @@ | ||
# v1.0.0 Take a Hint | ||
# v1.0.2 Take a Hint | ||
- Initial Public Release |
{ | ||
"name": "hint", | ||
"description": "Awesome tooltips at your fingertips", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/bevacqua/hint", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -21,20 +21,8 @@ # hint | ||
Just call `hint.all` on an HTML DOM node. It'll find any nodes with a `data-hint` attribute and work its magic! | ||
Just give your elements a nice tooltip in HTML. When hovered, the hint will appear. | ||
```js | ||
hint.all(document.body); | ||
<span data-hint='foobar'>Foo Bar</span> | ||
``` | ||
You can also do it on just one element. | ||
```js | ||
hint(elem); | ||
``` | ||
Turn them off using `hint.off`. | ||
```js | ||
hint.off(elem); | ||
``` | ||
You'll get a nice little tooltip. Remember to include the CSS in your styles! | ||
@@ -44,3 +32,3 @@ | ||
If you want to make the tooltip right-aligned, use the `ht-hint-right` class instead. | ||
If you want to use the `:before` pseudo-selector, use the `[data-hint-before]` class instead. The hint has a `z-index` of `5000`. | ||
@@ -51,2 +39,2 @@ # License | ||
[1]: http://i.imgur.com/ZWpAHu1.png | ||
[1]: http://i.imgur.com/EFP5j4E.png |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8944
162
38