This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elapse = true; | |
var element = $('.html_element'); | |
var template = element.data('template'); | |
var time = new Date(element.data('date') * 1000); | |
if (elapse){ | |
var finishDate = new Date().getTime(); | |
} else { | |
var finishDate = time.getFullYear() + '/' + (time.getMonth() + 1) + '/' + time.getDate(); | |
} |