diff --git a/content/static/script/play-resources.js b/content/static/script/play-resources.js new file mode 100644 index 000000000..94224ac25 --- /dev/null +++ b/content/static/script/play-resources.js @@ -0,0 +1,123 @@ +function addButton(container, res) { + var button = $('▶ Play'); + button.click(function() { + button.remove(); + + addPlayer(container, res); + }); + container.append(button); +} + +function addPlayer(container, res) { + var types = res.map(function(res) { + return res.type; + }); + /* Can we have