Ok, 감사합니다. 이 코드는 다음과 같이 작동합니다.
$(document).ready(function() {
runCode();
function runCode() {
var uri = "your url to github";
var totalCom = 0;
$.getJSON(uri, function(r) {
for (var i = 0; i < r[0].total; i++) {
totalCom = r[0].total;
}
//count numbers from zero
$({countNum:
$('.row-one-first .number').text()}).animate({countNum: totalCom}, {
duration: 5000,
easing:'linear',
step: function() {
// What todo on every count
$('.row-one-first .number').text(Math.floor(this.countNum));
},
complete: function() {
$('.row-one-first .number').text(this.countNum);
}
});
})
}
setInterval (function() {
runCode();
}, 300000);
});
코드 게시하시기 바랍니다. – lshettyl
http://jsfiddle.net/95pfB/ – Chilibiff
간격을 10 분으로 설정 하시겠습니까? 5 초? 혼란스러워! – lshettyl