A very simple jQuery modal inspired by leanModal.js
m4dz / simplemodal Goto Github PK
View Code? Open in Web Editor NEWA very simple jQuery modal inspired by leanModal.js
License: MIT License
A very simple jQuery modal inspired by leanModal.js
License: MIT License
Sur le div ayant la classe "sm-modal" on calcule dynamiquement le margin-top afin de pouvoir centrer la popin verticalement.
Lors de la première ouverture de la popin, le margin-top est correct, par contre si on la réouvre une seconde fois ce n'est plus le cas. C'est sûrement lié à l'issue #3
Lors de l'ouverture d'une popin, on ajoute dans le DOM un div avec la classe "sm-overlay" et un div avec la classe "sm-modal". Si on ferme la popin et si on la réouvre on ajoute de nouveaux ces 2 divs. Du coup on se retrouve avec une duplication à l'infini. Il faudrait supprimer ces 2 divs lors de la fermeture de la popin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.