Replace twitter demo with new tweetsearch demo
[profile/ivi/qtdeclarative.git] / examples / demos / tweetsearch / content / tweetsearch.js
1 .pragma library
2
3 function twitterName(str)
4 {
5     var s = str.split("(")
6     return s[0]
7 }
8
9 function realName(str)
10 {
11     var s = str.split("(")
12     return s[1].substring(0, s[1].length-1)
13 }
14
15 function formatDate(date)
16 {
17     var da = new Date(date)
18     return da.toDateString()
19 }
20