got rid of the radio and video templates - replaced them with the player.htm
template.
--- a/src/js/widgets/playerWidget.js Wed Nov 16 10:47:30 2011 +0100
+++ b/src/js/widgets/playerWidget.js Wed Nov 16 10:54:13 2011 +0100
@@ -16,42 +16,16 @@
var searchBox = Mustache.to_html(IriSP.search_template);
this.selector.append(searchBox);
- if (this._config.mode=="radio") {
- var radioPlayer = Mustache.to_html(IriSP.radio_template, {"share_template" : IriSP.share_template});
- this.selector.append(radioPlayer);
+ var Player_templ = Mustache.to_html(IriSP.player_template, {"share_template" : IriSP.share_template});
+ this.selector.append(Player_templ);
- // special tricks for IE 7
- if (IriSP.jQuery.browser.msie == true && IriSP.jQuery.browser.version == "7.0"){
- //__IriSP.jQuery("#LdtPlayer").attr("margin-top","50px");
- this.selector.children("#Ldt-Root").css("padding-top","25px");
- }
- } else if (this._config.mode == "video") {
-
- var videoPlayer = Mustache.to_html(IriSP.video_template, {"share_template" : IriSP.share_template, "heightS" : heightS});
- this.selector.append(videoPlayer);
- }
-
- this.selector.children("#Ldt-Annotations").width(width - (75 * 2));
- this.selector.children("#Ldt-Show-Arrow-container").width(width - (75 * 2));
- this.selector.children("#Ldt-ShowAnnotation-audio").width(width - 10);
- this.selector.children("#Ldt-ShowAnnotation-video").width(width - 10);
- this.selector.children("#Ldt-SaKeyword").width(width - 10);
this.selector.children(".Ldt-controler").width(width - 10);
/*
this.selector.children("#Ldt-Control").attr("z-index", "100");
this.selector.children("#Ldt-controler").hide();
*/
- this.selector.children("#Ldt-ShowAnnotation-audio").append(IriSP.annotation_loading_template);
-
- if(this._config.mode=='radio'){
- this.selector.children("#Ldt-load-container").attr("width",this.width);
- }
this.selector.children(".Ldt-controler").show();
- //__IriSP.jQuery("#Ldt-Root").css('display','visible');
- this.selector.children("#Ldt-ShowAnnotation").click( function () {
- //__IriSP.jQuery(this).slideUp();
- } );
var LdtpPlayerY = this.selector.children("#Ldt-PlaceHolder").attr("top");
var LdtpPlayerX = this.selector.children("#Ldt-PlaceHolder").attr("left");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/templates/player.html Wed Nov 16 10:54:13 2011 +0100
@@ -0,0 +1,15 @@
+{{! template for the radio player }}
+<div class='Ldt-controler demo'>
+ <div class='Ldt-LeftPlayerControls'>
+ <button class='ldt-CtrlPlay'>Lecture
+ / Pause</button>
+ <button class='ldt-CtrlNext'>Suivant</button>
+ <button class='ldt-CtrlSearch'>
+ Rechercher
+ </button>
+ </div>
+ <div class='Ldt-RightPlayerControls'>
+ <button class='ldt-CtrlSound'>Sound</button>
+ </div>
+ <div class='cleaner'> </div>
+</div>
\ No newline at end of file
--- a/src/templates/radio.html Wed Nov 16 10:47:30 2011 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-{{! template for the radio player }}
-<div class='Ldt-controler demo'>
- <div class='Ldt-LeftPlayerControls'>
- <button class='ldt-CtrlPlay'>Lecture
- / Pause</button>
- <button class='ldt-CtrlNext'>Suivant</button>
- <button class='ldt-CtrlSearch'>
- Rechercher
- </button>
- </div>
- <div class='Ldt-RightPlayerControls'>
- <button class='ldt-CtrlSound'>Sound</button>
- </div>
- <div class='cleaner'> </div>
-</div>
\ No newline at end of file
--- a/src/templates/video.html Wed Nov 16 10:47:30 2011 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-{{! the template for a video player }}
-<div id='LdtSearchContainer'
- style='margin-top: {{heightS}} px; margin-left: 445px; position: absolute;'>
- <div id='LdtSearch'
- style='background-color: #EEE; display: none; width: 165px; boder: 1px; border-color: #CFCFCF; position: absolute; text-align: center; z-index: 999;'>
- <input id='LdtSearchInput'
- style='margin-top: 2px; margin-bottom: 2px;' />
- </div>
-</div>
-<div id='Ldt-Root'>
- <div id='Ldt-controler' class='demo'>
- <div class='Ldt-Control1'>
- <button id='ldt-CtrlPlay'>Lecture
- / Pause</button>
- <button id='ldt-CtrlNext'>Suivant</button>
- </div>
- <div id='Ldt-Annotations' class='ui-slider'>
- <div id='slider-range-min'></div>
-
- </div>
- <div class='Ldt-Control2'>
- <button id='ldt-CtrlSearch'>
- Rechercher</button>
- <button id='ldt-CtrlSound'>Sound</button>
- </div>
-
- <div class='cleaner'> \;</div>
-
- <div id='Ldt-Show-Arrow-container'>
- <div id='Ldt-Show-Arrow'></div>
- </div>
- </div>
- <div id='Ldt-Ligne'>
- <!-- this div displays the annotations. -->
- </div>
-</div>
\ No newline at end of file