Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hint

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hint - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc