Giter VIP home page Giter VIP logo

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

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
};

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)

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.