seahorsepip / jpopup Goto Github PK
View Code? Open in Web Editor NEWPopup function in jQuery
License: MIT License
Popup function in jQuery
License: MIT License
I think the z-index should be ~1500 to start off. The one in bootstrap is 1040.
I have a z-index of 180 on a relatively positioned navigation bar (becomes fixed with 200 z-index later on) and it overlays the background.
It doesn't necessarily need to be that high, but 0 is most likely insufficient in a lot of cases.
With 1500 it does as expected (although it may be a little large of a number respectively)
I was taking a look over the included css file and I noticed a few class redundancies.
https://github.com/seahorsepip/jPopup/blob/master/css/jpopup.css#L224-L227
When the popup is activated it currently adds the styling
position: fixed;
top: 0px;
width: 100%;
height: 100%;
on the HTML tag. This causes you to shoot back up to the top of the page.
I'd like to propose simply adding:
overflow: hidden;
to avoid this. May not be completely straightforward thought as I haven't tested this theory but I do something similar with mobile navigation on my personal site.
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.