Notice: Undefined offset: 1 in /home/content/11/9400511/html/core/controller/articlesController.php on line 59

Notice: Undefined offset: 2 in /home/content/11/9400511/html/core/controller/articlesController.php on line 59

Warning: mktime() expects parameter 6 to be long, string given in /home/content/11/9400511/html/core/controller/articlesController.php on line 59
FBC Herndon | articles | display

FIRST BAPTIST CHURCH OF HERNDON

function centerModal() { $(this).css('display', 'block'); var $dialog = $(this).find(".modal-dialog"); var offset = ($(window).height() - $dialog.height()) / 2; // Center modal vertically in window $dialog.css("margin-top", offset); } $('.modal').on('show.bs.modal', centerModal); $(window).on("resize", function () { $('.modal:visible').each(centerModal); });