# HG changeset patch # User hurons # Date 1301407168 -7200 # Node ID e4e403ac4e03abb2791e77961140d8340ab34e15 # Parent b050f540942efebb31faf3bfd9c4a3f6c303de5c IE8 optimisation bis repetita :-) diff -r b050f540942e -r e4e403ac4e03 src/js/LdtPlayer.js --- a/src/js/LdtPlayer.js Tue Mar 29 12:28:52 2011 +0200 +++ b/src/js/LdtPlayer.js Tue Mar 29 15:59:28 2011 +0200 @@ -341,13 +341,19 @@ // AUDIO */ // PB dans le html : ; + __IriSP.trace("__IriSP.createMyHtml",__IriSP.config.gui.container); + + + if(__IriSP.config.gui.mode=="radio"){ - __IriSP.jQuery( -/* + + __IriSP.jQuery("#"+__IriSP.config.gui.container).before( "
\n"+ - "
\n"+ - "
\n"+*/ - "
\n"+ + " \n"+ + "
\n"); + __IriSP.trace("__IriSP.createHtml",__IriSP.config.gui.container); + + __IriSP.jQuery( "
\n"+ "
\n"+ " Get flash to see this player \n"+ "
\n"+ @@ -387,11 +393,11 @@ "
"+ //"
Mots clefs :
"+ ""+ - "
").appendTo("#"+__IriSP.config.gui.container); + "
").appendTo("#"+__IriSP.config.gui.container); } else if(__IriSP.config.gui.mode=="video") { __IriSP.jQuery( "
\n"+ - "
\n"+ + " \n"+ "
\n"+ "
\n"+ "
\n"+ @@ -1019,9 +1025,10 @@ /* Search methodes */ __IriSP.SearchOldValue=""; +__IriSP.searchblockOpen=false; __IriSP.searchblock = function (){ - __IriSP.trace("__IriSP.searchblock",__IriSP.jQuery(".ui-icon-search").css("background-position-x")); - if (__IriSP.jQuery(".ui-icon-search").css("background-position-x")=="-160px"){ + __IriSP.trace("__IriSP.searchblock",__IriSP.searchblockOpen); + if (__IriSP.searchblockOpen==false){ __IriSP.jQuery(".ui-icon-search").css("background-position","-144px -112px"); //__IriSP.jQuery("#LdtSearch").animate({height:26},250); __IriSP.jQuery("#LdtSearch").show(250); @@ -1029,13 +1036,15 @@ __IriSP.jQuery("#LdtSearchInput").focus(); __IriSP.jQuery("#LdtSearchInput").attr('value',__IriSP.SearchOldValue); __IriSP.Search(__IriSP.SearchOldValue); + __IriSP.searchblockOpen=true; } else { __IriSP.SearchOldValue = __IriSP.jQuery("#LdtSearchInput").attr('value'); __IriSP.jQuery("#LdtSearchInput").attr('value',''); __IriSP.SearchClean(); - __IriSP.jQuery(".ui-icon-search").css("background-position-x","-160px"); + __IriSP.jQuery(".ui-icon-search").css("background-position","-160px -112px"); //__IriSP.jQuery("#LdtSearch").animate({height:0},250); __IriSP.jQuery("#LdtSearch").hide(250); + __IriSP.searchblockOpen=false; } } __IriSP.Search = function (value){ @@ -1047,23 +1056,26 @@ var findmem = 0; var factor = 0; __IriSP.trace(value,value.length); - if(value.length>=3){ + var valueS = value.toLowerCase(); + __IriSP.trace("__IriSP.Search",annotations.length+" "+valueS); + if(valueS.length>=3){ for (var i=0; i < annotations.length; ++i){ annotation = annotations[i]; __IriSP.jQuery("#output2").text(annotation.title+" ?= "+value); + chaine1 = annotation.title.toLowerCase(); chaine2 = annotation.description.toLowerCase(); chaine3 = annotation.htmlTags.toLowerCase(); - if(chaine1.indexOf(value,0) !=-1){ + if(chaine1.indexOf(valueS,0) !=-1){ finded+=1; } - if(chaine2.indexOf(value,0) !=-1){ + if(chaine2.indexOf(valueS,0) !=-1){ finded+=1; } - if(chaine3.indexOf(value,0) !=-1){ + if(chaine3.indexOf(valueS,0) !=-1){ finded+=1; } diff -r b050f540942e -r e4e403ac4e03 test/index.htm --- a/test/index.htm Tue Mar 29 12:28:52 2011 +0200 +++ b/test/index.htm Tue Mar 29 15:59:28 2011 +0200 @@ -9,8 +9,8 @@
-

MetadataPlayer

- Iri MetadataPlayer is a javascript's Widget interface to augment existing flash or html5 video player. +

MetaDataPlayer

+ Iri MetaDataPlayer is a javascript's Widget interface to augment existing flash or html5 video player. It's made to show time annotation and different metadata on video. To implement it on your website it's 's really simple. You just need to insert a div and a script, like the exemple under this lines.

@@ -18,16 +18,9 @@ This Player is a freeSoftware under CeCILL-C license. This program is made by Institut de recherche et d innovation more information on this page. -

- - -
-
-
- xx