aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-09 00:47:38 +1100
committerSam Potts <me@sampotts.me>2015-03-09 00:47:38 +1100
commit1532f2ab2366965ceab6193df06ba8cd381f4cc3 (patch)
tree617f7a86b5cc52c0723d4ea20e413587855767bb /docs/src
parent5370fc5c836a159365bed595a442b7a886bb6ffa (diff)
downloadplyr-1532f2ab2366965ceab6193df06ba8cd381f4cc3.tar.lz
plyr-1532f2ab2366965ceab6193df06ba8cd381f4cc3.tar.xz
plyr-1532f2ab2366965ceab6193df06ba8cd381f4cc3.zip
Added tooltip option (Fixes #50)
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/js/docs.js3
-rw-r--r--docs/src/templates/controls.html6
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js
index fd988ce3..b977290c 100644
--- a/docs/src/js/docs.js
+++ b/docs/src/js/docs.js
@@ -11,7 +11,8 @@ plyr.setup({
html: templates.controls.render({}),
captions: {
defaultActive: true
- }
+ },
+ tooltips: true
});
// Google analytics
diff --git a/docs/src/templates/controls.html b/docs/src/templates/controls.html
index afe8091b..6d93faa4 100644
--- a/docs/src/templates/controls.html
+++ b/docs/src/templates/controls.html
@@ -16,7 +16,7 @@
</button>
<button type="button" data-player="rewind">
<svg><use xlink:href="#icon-rewind"></use></svg>
- <span class="sr-only">Rewind {seektime} seconds</span>
+ <span class="sr-only">Rewind {seektime} secs</span>
</button>
<button type="button" data-player="play">
<svg><use xlink:href="#icon-play"></use></svg>
@@ -28,7 +28,7 @@
</button>
<button type="button" data-player="fast-forward">
<svg><use xlink:href="#icon-fast-forward"></use></svg>
- <span class="sr-only">Fast forward {seektime} seconds</span>
+ <span class="sr-only">Forward {seektime} secs</span>
</button>
<span class="player-time">
<span class="sr-only">Time</span>
@@ -56,7 +56,7 @@
<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>
- <span class="sr-only">Toggle fullscreen</span>
+ <span class="sr-only">Toggle Fullscreen</span>
</button>
</span>
</div> \ No newline at end of file