Merge remote-tracking branch 'airsonic/pr/907'
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
<html><head>
|
<html><head>
|
||||||
<%@ include file="head.jsp" %>
|
<%@ include file="head.jsp" %>
|
||||||
<%@ include file="jquery.jsp" %>
|
<%@ include file="jquery.jsp" %>
|
||||||
<script type="text/javascript" src="<c:url value="/script/moment-2.18.1.min.js"/>"></script>
|
|
||||||
<link type="text/css" rel="stylesheet" href="<c:url value="/script/webfx/luna.css"/>">
|
<link type="text/css" rel="stylesheet" href="<c:url value="/script/webfx/luna.css"/>">
|
||||||
<script type="text/javascript" src="<c:url value="/script/scripts-2.0.js"/>"></script>
|
<script type="text/javascript" src="<c:url value="/script/scripts-2.0.js"/>"></script>
|
||||||
<script type="text/javascript" src="<c:url value="/dwr/interface/nowPlayingService.js"/>"></script>
|
<script type="text/javascript" src="<c:url value="/dwr/interface/nowPlayingService.js"/>"></script>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -68,13 +68,10 @@ function updateJavaJukeboxPlayerControlBar(song){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function songTimeAsString(timeInSeconds) {
|
function songTimeAsString(timeInSeconds) {
|
||||||
var m = moment.duration(timeInSeconds, 'seconds');
|
var minutes = Math.floor(timeInSeconds / 60);
|
||||||
var seconds = m.seconds();
|
var seconds = timeInSeconds - minutes * 60;
|
||||||
var secondsAsString = seconds;
|
|
||||||
if (seconds < 10) {
|
return minutes + ":" + ("00" + seconds).slice(-2);
|
||||||
secondsAsString = "0" + seconds;
|
|
||||||
}
|
|
||||||
return m.minutes() + ":" + secondsAsString;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function newSongPlaying(song) {
|
function newSongPlaying(song) {
|
||||||
|
|||||||
Reference in New Issue
Block a user