1805 Constitution of Haiti
Posted on August 23, 2011
Source: Webster Edu
Commencement ceremonies on Webster University's main campus will be streamed live
from the ticket website, beginning at 9 a.m. CST on Saturday, May 11 . Online registration is required for viewing.
Close
$(document).ready(function() {
function normalizeText(text) {
return text.replace(/\s+/g, ' ').trim().toLowerCase();
}
function scrollToElement(element, callback) {
var execCallback = function() {
if(callback) callback();
};
if (element.length) {
var blockPosition = 'center';
if($(`a[aria-controls=${element[0].id}]`).length){
var ele = $(`a[aria-controls=${element[0].id}]`)[0];
setTimeout(function() {
ele.scrollIntoView({ behavior: "smooth", block: blockPosition });
execCallback();
}, 150);
} else{
setTimeout(function() {
element[0].scrollIntoView({ behavior: "smooth", block: blockPosition });
execCallback();
}, 150);
}
} else {
execCallback();
}
}
function openTab(tabId) {
$('.tab-pane').each(function() {
$(this).removeClass('active show').attr('aria-selected', 'false');
});
$(tabId).addClass('active show').attr('aria-selected', 'true');
$('.nav-link').each(function() {
$(this).removeClass('active').attr('aria-selected', 'false');
});
$('a[href="' + tabId + '"]').addClass('active').attr('aria-selected', 'true');
}
function toggleAccordionAndScroll($target, $accordionButton) {
if ($accordionButton.length && !$accordionButton.closest('.collapse').hasClass('show')) {
$accordionButton.click(); // Open the accordion
// Increase delay if accordion is being opened to account for animation
setTimeout(function() { scrollToElement($target); }, 400);
} else {
scrollToElement($target);
}
}
function handleHashChange() {
var hash = window.location.hash.substring(1); // Remove the # symbol
var normalizedHash = normalizeText(decodeURIComponent(hash));
var found = false;
$('a.nav-link').each(function() {
var $link = $(this);
var linkText = normalizeText($link.text());
if (linkText === normalizedHash) {
openTab($link.attr('href'));
found = true;
return false; // Break the loop
}
});
if (!found) {
var $target = $('#' + hash);
if ($target.length === 0) {
$target = $(`[name='${hash}']`);
}
if ($target.length) {
var $accordionButton = $target.closest('.card-accordion').find('.card-accordion-button');
toggleAccordionAndScroll($target, $accordionButton);
}
}
}
$(window).on('hashchange', handleHashChange);
handleHashChange();
});
if(document.getElementById("de") != null && document.getElementById("directedit")) {
var link = document.getElementById("de").parentNode.innerHTML;
document.getElementById("de").parentNode.innerHTML = "";
document.getElementById("directedit").innerHTML = link.replace(/^\s+|\s+$/gm,'');
}