summaryrefslogtreecommitdiffhomepage
path: root/derelict.js
diff options
context:
space:
mode:
Diffstat (limited to 'derelict.js')
-rw-r--r--derelict.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/derelict.js b/derelict.js
index 1484c55..bc6e17e 100644
--- a/derelict.js
+++ b/derelict.js
@@ -184,18 +184,21 @@ function processBattle({battle, renderer, renderer2d, container, toolbar, skybox
const bottomBar = document.createElement("div")
const seekbar = document.createElement("div")
const progress = document.createElement("div")
+ const tip = document.createElement("div")
const play = document.createElement("button")
bottomBar.classList.add("bottom-bar")
seekbar.classList.add("seekbar")
seekbar.draggable = true
progress.classList.add("progress")
progress.style.width = "0%"
+ tip.classList.add("tip")
play.innerText = "Play"
container.appendChild(bottomBar)
bottomBar.appendChild(play)
bottomBar.appendChild(seekbar)
seekbar.appendChild(progress)
+ progress.appendChild(tip)
let current = start
let isPlaying = false