Skip to content

stevenbenner/jquery-powertip

Repository files navigation

PowerTip

PowerTip is a jQuery tooltip plugin with some advanced features like hover intent testing, tooltip queueing, and support for complex data.

This software is licensed under the MIT license.

Release Version NPM Version Test Status

Getting started

  • Download the latest stable release from the PowerTip web site or install jquery-powertip from npm.
  • Add the JavaScript and CSS file references to your web site.
  • Add a title or data-powertip attribute to the elements you want to show tooltips for.
  • Run the powerTip() method on those elements.

Documentation

You can find the documentation for the latest release version on the PowerTip web site. You will find the documentation for the latest in-development version in the doc folder in the GitHub repository.

Building from source

Note

You do not have to build this project to use it. This is only needed if you intend to do development work or release your own version. For typical usage please follow the installation instructions in the documentation linked above. Alternatively, you can find examples of using the source version of PowerTip without any build steps in the html files in the test folder.

You can build your own release version of PowerTip from the source code by using the included task runner commands.

Dependencies

You should have the following software installed on your computer to run the build system:

Instructions

Clone git repo

Clone the git repository to your local system:

git clone https://github.com/stevenbenner/jquery-powertip.git
cd jquery-powertip

Install npm dependencies

First you will need to install the npm dependencies to run the build system. Run the following command to install all project dependencies:

npm install

You only need to do this once.

Build distributale version

Then you can run the following command to build a distributable version of the project with all of the assets included:

npm run build

The built assets will be placed in the dist folder.

Other commands

If you installed GruntJS on your computer then you can run various other commands that are useful for development or debugging.

Command Action
grunt build Run a minimal build (skip docs and zip file)
grunt clean Remove build artifacts
grunt eslint Run the code linter
grunt test Run the test suite

There are many other grunt tasks available as well. You can review the Gruntfile.js file to see the whole list.

Further reading

About

💬 A jQuery plugin that creates hover tooltips.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors 16