oncebot / popbox.js Goto Github PK
View Code? Open in Web Editor NEWA tiny and simple stackable modal plugin for web apps
License: MIT License
A tiny and simple stackable modal plugin for web apps
License: MIT License
Hi there,
Do you have any plans to make this a npm/yarn package?
Hi, the e.preventDefault();
on line 45 of popbox.js, prevents events such as submit()
from jQuery to be fired. I'm not sure why it is there in the first place, but had no other solution to remove it from the code.
Is it currently possible to initialize new popups dynamically loaded via ajax without creating a new instance?
When I do
<script type="text/javascript">
var popbox = new Popbox({
blur:true,
overlay:true,
});
</script>
again the plugin is initialized twice -> all event handlers will execute multiple times instead of just once so I need to unbind all of them.
I searched in the code but I wasn't able to spot something useful, do I need to fork it and include the feature on my own?
This modal plugin is awesome but I am blocked with 1 issue. I can't toggle checkbox inside this popbox. If checked it can not be unchecked and if unchecked I can not make it checked.
<div class="popbox" data-popbox-id="manageGroupModalConfirm">
<div class="popbox-content bg-white">
<div class="modal-body">
<input type="checkbox">
<div class="custom-control custom-checkbox">
<label class="custom-control-label" for="manageGroupDontShow">Don’t show this message again</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-popbox-close="manageGroupModalConfirm">Ok</button>
</div>
</div>
</div>
Hello,
I have some youtube video playing inside a popbox modal. I want to pause the video when closing the modal.
I'm trying to listen to event popbox_closing like so :
var popbox = new Popbox(); popbox.addEventListener('popbox_closing', function () { video.pause(); }, false);
But it's not working :
popbox.addEventListener is not a function
What should I do ?
Thanks
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.