function CanstructionCommon() {
if ( typeof jQuery != 'undefined' ) {
jQuery( document ).ready(function( $ ) {
/* Add logo to header */
jQuery("h1").before('
');
/* Custom Red CTA Nav */
jQuery('.field--name-field-rcta-link .field__item a:contains("▼")').parent('.field__item').addClass('active');
jQuery('.field--name-field-rcta-link .field__item.active a, #menuFooter a.active').on("click", function() {
event.stopPropagation();
return false;
});
/* Header Updates */
jQuery("#block-main ul.menu li.menu-item").remove();
/*jQuery(".header__logo a").replaceWith(function() { return jQuery(this).contents(); });*/
jQuery(".header__logo a").attr("href", "/canstruction");
jQuery("#block-ancillary ul.menu li.menu-item").remove();
jQuery("button.open-main-menu").after('
');
jQuery(".header__menu-button.small-only > span.visuallyhidden").removeClass("visuallyhidden").html("Menu");
jQuery("#customcss").closest(".field__item:not(.field--name-field-wysiwyg-body)").addClass("footer");
if( jQuery(".region-hero article.view-mode-hero picture img").length ) {
jQuery(".text-wrapper").addClass("heroImg");
}
/* Configure Side Menu */
var canPages = [
["Home", "\/canstruction"],
["Teams", "\/canstruction-teams"],
["Volunteer", "\/canstruction-volunteer"],
["Sponsor", "\/canstruction-sponsor"],
["Donations", "\/canstruction-donations"]
];
/* Build Menus */
var pathname = window.location.pathname,
sideMenu = '',
headerMenu = '',
footerMenu = '',
pageURL = '',
pageTitle = '';
for( var i = 0; i < canPages.length; i++ ) {
pageURL = canPages[i][1];
pageTitle = canPages[i][0];
sideMenu += '';
headerMenu += '';
footerMenu += '';
}
/* Attach Side Menu */
jQuery("#block-main ul.menu").append(sideMenu);
/* Attach Header Menu */
jQuery("#headerMenu").html('');
/* Attach Footer */
jQuery("#customcss").prepend('Copyright © 2026 Waubonsee Community College
');
$.noConflict();
});
} else {
setTimeout(function() { CanstructionCommon() }, 100);
}
}
window.onload = CanstructionCommon();