Skip to content

Commit

Permalink
Adjust js
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Mar 26, 2024
1 parent a5c3919 commit fbafdae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/js/chem_h_subtheme.behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
});

// Heading change for the halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title h2').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title h3').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title h4').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title .su-font-splash').contents().unwrap().wrap('<h1/>');
const halfpillBannerHeadings = $('.chemh-wrapper--banner-halfpill-title h2, .chemh-wrapper--banner-halfpill-title h3, .chemh-wrapper--banner-halfpill-title h4, .chemh-wrapper--banner-halfpill-title .su-font-splash');

$(halfpillBannerHeadings).each(function(index, element) {
$(this).contents().unwrap().wrap('<h1/>');
});

// Bckground color needed on only the Halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title').parents().find('.su-page-banner').addClass('su-page-banner--title');
Expand Down

0 comments on commit fbafdae

Please sign in to comment.