|
|
@@ -194,19 +194,23 @@ $(function(){
|
|
|
/* 핫딜 countDown */
|
|
|
function hotdealTimer() {
|
|
|
var endTime = new Date(socialInfo.socialEddt); // 남은시간 지정
|
|
|
-
|
|
|
+ alert("endTime1 :" + endTime);
|
|
|
endTime = (Date.parse(endTime) / 1000);
|
|
|
-
|
|
|
+ alert("endTime2 :" + endTime);
|
|
|
var now = new Date();
|
|
|
+ alert("now1 :" + now);
|
|
|
now = (Date.parse(now) / 1000);
|
|
|
-
|
|
|
+ alert("now2 :" + now);
|
|
|
var timeLeft = endTime - now;
|
|
|
-
|
|
|
- var days = Math.floor(timeLeft / 86400);
|
|
|
+ alert("timeLeft :" + timeLeft);
|
|
|
+ var days = Math.floor(timeLeft / 86400);
|
|
|
+ alert("days :" + days);
|
|
|
var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
|
|
|
+ alert("hours :" + hours);
|
|
|
var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
|
|
|
+ alert("minutes :" + minutes);
|
|
|
var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
|
|
|
-
|
|
|
+
|
|
|
if (hours < '10') { hours = '0' + hours; }
|
|
|
if (minutes < '10') { minutes = '0' + minutes; }
|
|
|
if (seconds < '10') { seconds = '0' + seconds; }
|
|
|
@@ -217,6 +221,7 @@ $(function(){
|
|
|
$('#h-seconds').html(seconds);
|
|
|
}
|
|
|
setInterval(function() { hotdealTimer(); }, 1000);
|
|
|
+
|
|
|
/* countDown */
|
|
|
});
|
|
|
</script>
|