Skip to content

Commit

Permalink
is value attr is 'played' use a ul for song history
Browse files Browse the repository at this point in the history
  • Loading branch information
John White committed Jan 18, 2013
1 parent 92f9427 commit 328fa98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion easySetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
return;
}
//if a value has been passed in the url then show that value wherever the script was inserted
opt.value && $script.after('<p data-shoutcast-value="'+opt.value+'"></p>');
opt.value && (function(){
//if value is played then add a ul otherwise add a p
opt.value === 'played' ? $script.after('<ul id="played"></ul>') : $script.after('<p data-shoutcast-value="'+opt.value+'"></p>');
}());

opt.playedInterval = opt.playedInterval || 30000;
opt.statsInterval = opt.statsInterval || 5000;
Expand Down
2 changes: 1 addition & 1 deletion jquery.shoutcast.easy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 328fa98

Please sign in to comment.