| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Thu, 15 Dec 2011 18:42:18 +0100 | |
| changeset 416 | 49ff61b8baf6 |
| parent 415 | 593250f3a286 |
| child 420 | eb7c2cff1816 |
| permissions | -rw-r--r-- |
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
1 |
var AVATARWIDTH = 35, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
2 |
COLUMNWIDTH = 2, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
3 |
COLUMNHEIGHT = 420, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
4 |
THRESHOLD = 24, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
5 |
DROPCOUNT = 12; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
6 |
|
| 414 | 7 |
var swTw = { |
8 |
"keyword" : "#enmi", |
|
9 |
"columns_words" : [ |
|
10 |
"confiance", |
|
11 |
"croyance", |
|
12 |
"crédit", |
|
13 |
"trace", |
|
14 |
"foi", |
|
15 |
"risque", |
|
16 |
"assurance", |
|
17 |
"démocratie", |
|
18 |
"expertise", |
|
19 |
"catastrophe", |
|
20 |
"transparence", |
|
21 |
"politique" |
|
22 |
], |
|
23 |
"tweets" : [], |
|
24 |
"tweetsIndex" : [], |
|
25 |
"firstDisplayedTweet" : 0, |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
26 |
"cursor" : -1, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
27 |
/* "annotations" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
28 |
"positive" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
29 |
"keyword" : "+", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
30 |
"colors" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
31 |
"tweet" : "#c5e7cd", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
32 |
"timeline" : "#00ff00" |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
33 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
34 |
}, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
35 |
"negative" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
36 |
"keyword" : "-", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
37 |
"colors" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
38 |
"tweet" : "#f6ced0", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
39 |
"timeline" : "#ff0000" |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
40 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
41 |
}, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
42 |
"reference" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
43 |
"keyword" : "#", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
44 |
"colors" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
45 |
"tweet" : "#efefa1", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
46 |
"timeline" : "#ffff00" |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
47 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
48 |
}, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
49 |
"question" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
50 |
"keyword" : "?", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
51 |
"colors" : { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
52 |
"tweet" : "#bfdbec", |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
53 |
"timeline" : "#0000ff" |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
54 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
55 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
56 |
} */ |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
57 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
58 |
|
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
59 |
function highlightKeyword(stra, strb) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
60 |
var rgxp = RegExp( '(' + strb.replace(/(\W)/gm, '\\$1') + ')', "gim"); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
61 |
return stra.replace(rgxp, '<span class="highlight">$1</span>'); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
62 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
63 |
|
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
64 |
function highlightText(txt) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
65 |
var res = highlightKeyword(txt, swTw.keyword); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
66 |
res = swTw.columns_words.reduce(function(a, b) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
67 |
return highlightKeyword(a,b); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
68 |
}, res); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
69 |
/* res = _(swTw.annotations).reduce(function(a, b) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
70 |
return (b.keyword ? highlightKeyword(a,b.keyword) : a); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
71 |
}, res); */ |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
72 |
return res; |
| 414 | 73 |
} |
74 |
||
75 |
function nextTweet() { |
|
76 |
if (!swTw.tweets.length) { |
|
77 |
return; |
|
78 |
} |
|
79 |
if (swTw.cursor < swTw.tweets.length - 1) { |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
80 |
swTw.cursor = Math.max(swTw.cursor + 1, swTw.tweets.length - 120); |
| 414 | 81 |
var nTweet = swTw.cursor; |
82 |
} else { |
|
83 |
var nTweet = swTw.tweets.length - 1 - ~~( Math.random() * Math.min(swTw.tweets.length,50) ); |
|
84 |
} |
|
85 |
var tweet = swTw.tweets[nTweet]; |
|
86 |
$("#tweetcont").html('<img src="' |
|
87 |
+ tweet.profile_image_url |
|
88 |
+ '" /><p>@' |
|
89 |
+ tweet.from_user |
|
90 |
+ ' (' |
|
91 |
+ tweet.from_user_name |
|
92 |
+ ')' |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
93 |
+ '</p><p class="tweet_text">' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
94 |
+ highlightText(tweet.text) |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
95 |
+ '</p>'); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
96 |
/* var bgcolor = ''; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
97 |
for (var i in swTw.annotations) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
98 |
if (swTw.annotations[i].keyword) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
99 |
if (tweet.text.indexOf(swTw.annotations[i].keyword) != -1) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
100 |
bgcolor = swTw.annotations[i].colors.tweet; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
101 |
break; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
102 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
103 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
104 |
} */ |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
105 |
$("#tweetcont").css("background",bgcolor); |
| 414 | 106 |
} |
107 |
||
108 |
function dropOldTweets() { |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
109 |
var _newPos = swTw.firstDisplayedTweet + DROPCOUNT; |
| 414 | 110 |
_(swTw.tweets.slice(swTw.firstDisplayedTweet,_newPos)).each(function(tweet) { |
111 |
swTw.twInCol = _(swTw.twInCol).map(function(col) { |
|
112 |
return _(col).without(tweet.id_str); |
|
113 |
}); |
|
114 |
_(tweet.elements).each(function(elid) { |
|
115 |
$("#" + elid).fadeOut(2000, function() { |
|
116 |
$(this).detach(); |
|
117 |
}); |
|
118 |
}); |
|
119 |
}); |
|
120 |
|
|
121 |
_(swTw.tweets.slice(_newPos)).each(function(tweet) { |
|
122 |
_(tweet.elements).each(function(elid) { |
|
123 |
var iword = parseInt(elid.split('_')[2]), |
|
124 |
iel = swTw.twInCol[iword].indexOf(tweet.id_str), |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
125 |
posx = COLUMNHEIGHT - AVATARWIDTH * (1 + ~~( iel / COLUMNWIDTH)), |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
126 |
posy = AVATARWIDTH * (iel % COLUMNWIDTH); |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
127 |
$("#" + elid).delay(500).animate({ |
| 414 | 128 |
"top" : posy + "px", |
129 |
"left" : posx + "px" |
|
130 |
}, |
|
131 |
500); |
|
132 |
}); |
|
133 |
}); |
|
134 |
console.log("fin"); |
|
135 |
swTw.firstDisplayedTweet = _newPos; |
|
136 |
} |
|
137 |
||
138 |
function callbackTweets(tweets) { |
|
139 |
_(tweets).each(function(tweet) { |
|
140 |
var tl = tweet.text.toLowerCase(); |
|
141 |
tweet.columns = swTw.columns_words.filter(function(word) { |
|
142 |
return tl.search(word) != -1 |
|
143 |
}); |
|
144 |
tweet.elements = []; |
|
145 |
_(tweet.columns).each(function(word) { |
|
146 |
var iword = swTw.columns_words.indexOf(word), |
|
147 |
tcl = swTw.twInCol[iword], |
|
148 |
tclen = tcl.length; |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
149 |
var posx = COLUMNHEIGHT - AVATARWIDTH * (1 + ~~( tclen / COLUMNWIDTH)), |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
150 |
posy = AVATARWIDTH * (tclen % COLUMNWIDTH), |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
151 |
elid = 'avatar_' + tweet.id_str + '_' + iword, |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
152 |
bgcolor = '#999999'; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
153 |
/* for (var i in swTw.annotations) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
154 |
if (swTw.annotations[i].keyword) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
155 |
if (tweet.text.indexOf(swTw.annotations[i].keyword) != -1) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
156 |
bgcolor = swTw.annotations[i].colors.timeline; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
157 |
break; |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
158 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
159 |
} |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
160 |
} */ |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
161 |
$('#column_' + iword).append( |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
162 |
'<div class="avatar" id="' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
163 |
+ elid |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
164 |
+ '" style="left: -200px; top: ' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
165 |
+ posy |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
166 |
+ 'px; background: ' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
167 |
+ bgcolor |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
168 |
+ '"><img src="' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
169 |
+ tweet.profile_image_url |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
170 |
+ '" /></div>' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
171 |
); |
| 414 | 172 |
tweet.elements.push(elid); |
173 |
tcl.push(tweet.id_str); |
|
174 |
$("#" + elid).animate({ |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
175 |
"left" : posx + "px" |
| 414 | 176 |
}, 2000); |
177 |
}) |
|
178 |
swTw.tweets.push(tweet); |
|
179 |
swTw.tweetsIndex.push(tweet.id_str); |
|
180 |
}); |
|
181 |
while (_(swTw.twInCol).any(function(col) { |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
182 |
return col.length > THRESHOLD |
| 414 | 183 |
})) { |
184 |
dropOldTweets(); |
|
185 |
} |
|
186 |
} |
|
187 |
||
188 |
function retrieveTweets() { |
|
189 |
var options = { |
|
190 |
"keyword" : swTw.columns_words.join(" OR "), |
|
191 |
"lang" : "fr", |
|
192 |
// "keyword" : "#enmi", |
|
193 |
"pages" : 1, |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
194 |
"rpp" : 50, |
| 414 | 195 |
"cbEnd" : function() { |
196 |
callbackTweets(this.tweets); |
|
197 |
} |
|
198 |
} |
|
199 |
if (swTw.tweets.length) { |
|
200 |
options.since_id = swTw.tweets[swTw.tweets.length - 1].id_str; |
|
201 |
} |
|
202 |
getTweets(options); |
|
203 |
} |
|
204 |
||
205 |
function getTweets(options) { |
|
206 |
function getTweetUrl(url) { |
|
207 |
$.getJSON(url, function(data) { |
|
208 |
options.tweets = options.tweets.concat(data.results); |
|
209 |
options.currentPage = data.page; |
|
210 |
if (options.cbData) { |
|
211 |
options.cbData(); |
|
212 |
} |
|
213 |
if (data.next_page && data.page < options.pages) { |
|
214 |
getTweetUrl(baseurl + data.next_page + suffix); |
|
215 |
} else { |
|
216 |
options.tweets.sort(function(a,b) { |
|
217 |
return a.id - b.id; |
|
218 |
}); |
|
219 |
if (options.cbEnd) { |
|
220 |
options.cbEnd(); |
|
221 |
} |
|
222 |
} |
|
223 |
}); |
|
224 |
} |
|
225 |
|
|
226 |
options.tweets = []; |
|
227 |
options.pages || (options.pages = 1); |
|
228 |
options.rpp || (options.rpp = 100); |
|
229 |
options.currentPage = 0; |
|
230 |
|
|
231 |
var baseurl = "http://search.twitter.com/search.json", |
|
232 |
suffix = (options.since_id ? "&since_id=" + options.since_id : '' ) + "&callback=?", |
|
233 |
jsonurl = baseurl + "?q=" + encodeURIComponent(options.keyword)+ "&rpp=" + options.rpp |
|
234 |
+ (options.lang ? "&lang=" + options.lang : '' ) + suffix; |
|
235 |
getTweetUrl(jsonurl); |
|
236 |
} |
|
237 |
||
238 |
$(document).ready(function() { |
|
239 |
$("#columncont").html( swTw.columns_words.map( |
|
|
415
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
240 |
function(mot, i) { |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
241 |
return '<div class="column" id="column_' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
242 |
+ i |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
243 |
+ '"><div class="column-tube"></div><div class="column-title"><h3>' |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
244 |
+ mot |
|
593250f3a286
Sweet Tweet modifications
Raphael Velt <raph.velt@gmail.com>
parents:
414
diff
changeset
|
245 |
+ '</h3></div></div>' |
| 414 | 246 |
} |
247 |
).join("") ); |
|
248 |
|
|
249 |
swTw.twInCol = swTw.columns_words.map(function() { |
|
250 |
return []; |
|
251 |
}); |
|
252 |
|
|
253 |
retrieveTweets(); |
|
254 |
|
|
255 |
setInterval(retrieveTweets,5000); |
|
256 |
|
|
257 |
setInterval(nextTweet, 3000); |
|
258 |
|
|
259 |
}); |