diff -r 60dff8a71024 -r 6a073c4a8578 tweetcast/nodejs/client/js/script.js --- a/tweetcast/nodejs/client/js/script.js Wed Oct 26 18:29:46 2011 +0200 +++ b/tweetcast/nodejs/client/js/script.js Thu Oct 27 17:57:53 2011 +0200 @@ -4,12 +4,18 @@ tweetData = { "tweetcount" : 0, "position" : 0, + "feedMode" : true, "followLast" : true, "zoomLevel" : 3, "timeLevel" : 2, "tweets" : [], "posIndex" : [], - "tlChanged" : true + "tlChanged" : true, + "tlLevelChanged" : true, + "blockUpdate" : false, + "waitUpdate" : true, + "htmlBuffer" : '', + "wheelDelta" : 0 }, displaySplitting = [ { @@ -20,17 +26,28 @@ positions : [ 1, 3, 5, 7, 13, 33, 53 ], classNames : [ 'full', 'half', 'half fade', 'quarter', 'quarter fade', 'icons', 'icons fade' ] } - ], - blockUpdate = false, - waitUpdate = true, - wheeldelta = 0; + ]; function placeHolder(className) { return '
'; } +function clicTweet(tweetPos) { + if (tweetPos != tweetData.position) { + tweetData.position = tweetPos; + tweetData.followLast = (tweetData.position == tweetData.tweetcount); + return false; + } else { + console.log("getting linkedTweets"); + socket.emit('linkedTweets',{"tweetpos":tweetPos}); + } +} + function tweetToHtml(tweet, className) { - html = '