286 e.color = colors[j]; |
286 e.color = colors[j]; |
287 e.time = frames[i].mytweetsID[k].timeframe; |
287 e.time = frames[i].mytweetsID[k].timeframe; |
288 e.title = frames[i].mytweetsID[k].title; |
288 e.title = frames[i].mytweetsID[k].title; |
289 e.description = frames[i].mytweetsID[k].description; |
289 e.description = frames[i].mytweetsID[k].description; |
290 e.id = frames[i].mytweetsID[k].cinecast_id; |
290 e.id = frames[i].mytweetsID[k].cinecast_id; |
291 |
|
292 this.svgElements[e.id] = e; |
291 this.svgElements[e.id] = e; |
293 |
292 |
294 e.mouseover(function(element) { return function (event) { |
293 e.mouseover(function(element) { return function (event) { |
295 // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery. |
294 // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery. |
296 self.TooltipWidget.show.call(self.TooltipWidget, e.title + " - " + element.description, element.attr("fill"), event.clientX - 106, event.clientY - 160); |
295 self.TooltipWidget.show.call(self.TooltipWidget, |
|
296 element.title + " - " + element.description, |
|
297 element.attr("fill"), |
|
298 event.clientX - 106, event.clientY - 160); |
297 element.displayed = true; |
299 element.displayed = true; |
298 }}(e)).mouseout(function(element) { return function () { |
300 }}(e)).mouseout(function(element) { return function () { |
299 self.TooltipWidget.hide.call(self.TooltipWidget); |
301 self.TooltipWidget.hide.call(self.TooltipWidget); |
300 }}(e)).mousedown(function () { |
302 }}(e)).mousedown(function () { |
301 self._Popcorn.currentTime(this.time/1000); |
303 self._Popcorn.currentTime(this.time/1000); |