aboutsummaryrefslogtreecommitdiffstats
path: root/libretube-theme/static
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-04-09 18:57:09 -0500
committerJesús <heckyel@hyperbola.info>2019-04-09 18:57:09 -0500
commit50ea2c34920dfad25cd62715a419aa9f857900a0 (patch)
tree10e59731008feb3dbc65d497b5ba3f76bb13946e /libretube-theme/static
parent765d3173de9de48c8ffe2d2067a5ef744817b3ea (diff)
downloadlibretube-50ea2c34920dfad25cd62715a419aa9f857900a0.tar.lz
libretube-50ea2c34920dfad25cd62715a419aa9f857900a0.tar.xz
libretube-50ea2c34920dfad25cd62715a419aa9f857900a0.zip
added button download
Diffstat (limited to 'libretube-theme/static')
-rw-r--r--libretube-theme/static/js/play.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/libretube-theme/static/js/play.js b/libretube-theme/static/js/play.js
index b94d3e0..a787c72 100644
--- a/libretube-theme/static/js/play.js
+++ b/libretube-theme/static/js/play.js
@@ -1,3 +1,14 @@
document.addEventListener('DOMContentLoaded', () => {
- const player = new Plyr(document.getElementById('player-ply'));
+ const player = new Plyr(document.getElementById('player-ply'), {
+ controls: [
+ 'play',
+ 'progress',
+ 'current-time',
+ 'mute',
+ 'volume',
+ 'captions',
+ 'settings',
+ 'download'
+ ]
+ });
});