FANS

ARIZONA

CALIFORNIA

Florida

Pennsylvania

/*script for smooth scrolling*/ $(document).on('click', 'a[href^="#"]', function (event) { event.preventDefault(); $('html, body').animate({ scrollTop: $($.attr(this, 'href')).offset().top }, 1000); }); /*sort the list of team*/ var activeLanguage = "en"; function sortUL() { var className = document.getElementsByClassName('member-state'); var classnameCount = className.length; var IdStore = new Array(); for(var i = 0; i < classnameCount; i++){ IdStore.push(className[i].id); var mylist = "#" + IdStore[i]; var $ul = $(mylist); $ul.find('li').sort(function(a, b) { var upA = $(a).text().toUpperCase(); var upB = $(b).text().toUpperCase(); return (upA < upB) ? -1 : (upA > upB) ? 1 : 0; }).appendTo($ul.find(".team-list")); } }; $(document).ready(function() { sortUL(); });