Commit 19093b97 authored by Simon Daron's avatar Simon Daron
Browse files

Files modified

parent 6bb795de
......@@ -16,6 +16,7 @@
playlist: [],
html5audioOptions:{class:"hidden", controls:false,preload:true},
classes: "small",
itemClasses: "",
playlistContainer: $('<ol>'),
},
_create: function() {
......@@ -70,7 +71,7 @@
},
// Transform JSON sound object to HTML container for playlist.
_htmlifyJsonSound: function(sound) {
var container = $('<div>');
var container = $('<div>',this.options.itemClasses);
var audio = $('<audio>',this.options.html5audioOptions);
$.each(sound.source,function(k,v){
var source = $('<source>',{src:v,type:k});
......
$(function() {
var $main = $("#Changing");
var $log = $("#userLog");
var $localList = $('#localList').playlist();
var $localList = $('#localList').playlist({itemClasses:'ellipsis'});
doLog = function(aTextToLog, type){
var aLog = $('<div>',{class:"log",html:'<div class='+type+'>'+aTextToLog+'</div>'});
aLog.hide().prependTo($log).show('fast').delay(10000).hide('fast', function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment