From 75fcb829a96307b7123b5e4cc1a15cc7097f5001 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Wed, 24 Aug 2022 15:59:27 +0200 Subject: license, css and javascript fixes --- snippets/slideshow.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'snippets/slideshow.js') 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() } -- cgit v1.2.3