Code Monkey home page Code Monkey logo

drooltip.js's Introduction


  ____                   _                   
 (|   \                 | |    o       o     
  |    | ,_    __   __  | |_|_      _     ,  
 _|    |/  |  /  \_/  \_|/  |  |  |/ \_| / \_
(/\___/    |_/\__/ \__/ |__/|_/|_/|__/o|/ \/ 
                                 /|   /|     
                                 \|   \|  
Drooltip.js 	v1.0.2
github.com/prevwong/drooltip.js
Prev Wong	@prevwong 	imprev.co

npm version Code Climate codebeat badge Codacy Badge Support

Overview

Drooltip.js is a lightweight native-js plugin/extension that allows you to create beautiful, customizable and intelligent tooltips, capable of showing anything from simple text, loading dynamic content and loading entire HTML elements!

Installation & Usage

Documentation and Demos are here

Q&A

  • Q: Why did you make this ? A: Twas a boring day.

  • Q: There're already many tooltips plugins out there, what is this for ? A: I just wanted to share my version of tooltips as a contribution to the open-source community.

  • Q: Is this plugin perfect/flawless A: Probably not.

History

Release Description
v1.0.2 Support for IE-11/non-ES6 compliant browsers
v1.0.1 Fixed bugs and issues; Stable Release basically
v1.0.0Ξ² Initial beta release

Feel free to fork it, and contribute to make Drooltip.js even better!

drooltip.js's People

Contributors

prevwong avatar sooxt98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drooltip.js's Issues

Use event delegation

drooltip is currently not usable in a SPA, where HTML is added dynamically after drooltip is initialized.

If you would use a event delegation (e.G. from the body) instead of adding the events on each element this issue would be fixed.

Event Delegation is very easy:

document.querySelector('body').addEventListener("click", function(e) {
	if (e.target.matches(".myTooltip")) {
		// do stuff
	}
});

And don't forget to add a polyfill for element.matches :-) (for IE11)

The ToolTip Hidden Divs Reinit After Ajax Loads

screenshot 9

Hey Man Thank You For Your Awsome Plugin My Qustion Is
Plugin Create Some Thing Like This For Example
.myTooltip_0 To .myTooltip_10
Im Using Ajax For Load New Content And New HTML File
But After Load New HTML File Again Those Divs Are added Again like this
.myTooltip_0 To .myTooltip_10 And Again Start form .myTooltip_0 To .myTooltip_10

Another Issue I Wana Help is, Hovering Tooltips Inside of container when hover each tooltip in the container all of them will be shown and when Mouse Cursor Get out of container tooltips hides

How To Fixed These Issues??

Thanks ^_^

Fails to load on IE11

On IE11, the code does not load. The error is SCRIPT1003: Expected ':' on Line xxxx.

The code it is failing on is:

return {
    url,
    json,
    type
};

If the code is changed to the following, it will work:

return {
    url: url,
    json: json,
    type: type
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.