npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tehsurfer/chariot-tooltips

v1.0.7

Published

A JavaScript library for creating beautiful in product tutorials

Downloads

3

Readme

example image

Chariot

Walkthroughs so easy, you might as well be flying in a chariot.

A Javascript library for creating step-by-step tooltip tutorials, using a background overlay to bring focus to the elements you care about.

Demo

Visit the live demo.

Motivation

Tooltips are better at drawing focus to highlighted elements on a website when the background is dimmed out.

Existing tooltip overlay solutions don't use overlay backgrounds, or if they do, they fail to consider when parent containers already have the CSS z-index property set. (A child element's z-index cannot override it's parent's z-index).

Features

  • Programmatic API and lifecycle callbacks
  • Overlay obscures the background, and your key elements are cloned over it
  • z-index is taken care of
  • Tooltips are animated into view
  • Browser support includes every sane browser and IE9+

Usage

chariot.js works in global, CommonJS and AMD contexts.

Visit the demo page for usage examples.

API

If you're running the project locally, you can view the JSDoc-formatted documentation at http://localhost:8080/docs/global.html.

Or go to the example site: http://chariot.zendesk.com/docs

Development

Checkout the development branch. git checkout development

Install node packages.

yarn install # if you use yarn, otherwise
npm install

Install the gulp cli.

npm install -g gulp

To run a webserver:

gulp connect

This will start a simple server that serves index.html at http://localhost:8080/example/index.html, and loads chariot.js onto the page. The task will also watch your changes and reloads the page as the files are updated.

Run the following style-checker before pushing your branch.

gulp style

To automatically fix the style errors:

gulp style-fix

To update the generated docs:

gulp js-doc

Testing

Command Line

To run test in command line, run:

gulp test

Browser

If you want to test the same test suite in multiple browsers, run:

gulp testem

The browsers to test can be configured in testem.yml, currently it is configured to test in all major browsers (Firefox, Safari, Chrome) and PhantomJS.

Build

Run the following to build chariot.js into thd /dist directory.

gulp

Do not check in the dist directory. Release on github will contain the tarballs with compiled js/css.

Release

When you have merge in all your changes from your branch. Run the following IN MASTER:

gulp release

This gulp task will

  1. Bump version in package.json, bower.json
  2. Auto-generate documentation with js-doc
  3. Package release into the release/ folder
  4. Commit the version bump changes in package.json, bower.json
  5. Push the bump changes
  6. Tag with the new version

After releasing, update the relevant files in your project which uses ChariotJS. Update version in bower/npm, or copy release/chariot.[min.]js, release/chariot.[min.]css into your project's vendor/ folder.

Copyright and License

Copyright 2016, Zendesk Inc. Licensed under the Apache License Version 2.0, http://www.apache.org/licenses/LICENSE-2.0