Skip to content

Commit

Permalink
Update cwd_card_slider.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dc774 authored Feb 9, 2024
1 parent 770f98e commit ab1c18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/cwd_card_slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jQuery(document).ready(function($) {
// build buttons
var nextprev_html = '';
if (card_count > 1) {
$(viewer_band).before('<div class="pips" aria-hidden="true"></div>').wrap('<div class="mask"></div>');
nextprev_html = '<div class="next-prev" aria-hidden="true"><button class="prev"><span class="sr-only">Previous Slide Set</span><span class="fa fa-angle-left"></span></button><button class="next"><span class="sr-only">Next Slide Set</span><span class="fa fa-angle-right"></span></button></div>';
$(viewer_band).before('<div class="pips"></div>').wrap('<div class="mask"></div>');
nextprev_html = '<div class="next-prev"><button class="prev"><span class="sr-only">Previous Slide Set</span><span class="fa fa-angle-left"></span></button><button class="next"><span class="sr-only">Next Slide Set</span><span class="fa fa-angle-right"></span></button></div>';
$(this).append(nextprev_html);
$(this).find('.next, .prev').click(function(e) {
if ($(this).hasClass('prev')) {
Expand Down

0 comments on commit ab1c18b

Please sign in to comment.