
HOW TO CHANGE THE COLOR OF YOUR AUDIO PLAYERS
Please note that you may need additional styling to match your theme. Also, this may not work properly with appended posts (e.g. posts that show up when you enable infinite/endless scrolling)
Look in your theme HTML and look for the audio player embed. It should look like {AudioPlayer}, {AudioPlayerWhite}, {AudioPlayerGrey}, or {AudioPlayerBlack}.
Replace that code with:
<div class="audio_box" id="{PostID}">{AudioPlayerWhite}</div>
Put this code right before </body>:
<script type="text/javascript">
$(function () {
$(".audio_box").each(function () {
var d = $(this).attr("id"),
e = $(this);
$.ajax({
url: "http://" + {Name} + ".tumblr.com/api/read/json?id=" + d,
dataType: "jsonp",
timeout: 5E4,
success: function (d) {
d = d.posts[0]["audio-player"].replace("FFFFFF", "XXXXXX");
e.html('<div class="audio_player">' + d + "</div>")
}
})
});
});
</script>
Replace XXXXXX with the hex code of your desired color.
Want to learn how to make this awesome widget? Click on the image to be taken to a tutorial on how to put everything together on your desktop.
- Compatible with Mac OS X 10.6.8+
- Requires GeekTool, iCalBuddy, and a Gmail account (read the tutorial for details)
I hope you find this tutorial useful!Please reblog this post when referring to the tutorial. You may link either to this post or to the original tutorial but do not copy the tutorial or host the files on your own site.
Want to learn how to make this awesome widget? Click on the image to be taken to a tutorial on how to put everything together on your desktop.
Please reblog this post when referring to the tutorial. You may link either to this post or to the original tutorial but do not copy the tutorial or host the files on your own site.