scottopolis / popup-zen Goto Github PK
View Code? Open in Web Editor NEWPopup Zen
Home Page: https://getpopupzen.com
License: GNU General Public License v3.0
Popup Zen
Home Page: https://getpopupzen.com
License: GNU General Public License v3.0
I would love to use the plugin to promote content that doesn't require email signup. So instead of opening the email/name input fields, the "Learn More" button would actually take users to a different URL.
This requires the following changes:
Would this be something valuable to the users? Happy to open a pull request with the suggested implementation.
When a visitor closes a popup, the pzen-expanded
class is removed, and it defaults to these styles:
.popup-zen-box {
opacity: 0;
position: fixed;
z-index: 99997;
width: 100%;
max-width: 325px;
overflow: auto;
...
}
Unfortunately, you can still interact with an element that has opacity: 0
. I noticed it because our links are clickable even after the popup has been closed.
The box would need to have a display: none
applied, moved offscreen, or removed from the DOM entirely.
Also, if someone closes the popup and then refreshes the screen, the popup is still hidden (opacity: 0), but it is present in the DOM. I think a better solution would be to check for the "hide" cookie before outputting the markup.
--
I'm happy to help with a fix for this if you're open to pull requests, but would need to know if there's any reason you're currently going with the current method. I.e., Would a popup that has been closed ever be activated at a later time in the same session (and therefore need the markup to be available)?
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.