-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitter Bootstap Issue #66
Comments
I think that bootstrap takes over the Did you try renaming your classes? Example: <div id="ouibounce-modal">
<div class="underlay"></div>
<div class="ouibounce-modal">
<div class="ouibounce-modal-title">
<h3>This is a OuiBounce modal!</h3>
</div>
<div class="ouibounce-modal-body">
<p>A doge is an elected chief of state lordship, the ruler of the Republic in many of the Italian city states during the medieval and renaissance periods, in the Italian "crowned republics".</p>
<p>The word is from a Venetian word that descends from the Latin dux (as do the English duke and the standard Italian duce and duca), meaning "leader", especially in a military context. The wife of a doge is styled a dogaressa. <a href="https://en.wikipedia.org/wiki/Doge" target="blank">[1]</a></p>
<form>
<input type="text" placeholder="[email protected]">
<input type="submit" value="learn more »">
<p class="form-notice">*this is a fake form</p>
</form>
</div>
<div class="ouibounce-modal-footer">
<p>no thanks</p>
</div>
</div>
</div> |
Thank you Carl! It works! |
Maybe, much easier is do something like this: ouibounce(false, {
callback: function() {
$('#your-modal-id').modal('show');
}
}); |
@scofield-ua solution is nice and easy. |
@muhammedtufekyapan @carlsednaoui the main reason you can't see your element, is for @scofield-ua your solution doesn't work for me. Seems like doesn't reconize $(...) as an element p.s. sorry for my awful english |
Well, I had some issues with Ouibounce & Bootstrap's modal. Indeed, with only ouibounce(false, {
callback: function() {
$('#your-modal-id').modal('show');
}
}); The document.addEventListener('DOMContentLoaded', function(){
var _ouibounce = ouibounce(false, {
aggressive: true,
timer: 0,
callback: function() {
jQuery('#your-modal-id').modal('show');
}
});
}); Found the code here #92 Hop it helps! Anyway @carlsednaoui that's a very nice plugin you made there, great great job. 👍 |
Amazing, thanks for this @DaPo . document.addEventListener('DOMContentLoaded', function(){
var _ouibounce = ouibounce(false, {
aggressive: true,
timer: 0,
callback: function() {
jQuery('#your-modal-id').modal('show');
}
});
$('body').on('click', function() {
$('#ouibounce-modal').hide();
});
$('#ouibounce-modal .modal-footer').on('click', function() {
$('#ouibounce-modal').hide();
});
$('#ouibounce-modal .modal').on('click', function(e) {
e.stopPropagation();
}); |
@EssiemLtd hello, I'm so so sorry, it's quite a while now, I barely remember what ouibounce does and I don't have much time to try to sort something out for you. But you maybe need to use modal's event first and search for "javascript detect click outside element" or something like this. Have fun! |
Hi,
We prepare a page and use ouibounce. We make every detail just same as examples. Modal open but we can't see. (We test it, when we inactive twitter bootstrap it work but when we use twitter bootstrap it won't work)
How can we fix that?
The text was updated successfully, but these errors were encountered: