From 6f91cd5ad36dc52dcd540bbd93ce139d77a51fe2 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 9 Dec 2013 17:50:52 +0000 Subject: [PATCH] Make scrubber appear only when playing or paused. --- public/views/transport.ejs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/views/transport.ejs b/public/views/transport.ejs index 08b556f..3b9c713 100644 --- a/public/views/transport.ejs +++ b/public/views/transport.ejs @@ -1,11 +1,11 @@ -<% if (status.attr('time')) { %> -
-
<%= formatLength(status.attr('time')[0]) %>
-
<%= formatLength(status.attr('time')[1]) %>
-
-
+<% if (status.attr('state') == 'play' || status.attr('state') == 'pause') { %> +
+
<%= formatLength(status.attr('time')[0]) %>
+
-<%= formatLength(status.attr('time')[1] - status.attr('time')[0]) %>
+
+
+
-
<% } %>