src/js/widgets/playerWidget.js
branchpopcorn-port
changeset 251 116c86db7e17
parent 250 41683e7cb17a
child 255 af3adcf7cb20
equal deleted inserted replaced
250:41683e7cb17a 251:116c86db7e17
    14 	var heightS = this.height-20;
    14 	var heightS = this.height-20;
    15 	
    15 	
    16   var searchBox = Mustache.to_html(IriSP.search_template);
    16   var searchBox = Mustache.to_html(IriSP.search_template);
    17   this.selector.append(searchBox);
    17   this.selector.append(searchBox);
    18   
    18   
    19 	if (this._config.mode=="radio") {
    19 	var Player_templ = Mustache.to_html(IriSP.player_template, {"share_template" : IriSP.share_template});
    20 		var radioPlayer = Mustache.to_html(IriSP.radio_template, {"share_template" : IriSP.share_template});
    20   this.selector.append(Player_templ);		
    21     this.selector.append(radioPlayer);		
       
    22     
    21     
    23 		// special tricks for IE 7
       
    24 		if (IriSP.jQuery.browser.msie == true && IriSP.jQuery.browser.version == "7.0"){
       
    25 			//__IriSP.jQuery("#LdtPlayer").attr("margin-top","50px");
       
    26 			this.selector.children("#Ldt-Root").css("padding-top","25px");			
       
    27 		}
       
    28 	} else if (this._config.mode == "video") {
       
    29 	
       
    30 		var videoPlayer = Mustache.to_html(IriSP.video_template, {"share_template" : IriSP.share_template, "heightS" : heightS});
       
    31     this.selector.append(videoPlayer);		
       
    32 	}
       
    33 	
       
    34 	this.selector.children("#Ldt-Annotations").width(width - (75 * 2));
       
    35 	this.selector.children("#Ldt-Show-Arrow-container").width(width - (75 * 2));
       
    36 	this.selector.children("#Ldt-ShowAnnotation-audio").width(width - 10);
       
    37 	this.selector.children("#Ldt-ShowAnnotation-video").width(width - 10);
       
    38 	this.selector.children("#Ldt-SaKeyword").width(width - 10);
       
    39 	this.selector.children(".Ldt-controler").width(width - 10);
    22 	this.selector.children(".Ldt-controler").width(width - 10);
    40 	/*
    23 	/*
    41   this.selector.children("#Ldt-Control").attr("z-index", "100");
    24   this.selector.children("#Ldt-Control").attr("z-index", "100");
    42 	this.selector.children("#Ldt-controler").hide();
    25 	this.selector.children("#Ldt-controler").hide();
    43 	*/
    26 	*/
    44   this.selector.children("#Ldt-ShowAnnotation-audio").append(IriSP.annotation_loading_template);	
       
    45 
       
    46 	if(this._config.mode=='radio'){
       
    47 		this.selector.children("#Ldt-load-container").attr("width",this.width);
       
    48 	}
       
    49 	  		
    27 	  		
    50   this.selector.children(".Ldt-controler").show();
    28   this.selector.children(".Ldt-controler").show();
    51   //__IriSP.jQuery("#Ldt-Root").css('display','visible');
       
    52   this.selector.children("#Ldt-ShowAnnotation").click( function () { 
       
    53      //__IriSP.jQuery(this).slideUp(); 
       
    54   } );
       
    55 
    29 
    56   var LdtpPlayerY = this.selector.children("#Ldt-PlaceHolder").attr("top");
    30   var LdtpPlayerY = this.selector.children("#Ldt-PlaceHolder").attr("top");
    57   var LdtpPlayerX = this.selector.children("#Ldt-PlaceHolder").attr("left");
    31   var LdtpPlayerX = this.selector.children("#Ldt-PlaceHolder").attr("left");
    58     
    32     
    59   // handle clicks by the user on the video.
    33   // handle clicks by the user on the video.