aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-08-08 14:37:12 +1000
committerSam Potts <me@sampotts.me>2015-08-08 14:37:12 +1000
commit38a206892b4869782cd0391307c7610cfe580286 (patch)
tree06ebcc158057649f4b90163444f42bd455baf9bb /docs/src
parent12a737a49e42b8bdeb45004b2fc95842a44030c4 (diff)
downloadplyr-38a206892b4869782cd0391307c7610cfe580286.tar.lz
plyr-38a206892b4869782cd0391307c7610cfe580286.tar.xz
plyr-38a206892b4869782cd0391307c7610cfe580286.zip
YouTube, Captions and Control improvements
- Controls improvements (Fixes #103) - YouTube bug fixes (Fixes #105) - Internationalization support (Fixes #101) - Captions legibility improvements
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/templates/controls.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/docs/src/templates/controls.html b/docs/src/templates/controls.html
index 47ccbd55..fb82cf0d 100644
--- a/docs/src/templates/controls.html
+++ b/docs/src/templates/controls.html
@@ -40,23 +40,18 @@
</span>
</span>
<span class="player-controls-right">
- <input class="inverted sr-only" id="mute{id}" type="checkbox" data-player="mute">
- <label id="mute{id}" for="mute{id}">
+ <button type="button" data-player="mute">
<svg class="icon-muted"><use xlink:href="#icon-muted"></use></svg>
<svg><use xlink:href="#icon-volume"></use></svg>
<span class="sr-only">Toggle Mute</span>
- </label>
-
+ </button>
<label for="volume{id}" class="sr-only">Volume</label>
<input id="volume{id}" class="player-volume" type="range" min="0" max="10" step="0.5" value="0" data-player="volume">
-
- <input class="sr-only" id="captions{id}" type="checkbox" data-player="captions">
- <label for="captions{id}">
+ <button type="button" data-player="captions">
<svg class="icon-captions-on"><use xlink:href="#icon-captions-on"></use></svg>
<svg><use xlink:href="#icon-captions-off"></use></svg>
<span class="sr-only">Toggle Captions</span>
- </label>
-
+ </button>
<button type="button" data-player="fullscreen">
<svg class="icon-exit-fullscreen"><use xlink:href="#icon-exit-fullscreen"></use></svg>
<svg><use xlink:href="#icon-enter-fullscreen"></use></svg>