summaryrefslogtreecommitdiff
path: root/snippets/slideshow.js
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2022-08-24 15:59:27 +0200
committerpdp8 <pdp8@pdp8.info>2022-08-24 15:59:27 +0200
commit75fcb829a96307b7123b5e4cc1a15cc7097f5001 (patch)
tree180802254ac904b5a4955fef9687d2998a496ee0 /snippets/slideshow.js
parentbfb3d38aba8649e4ad4e3ec3d23aa8152621d088 (diff)
license, css and javascript fixes
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()
}