src/js/widgets/polemicWidget.js
branchpopcorn-port
changeset 190 46d34e01c9b0
parent 189 1a7bd51e7e46
child 191 43a86ab7703c
equal deleted inserted replaced
189:1a7bd51e7e46 190:46d34e01c9b0
   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});	
   278 										//this.attr({stroke:"#00","stroke-width":0.1});	
   279 									}}(e)).mousedown(function () {
   279 									}}(e)).mousedown(function () {
   280 										self._Popcorn.currentTime(this.time/1000); // FIXME: update ?
   280 										self._Popcorn.currentTime(this.time/1000);
   281 									});
   281 									});
   282 									__IriSP.jQuery(e.node).attr('id', 't'+k+'');
   282 									__IriSP.jQuery(e.node).attr('id', 't'+k+'');
   283 									__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
   283 									__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
   284 									__IriSP.jQuery(e.node).attr('begin',  frames[i].mytweetsID[k].timeframe);
   284 									__IriSP.jQuery(e.node).attr('begin',  frames[i].mytweetsID[k].timeframe);									
   285 									var tempPosition = {x:i*frameSize,y: this.heightmax-addEheight};
       
   286 									addTip(e.node, frames[i].mytweetsID[k].title,colors[j],tempPosition);
       
   287 									//frames[i].mytweetsID.pop();
       
   288 								}
   285 								}
   289 							}
   286 							}
   290 						}
   287 						}
   291 					}
   288 					}
   292 				}
   289 				}
   308 		if(typeof(PaperSlider) !== 'undefined' ) {
   305 		if(typeof(PaperSlider) !== 'undefined' ) {
   309 			PaperSlider.toFront();
   306 			PaperSlider.toFront();
   310 		}
   307 		}
   311 	}
   308 	}
   312 
   309 
   313 	
       
   314 	// jQuery(document).mousemove(function(e){
       
   315 		// if (over){
       
   316 			// __IriSP.jQuery("#tip").css("left", e.pageX-106).css("top", e.pageY-160);
       
   317 			// __IriSP.jQuery("#tipcolor").css("background-color", tipColor);
       
   318 			// __IriSP.jQuery("#tiptext").text(tipText);
       
   319 			// __IriSP.jQuery("#tip").show();
       
   320 		// }else{
       
   321 			// if (typeof(__IriSP) !== 'undefined' && typeof(__IriSP.jQuery) === 'function') {
       
   322 				// __IriSP.jQuery("#tip").css("left", -10000).css("top", -100000);
       
   323 			    // //tweetSelection.attr({x:-100,y:-100});
       
   324 			// }
       
   325 		// }
       
   326 	// });
       
   327 	
       
   328 	// var over 	 = false;
       
   329 	// var tipText  = "";
       
   330 	// var tipColor = "#efefef";
       
   331 	// var tweetSelection;
       
   332 	// var PaperSlider;
       
   333 	
       
   334 	// AddTip  ******************************************************************************
       
   335 	function addTip(node, txt,color,tempPosition){
       
   336 			IriSP.jQuery(node).mouseover(function(){
       
   337 			   tipText = txt;
       
   338 			   //tip.hide();//fadeIn(0);
       
   339 			   tipColor = color;
       
   340 			   over = true;
       
   341 			   //tweetSelection.attr(tempPosition);
       
   342 			   //tweetSelection.toFront();
       
   343 			}).mouseout(function(){
       
   344 			   //tip.show()//tip.fadeOut(0);
       
   345 			   over = false;
       
   346 			});
       
   347 			
       
   348 
       
   349 	}
       
   350 	
       
   351 		// jQuery(document).ready(function() {
       
   352 			// if (typeof(__IriSP) !== 'undefined' && typeof(__IriSP.jQuery) === 'function') {
       
   353 				// __IriSP.jQuery("#tip").hide();
       
   354 			// }
       
   355 		// });
       
   356     
   310     
   357     
   311