{"size": 1884, "ext": "js", "max_stars_repo_path": "static/js/player.js", "max_stars_repo_name": "aoldoni/personal-blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "static/js/player.js", "max_issues_repo_name": "aoldoni/personal-blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/js/player.js", "max_forks_repo_name": "aoldoni/personal-blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 45.9512195122, "max_line_length": 89, "alphanum_fraction": 0.5382165605}
    /*
        Initializes the player
    */
    $(document).ready(function(){
        /*
            Ensure that on mouseover, CSS styles don't get messed up for active songs.
        */
        jQuery('.song').on('mouseover', function(){
            jQuery(this).css('background-color', '#00A0FF');
            jQuery(this).find('.song-meta-data .song-title').css('color', '#FFFFFF');
            jQuery(this).find('.song-meta-data .song-artist').css('color', '#FFFFFF');
            
            if( !jQuery(this).hasClass('amplitude-active-song-container') ){
                jQuery(this).find('.play-button-container').css('display', 'block');
            }
            
            jQuery(this).find('img.bandcamp-grey').css('display', 'none');
            jQuery(this).find('img.bandcamp-white').css('display', 'block');
            jQuery(this).find('.song-duration').css('color', '#FFFFFF');
        });

        /*
            Ensure that on mouseout, CSS styles don't get messed up for active songs.
        */
        jQuery('.song').on('mouseout', function(){
            jQuery(this).css('background-color', '#FFFFFF');
            jQuery(this).find('.song-meta-data .song-title').css('color', '#272726');
            jQuery(this).find('.song-meta-data .song-artist').css('color', '#607D8B');
            jQuery(this).find('.play-button-container').css('display', 'none');
            jQuery(this).find('img.bandcamp-grey').css('display', 'block');
            jQuery(this).find('img.bandcamp-white').css('display', 'none');
            jQuery(this).find('.song-duration').css('color', '#607D8B');
        });

        /*
            Show and hide the play button container on the song when the song is clicked.
        */
        jQuery('.song').on('click', function(){
            jQuery(this).find('.play-button-container').css('display', 'none');
        });
    });