Display tweet index in CoffeeScript example.

1.2
rgieseke 2011-05-11 16:52:57 +02:00
parent cd9e3d9647
commit c585107e38
1 changed files with 2 additions and 1 deletions

View File

@ -3,5 +3,6 @@ if phantom.state.length == 0
phantom.open 'http://mobile.twitter.com/sencha'
else
list = document.querySelectorAll 'span.status'
console.log i.innerHTML.replace(/<.*?>/g, '') for i in list
for elem, index in list
console.log((index + 1) + ': ' + elem.innerHTML.replace(/<.*?>/g, ''))
phantom.exit()