src/js/widgets/polemicWidget.js
branchpopcorn-port
changeset 191 43a86ab7703c
parent 190 46d34e01c9b0
child 192 d8a826f35aac
equal deleted inserted replaced
190:46d34e01c9b0 191:43a86ab7703c
   269 									e.time= frames[i].mytweetsID[k].timeframe;
   269 									e.time= frames[i].mytweetsID[k].timeframe;
   270 									e.title= frames[i].mytweetsID[k].title;
   270 									e.title= frames[i].mytweetsID[k].title;
   271                   
   271                   
   272 									e.mouseover(function(element) { return function (event) {                                             
   272 									e.mouseover(function(element) { return function (event) {                                             
   273                         // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery.
   273                         // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery.
   274                         self.TooltipWidget.show.call(self.TooltipWidget, element.title, "#fefefe", event.clientX - 106, event.clientY - 160);
   274                         self.TooltipWidget.show.call(self.TooltipWidget, element.title, element.attr("fill"), event.clientX - 106, event.clientY - 160);
   275                         element.displayed = true;
   275                         element.displayed = true;
   276                       }}(e)).mouseout(function(element) { return function () {                          
   276                       }}(e)).mouseout(function(element) { return function () {                          
   277                           self.TooltipWidget.hide.call(self);
   277                           self.TooltipWidget.hide.call(self);
   278 										//this.attr({stroke:"#00","stroke-width":0.1});	
       
   279 									}}(e)).mousedown(function () {
   278 									}}(e)).mousedown(function () {
   280 										self._Popcorn.currentTime(this.time/1000);
   279 										self._Popcorn.currentTime(this.time/1000);
   281 									});
   280 									});
   282 									__IriSP.jQuery(e.node).attr('id', 't'+k+'');
   281 									__IriSP.jQuery(e.node).attr('id', 't'+k+'');
   283 									__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
   282 									__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);