<!-- START code for delayed popup -->
<!-- In the css code replace IDofButton with the ID of the button that has the popup setup on it -->
<script>
jQuery(document).ready(function() {
setTimeout(function () {
jQuery(".modal.popup.fade").addClass("in");
jQuery(".modal.popup.fade").closest(".page").append( "<div class='modal-backdrop in'></div>" );
}, 5000);
jQuery(document).click(function() {
jQuery(".modal.popup.fade").removeClass("in");
jQuery(".modal-backdrop").removeClass("in").css({"display":"none"});
});
});
</script>
<style>
.popup.in{
display: block !important;
}
#IDofButton{
display: none;
}
</style>
<!-- End code for delayed popup -->