...
|
...
|
@@ -5,8 +5,8 @@ |
|
|
<title>Insert title here</title>
|
|
|
</head>
|
|
|
<body>
|
|
|
<input style="display: none" id="startTime"/>
|
|
|
<input style="display: none" id="endTime"/>
|
|
|
<input style="display: none" id="startTime" type="text"/>
|
|
|
<input style="display: none" id="endTime" type="text"/>
|
|
|
|
|
|
<ul>
|
|
|
<li>
|
...
|
...
|
@@ -33,9 +33,14 @@ |
|
|
{
|
|
|
var endTime = $('#endTime').val();
|
|
|
var startTime = $('#startTime').val();
|
|
|
var miniteVar = parseInt((endTime - startTime) / 60);
|
|
|
var secondVar = parseInt((endTime - startTime) % 60);
|
|
|
totalVar = miniteVar + '分' + secondVar + '秒';
|
|
|
if (endTime - startTime > 60) {
|
|
|
var minuteVar = parseInt((endTime - startTime) / 60);
|
|
|
totalVar = minuteVar + '分' + secondVar + '秒';
|
|
|
} else {
|
|
|
totalVar = secondVar + '秒';
|
|
|
}
|
|
|
|
|
|
c=0;
|
|
|
setTimeout("document.getElementById('total').value=totalVar", 0);
|
|
|
clearTimeout(t);
|
...
|
...
|
|