public/html/js/classes.js
/**
         * Display the list of classes, ordered by name
         */
Display the list of classes, ordered by name
Display the list of classes ordered by name
function showClassesByAlpha(evt) {
            if (listClassesAlpha.hasClass('hidden')) {
                alphaFilterWrapper.className = '';
                tagFilterWrapper.className = 'hidden';
                listClassesAlpha.removeClass('hidden');
                listClassesTags.addClass('hidden');
                orderByTagButton.removeClass('selectedOrder');
                orderByAlphaButton.addClass('selectedOrder');
                localStorage.orderClassesby = 'alpha';
            }
            if(localStorage.getItem('selectedClass')){
                $.each($('.class'), function(i, classTitle){
                    if($(classTitle).text == localStorage.getItem('selectedClass')){
                            window.scrollTo(0, $(classTitle).offset().top - 50);
                    }
                });
            }
        }
function showClassesByAlpha ( evt ) { if ( listClassesAlpha . hasClass ( 'hidden' ) ) { alphaFilterWrapper . className = '' ; tagFilterWrapper . className = 'hidden' ; listClassesAlpha . removeClass ( 'hidden' ) ; listClassesTags . addClass ( 'hidden' ) ; orderByTagButton . removeClass ( 'selectedOrder' ) ; orderByAlphaButton . addClass ( 'selectedOrder' ) ; localStorage . orderClassesby = 'alpha' ; } if ( localStorage . getItem ( 'selectedClass' ) ) { $ . each ( $ ( '.class' ) , function ( i , classTitle ) { if ( $ ( classTitle ) . text == localStorage . getItem ( 'selectedClass' ) ) { window . scrollTo ( 0 , $ ( classTitle ) . offset ( ) . top - 50 ) ; } } ) ; } }
Display the list of classes, ordered by name
Display the list of classes ordered by name
// if a class has been selected, open the correct list //    if($(categoryTitle).next().is(':hidden')){ //        $(categoryTitle).next().toggle(150); // jump to this class title //$('.classContent').scrollTop($selectedElement.offset().top - 50); //    }