Minor time bar changes, no longer loops
This commit is contained in:
parent
3f43927f97
commit
0cacd7a9f1
1 changed files with 3 additions and 4 deletions
|
@ -70,8 +70,8 @@ module.exports = {
|
|||
if (activity.timestamps) {
|
||||
if (activity.timestamps.start) {
|
||||
if (activity.timestamps.end) {
|
||||
var timeLeft = Math.round((activity.timestamps.end - Date.now()) / 1000)
|
||||
var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000)
|
||||
var timeLeft = ((activity.timestamps.end - Date.now()) / 1000)
|
||||
var totalTime = ((activity.timestamps.end - activity.timestamps.start) / 1000)
|
||||
return `
|
||||
<div class="durationBarStuff">
|
||||
<p style="padding-left: 0;" class="playTimeStart scriptEnabled" data-start="${activity.timestamps.start}" data-end="${activity.timestamps.end}">${timeFormatter((Date.now() - activity.timestamps.start))}</p>
|
||||
|
@ -84,9 +84,8 @@ module.exports = {
|
|||
.lengthBar${index} > div {
|
||||
animation-name: songSlider${index};
|
||||
animation-duration: ${totalTime}s;
|
||||
animation-delay: ${timeLeft - totalTime}s;
|
||||
animation-delay: ${timeLeft - totalTime - 1}s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue