American Red Cross Volunteers | Share your volunteer story
'); $(this).find('.arrow').css({ 'left':(preWidth - 12) + 'px' }) }) // ======================================================= // CUSTOM RSF // ======================================================= $('#simple a:contains(" ")').each(function(){ $(this).html($(this).html().split(" ").join("")); }); $('#simple a').each(function(){ var $this = $(this); $this.text( '$' + parseFloat( $this.text().replace('$','').replace(',','') ).toFixed(0).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") ); }) function rsfProgressBar(wrapperId, target){ var elemId = wrapperId ? wrapperId + " " : ""; var total = parseFloat ( $(elemId + '#simple a').text().replace('$', '').replace(/,/g, '') ); var getPercentage = (total / target) * 100; $(elemId + '.rsf-bar-progress').css({ width: getPercentage + '%' }) } // EXAMPLE //rsfProgressBar('#funds-raised', 20000); rsfProgressBar('#national-raised', 200000); }); // OTHER SCRIPTS function isDesktopWidth() { var winDesktopW = $(window).width(); if( winDesktopW >= 1328 ){ return true; } else { return false; } } // CLONE NAV BELOW CUSTOM HEADER /*function addClone() { $('#navigation').clone().appendTo( $('#custom-header') ).addClass('clone') } function removeClone() { $('#custom-header #navigation').remove(); } $(function(){ addClone(); $("#navigation .gf-menu > li.gf-item").each(function () { $(this).hover(function () { $(this).find("ul.gf-submenu").css("display", "block"); }, function(){ $(this).find("ul.gf-submenu").css("display", "none"); }); }); })*/ // Transfer logo to top if mobile function isMobileWidth() { var winW = $(window).width(); if( winW
Lifeline Canbrra
'); $('#top-section').appendTo('#custom-secondary-header > .max'); }) // ACCESSIBILITY $(window).on('load', function(){ setTimeout(function(){ $('.raised-amount table#simple a').attr('aria-label','Raised so far'); $('.raised-amount table#simple').attr('role','presentation'); var targetBlank = $('a[target="_blank"]'); $(targetBlank).attr('aria-label','Open new tab'); },1000) }) $(window).on('load', function(){ setTimeout(function(){ $('#items .horizontalTiledGf-etflb-main').attr({'role':'link', 'tabindex':'0'}); $('#items .horizontalTiledColPosition').attr({'role':'link', 'tabindex':'0'}); $('.loadMore > a.gf-driver-button').attr({'role':'button'}); $('.gf-menu-eventcreator').attr('role','menu'); $('#top-nav > ul').attr('role','menu'); },3000) }) $(function(){ $('svg#gfr-footer-logo').attr({'role':'none'}); })

'); $this.after(countdown); $this.on('input', function() { var textLength = $this.val().length; var charsRemaining = maxChars - textLength; if (charsRemaining