summaryrefslogtreecommitdiff
path: root/snippets/slideshow.js
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/slideshow.js')
-rw-r--r--snippets/slideshow.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/snippets/slideshow.js b/snippets/slideshow.js
index 6942b29..4ed2ef8 100644
--- a/snippets/slideshow.js
+++ b/snippets/slideshow.js
@@ -51,14 +51,16 @@ function toggle_play() { playing == 1 ? stop() : play() }
function play() {
playing = 1
interval = setInterval(function () { next() }, 3000);
- document.getElementById("play-indicator").className = "fa fa-stop"
+ document.getElementById("play-indicator").title = "Pause slideshow"
+ document.getElementById("play-indicator").innerText = "\u23F8"
hide_controls()
}
function stop() {
playing = 0
clearInterval(interval)
- document.getElementById("play-indicator").className = "fa fa-play"
+ document.getElementById("play-indicator").title = "Play slideshow"
+ document.getElementById("play-indicator").innerText = "\u23F5"
show_controls()
}