Skip to content

Instantly share code, notes, and snippets.

@idealhack
Created May 26, 2014 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idealhack/c680bd5c374e3376cab1 to your computer and use it in GitHub Desktop.
Save idealhack/c680bd5c374e3376cab1 to your computer and use it in GitHub Desktop.
var number = 11568895
var string = number.toString()
var now = []
for (var i = 0; i < string.length; i++) {
now.push(string.substr(i, 1))
}
html = ' \
<dd>'
+ now[0] +
'</dd><dd>'
+ now[1] +
'</dd><dt class="spid"></dt><dd>'
+ now[2] +
'</dd><dd>'
+ now[3] +
'</dd><dd>'
+ now[4] +
'</dd><dt class="spid"></dt><dd>'
+ now[5] +
'</dd><dd>'
+ now[6] +
'</dd><dd>'
+ now[7] +
'</dd><dt>次下载</dt> \
'
var count = document.getElementById('count')
count.innerHTML = html
var nums = count.getElementsByTagName('dd')
for (var i = 0; i < nums.length; i++) {
nums[7].classList.add('animated')
nums[7].classList.add('flipInX')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment