async function anonymous(__self,scope ) { with (scope) { __self.result = () => { const counter = document.querySelector('#genki-counter') const speed = 200 let initValue = Math.ceil((Math.ceil(Date.now() / 1000) - 1738087900) / 3) + 5383123 const animate = () => { const value = +initValue const data = +counter.innerText const time = value / speed if (data < value) { counter.innerText = Math.ceil(data + time) setTimeout(animate, 1) } else { counter.innerText = new Intl.NumberFormat('ja-JP').format(value) } } animate() } }; __self.finished = true; return __self.result; }