Skip to content

Instantly share code, notes, and snippets.

@mataspetrikas
Created May 23, 2011 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mataspetrikas/986383 to your computer and use it in GitHub Desktop.
Save mataspetrikas/986383 to your computer and use it in GitHub Desktop.
show additional titile in the custom player
append this to your script:
// update additional title
$(document).bind('onPlayerTrackSwitch.scPlayer', function(event, track) {
var $player = $(event.target);
$('.sc-inline-title', $player).remove();
$('<p class="sc-inline-title">' + track.title +'</p>').appendTo($('.sc-scrubber', $player));
});
or hack the sc-player directly (will be overwritten with the next update)
// put this script inside of the updateTrackInfo
// update additional title
$('.sc-scrubber', $player).each(function(index) {
$('.sc-inline-title', this).remove();
$('<p class="sc-inline-title">' + track.title +'</p>').appendTo(this);
});
@rdh3t
Copy link

rdh3t commented May 24, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment