src/js/site.js
author hamidouk
Mon, 12 Sep 2011 17:25:40 +0200
changeset 37 817bdedf83d7
parent 31 cbb1425bc769
child 38 94899a565089
permissions -rw-r--r--
two template files for very specific parts of the player
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     1
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     2
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     3
IriSP.lib = { 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     4
		jQuery:"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     5
		jQueryUI:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     6
		jQueryToolTip:"http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     7
		swfObject:"http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     8
		cssjQueryUI:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     9
};
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    10
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    11
//Player Configuration 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    12
IriSP.config = undefined;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    13
IriSP.configDefault = {
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    14
		metadata:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    15
			format:'cinelab',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    16
			src:'',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    17
			load:'jsonp'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    18
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    19
		gui:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    20
			width:650,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    21
			height:0,
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    22
			mode:'radio',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    23
			container:'LdtPlayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    24
			debug:false, 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    25
			css:'../src/css/LdtPlayer.css'
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    26
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    27
		player:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    28
			type:'jwplayer',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    29
			src:'../res/swf/player.swf',
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    30
			params:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    31
				allowfullscreen:"true", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    32
				allowscriptaccess:"always",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    33
				wmode:"transparent"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    34
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    35
			flashvars:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    36
				streamer:"streamer",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    37
				file:"file", 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    38
				live:"true",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    39
				autostart:"false",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    40
				controlbar:"none",
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    41
				playerready:"IriSP.playerReady"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    42
			},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    43
			attributes:{
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    44
				id:"Ldtplayer1",  
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    45
				name:"Ldtplayer1"
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    46
			}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    47
		},
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    48
		module:null
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    49
};
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    50
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    51
//Player Variable
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    52
/* FIXME: use an sharing library */
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    53
IriSP.LdtShareTool = ""+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    54
"\n<a onclick=\"__IriSP.MyApiPlayer.share('delicious');\" title='partager avec delicious'><span class='share shareDelicious'>&nbsp;</span></a>"+		
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    55
"\n<a onclick=\"__IriSP.MyApiPlayer.share('facebook');\" title='partager avec facebook'> <span class='share shareFacebook'>&nbsp;</span></a>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    56
"\n<a onclick=\"__IriSP.MyApiPlayer.share('twitter');\" title='partager avec twitter'>  <span class='share shareTwitter'>&nbsp;</span></a>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    57
"\n<a onclick=\"__IriSP.MyApiPlayer.share('myspace');\" title='partager avec Myspace'>  <span class='share shareMySpace'>&nbsp;</span></a>";
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    58
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    59
/* FIXME: move the function out of this file to ui.js*/
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    60
IriSP.createPlayerChrome = function(){
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    61
	var width = IriSP.config.gui.width;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    62
	var height = IriSP.config.gui.height;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    63
	var heightS = IriSP.config.gui.height-20;
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    64
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    65
	// AUDIO  */
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    66
	// PB dans le html : ; 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    67
	IriSP.trace( "__IriSP.createMyHtml",IriSP.config.gui.container );
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    68
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    69
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    70
	/* FIXME : factor this in another file */
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    71
	if( IriSP.config.gui.mode=="radio" ){
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    72
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    73
	IriSP.jQuery( "#"+IriSP.config.gui.container ).before(
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    74
	"<div id='LdtSearchContainer'  style='margin-left:445px;position:absolute;'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    75
	"<div id='LdtSearch' style='display:none;background-color:#EEE;width:165px;boder:1px;border-color:#CFCFCF;position:absolute;text-align:center;'><input id='LdtSearchInput' style='margin-top:2px;margin-bottom:2px;' /></div>	\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    76
	"</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    77
	" <div class='cleaner'></div>");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    78
	IriSP.trace("__IriSP.createHtml",IriSP.config.gui.container);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    79
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    80
	IriSP.jQuery( "<div id='Ldt-Root'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    81
		"	<div id='Ldt-PlaceHolder'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    82
		"		<a href='http://www.adobe.com/go/getflashplayer'>Get flash</a> to see this player	\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    83
		"	</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    84
		"	<div id='Ldt-controler' class='demo'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    85
		"		<div class='Ldt-Control1' >\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    86
		"			<button id='ldt-CtrlPlay' onclick='__IriSP.MyApiPlayer.play()'>Lecture / Pause </button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    87
		"			<button id='ldt-CtrlNext' onclick='__IriSP.MyLdt.nextAnnotation()'>Suivant</button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    88
		"		</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    89
		"		<div id='Ldt-Annotations' class='ui-slider'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    90
		"			<div id='slider-range-min'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    91
		"	</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    92
		"		<div class='Ldt-Control2'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    93
		"			<button id='ldt-CtrlLink'  onclick='__IriSP.searchblock()'> Rechercher </button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    94
		"			<button id='ldt-CtrlSound' onclick='__IriSP.MyApiPlayer.mute()'>Sound</button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    95
		"		</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    96
		"  <div class='cleaner'>&nbsp\;</div> \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    97
		"  <div id='Ldt-Show-Arrow-container'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    98
		"  	<div id='Ldt-Show-Arrow'> </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    99
		"  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   100
		"</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   101
		"<div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   102
		" <div id='ldt-Show'> </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   103
		"	<div id='Ldt-ShowAnnotation-audio' class='demo' >\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   104
		"		<div id='Ldt-SaTitle'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   105
		"		<div id='Ldt-SaDescription'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   106
		" 		<div class='cleaner'><!--&nbsp\;--></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   107
		" </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   108
		" <div id='Ldt-SaKeyword'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   109
		" <div id='Ldt-SaKeywordText'>  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   110
		" <div class='cleaner'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   111
		" <div id='Ldt-SaShareTools'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   112
		" \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   113
		" "+IriSP.LdtShareTool+"\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   114
		" \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   115
		"  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   116
		" <div class='cleaner'></div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   117
		"</div>  "+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   118
		//"<div id='Ldt-Tags'> Mots clefs : </div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   119
		"</div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   120
		"<div id='Ldt-output' style='clear:left;float:none;position:relative;height:200px;width:"+width+"px;overflow:scroll;' ></div>").appendTo("#"+IriSP.config.gui.container);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   121
		// special tricks IE 7
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   122
		if (IriSP.jQuery.browser.msie==true && IriSP.jQuery.browser.version=="7.0"){
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   123
			//LdtSearchContainer
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   124
			//__IriSP.jQuery("#LdtPlayer").attr("margin-top","50px");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   125
			IriSP.jQuery("#Ldt-Root").css("padding-top","25px");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   126
					IriSP.trace("__IriSP.createHtml","IE7 SPECIAL ");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   127
		}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   128
	} else if(IriSP.config.gui.mode=="video") {
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   129
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   130
		IriSP.jQuery(  "<div id='LdtSearchContainer'  style='margin-top:"+heightS+"px;margin-left:445px;position:absolute;'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   131
		"<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>	\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   132
		"</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   133
		"<div id='Ldt-Root'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   134
		"	<div id='Ldt-PlaceHolder'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   135
		"		<a href='http://www.adobe.com/go/getflashplayer'>Get flash</a> to see this player	\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   136
		"	</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   137
					
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   138
		"	<div id='Ldt-controler' class='demo'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   139
		"		<div class='Ldt-Control1' >\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   140
		"			<button id='ldt-CtrlPlay' onclick='__IriSP.MyApiPlayer.play()'>Lecture / Pause </button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   141
		"			<button id='ldt-CtrlNext' onclick='__IriSP.MyLdt.nextAnnotation()'>Suivant</button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   142
		"		</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   143
		"		<div id='Ldt-Annotations' class='ui-slider'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   144
		"			<div id='slider-range-min'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   145
		"	</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   146
		"		<div class='Ldt-Control2'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   147
		"			<button id='ldt-CtrlLink'  onclick='__IriSP.searchblock()'> Rechercher </button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   148
		"			<button id='ldt-CtrlSound' onclick='__IriSP.MyApiPlayer.mute()'>Sound</button>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   149
		"		</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   150
		"  <div class='cleaner'>&nbsp\;</div> \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   151
		"  <div id='Ldt-Show-Arrow-container'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   152
		"  	<div id='Ldt-Show-Arrow'> </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   153
		"  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   154
		"</div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   155
		"<div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   156
		" <div id='ldt-Show'> </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   157
		"	<div id='Ldt-ShowAnnotation-audio' class='demo' >\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   158
		"		<div id='Ldt-SaTitle'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   159
		"		<div id='Ldt-SaDescription'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   160
		" 		<div class='cleaner'><!--&nbsp\;--></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   161
		" </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   162
		" <div id='Ldt-SaKeyword'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   163
		" <div id='Ldt-SaKeywordText'>  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   164
		" <div class='cleaner'></div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   165
		" <div id='Ldt-SaShareTools'>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   166
		" \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   167
		" "+IriSP.LdtShareTool+"\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   168
		" \n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   169
		"  </div>\n"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   170
		" <div class='cleaner'></div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   171
		"</div>  "+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   172
		//"<div id='Ldt-Tags'> Mots clefs : </div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   173
		"</div>"+
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   174
		"<div id='Ldt-output'></div>").appendTo("#"+IriSP.config.gui.container);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   175
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   176
	}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   177
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   178
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   179
	IriSP.trace("__IriSP.createHtml",IriSP.jQuery.browser.msie+" "+IriSP.jQuery.browser.version);		
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   180
	IriSP.trace("__IriSP.createHtml","end");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   181
	IriSP.jQuery("#Ldt-Annotations").width(width-(75*2));
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   182
	IriSP.jQuery("#Ldt-Show-Arrow-container").width(width-(75*2));
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   183
	IriSP.jQuery("#Ldt-ShowAnnotation-audio").width(width-10);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   184
	IriSP.jQuery("#Ldt-ShowAnnotation-video").width(width-10);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   185
	IriSP.jQuery("#Ldt-SaKeyword").width(width-10);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   186
	IriSP.jQuery("#Ldt-controler").width(width-10);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   187
	IriSP.jQuery("#Ldt-Control").attr("z-index","100");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   188
	IriSP.jQuery("#Ldt-controler").hide();
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   189
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   190
	IriSP.jQuery("<div id='Ldt-load-container'><div id='Ldt-loader'>&nbsp;</div> Chargement... </div>").appendTo("#Ldt-ShowAnnotation-audio");
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   191
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   192
	if(IriSP.config.gui.mode=='radio'){
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   193
		IriSP.jQuery("#Ldt-load-container").attr("width",IriSP.config.gui.width);
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   194
	}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   195
	// Show or not the output
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   196
	if(IriSP.config.gui.debug===true){
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   197
		IriSP.jQuery("#Ldt-output").show();
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   198
	} else {
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   199
		IriSP.jQuery("#Ldt-output").hide();
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   200
	}
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   201
	
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   202
};
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
   203