front_idill/src/mosaic/js/notifications.js
changeset 77 205409da0f32
parent 58 a28488078053
child 79 9eff85166868
equal deleted inserted replaced
76:eae52b187e29 77:205409da0f32
   128         for(var i = 0 ; i < search_body_tab.length ; i++)
   128         for(var i = 0 ; i < search_body_tab.length ; i++)
   129         {
   129         {
   130             search_body_imgs += "<div id='body_" + search_body_tab[i] + "' class='notify_imgs_small' style='opacity: " + search_body_tab_opacities[i] + ";'></div>";
   130             search_body_imgs += "<div id='body_" + search_body_tab[i] + "' class='notify_imgs_small' style='opacity: " + search_body_tab_opacities[i] + ";'></div>";
   131         }
   131         }
   132         search_body_imgs += "</div>";
   132         search_body_imgs += "</div>";
       
   133 		
       
   134 		//On ajoute ce qu'il faut pour quitter l'aide.
       
   135 		
   133     }
   136     }
   134     
   137     
   135     //Titre de la colonne des actions de contrôle.
   138     //Titre de la colonne des actions de contrôle.
   136     var controls_title = "<div id='controls_title'></div>";
   139     var controls_title = "<div id='controls_title'></div>";
   137     //Image de la colonne.
   140     //Image de la colonne.
   170     var notification_help = "<div id='notify_help'>" + help_search + "<div id='help_sep'></div>" + help_controls + "</div>";
   173     var notification_help = "<div id='notify_help'>" + help_search + "<div id='help_sep'></div>" + help_controls + "</div>";
   171     
   174     
   172     //On les ajoute à la mosaïque.
   175     //On les ajoute à la mosaïque.
   173     $('body').append(notification_help);
   176     $('body').append(notification_help);
   174     
   177     
       
   178 	if(this.isTablet)
       
   179 	{
       
   180 		//On rétrécit certaines images si on est sur une tablette.
       
   181 		$('#search_img, #controls_img').css(
       
   182 		{
       
   183 			height: 150,
       
   184 			'background-size': '150px 150px'
       
   185 		});
       
   186 		
       
   187 		$('.notify_imgs_small').css(
       
   188 		{
       
   189 			height: 80,
       
   190 			width: 80,
       
   191 			'background-size': '80px 80px'
       
   192 		});
       
   193 		
       
   194 		//On ajoute l'icone de sortie.
       
   195 		this.exitIcon();
       
   196 	}
       
   197 	
   175     //On calcule leurs coordonnées et dimensions.
   198     //On calcule leurs coordonnées et dimensions.
   176     var notify_width = $(window).width(), notify_height = $(window).height();
   199     var notify_width = $(window).width(), notify_height = $(window).height();
   177     var notify_margin = parseInt($('#notify_help').css('margin'));
   200     var notify_margin = parseInt($('#notify_help').css('margin-left'));
   178     var notify_ = 10;
   201     var notify_ = 10;
   179     
   202     
   180     //On les positionne.
   203     //On les positionne.
   181     $('#notify_help').css(
   204     $('#notify_help').css(
   182     {
   205     {
   186         height: notify_height - notify_margin * 2,
   209         height: notify_height - notify_margin * 2,
   187         'z-index': 1000
   210         'z-index': 1000
   188     });
   211     });
   189     
   212     
   190     //Taille des marges des images.
   213     //Taille des marges des images.
   191     var margins = parseInt($('.notify_imgs_small').css('margin'));
   214     var margins = parseInt($('.notify_imgs_small').css('margin-left'));
   192     //Largeur des images.
   215     //Largeur des images.
   193     var widths = $('.notify_imgs_small').width();
   216     var widths = $('.notify_imgs_small').width();
   194     //Hauteur des images.
   217     //Hauteur des images.
   195     var heights = $('.notify_imgs_small').height();
   218     var heights = $('.notify_imgs_small').height();
   196     //Position horizontale du séparateur de colonnes.
   219     //Position horizontale du séparateur de colonnes.
   197     var sep_left = $('#help_sep').position().left;
   220     var sep_left = $('#help_sep').position().left;
   198     //Marge du panneau d'aide.
   221     //Marge du panneau d'aide.
   199     var help_margin = parseInt($('#notify_help').css('margin'));
   222     var help_margin = parseInt($('#notify_help').css('margin-left'));
   200     
   223     
   201     //On calcule la taille d'une zone de recherche (une des deux parties).
   224     //On calcule la taille d'une zone de recherche (une des deux parties).
   202     var help_column_width = sep_left - help_margin;
   225     var help_column_width = sep_left - help_margin;
   203     //Longueur d'une image.
   226     //Longueur d'une image.
   204     var img_width = (margins * 2 + widths);
   227     var img_width = (margins * 2 + widths);
   210     
   233     
   211     //On positionne la section de recherche par courbes.
   234     //On positionne la section de recherche par courbes.
   212     $('#search_2hands_imgs').css(
   235     $('#search_2hands_imgs').css(
   213     {
   236     {
   214         'padding-left': search_2hands_padding_left,
   237         'padding-left': search_2hands_padding_left,
   215         'height': ($('.notify_imgs_small').height() * 2 + parseInt($('.notify_imgs_small').css('margin')))
   238         'height': ($('.notify_imgs_small').height() * 2 + parseInt($('.notify_imgs_small').css('margin-left')))
   216     });
   239     });
   217     
   240     
   218     //On récupère le nombre d'images affichables horizontalement pour les gestures de recherche corporelles dans une des parties de l'aide.
   241     //On récupère le nombre d'images affichables horizontalement pour les gestures de recherche corporelles dans une des parties de l'aide.
   219     var search_body_n_imgs = Math.floor(help_column_width / img_width);
   242     var search_body_n_imgs = Math.floor(help_column_width / img_width);
   220     //Calcul du padding-left de cette section.
   243     //Calcul du padding-left de cette section.
   222     
   245     
   223     //On positionne la section de recherche par gestures corporelles.
   246     //On positionne la section de recherche par gestures corporelles.
   224     $('#search_body_imgs').css(
   247     $('#search_body_imgs').css(
   225     {
   248     {
   226         'padding-left': search_body_padding_left,
   249         'padding-left': search_body_padding_left,
   227         'height': ($('.notify_imgs_small').height() * 2 + parseInt($('.notify_imgs_small').css('margin')))
   250         'height': ($('.notify_imgs_small').height() * 2 + parseInt($('.notify_imgs_small').css('margin-left')))
   228     });
   251     });
   229     
   252     
   230     //On récupère le nombre d'images affichables horizontalement pour les gestures de controle dans une des parties de l'aide.
   253     //On récupère le nombre d'images affichables horizontalement pour les gestures de controle dans une des parties de l'aide.
   231     var controls_1hand_n_imgs = Math.floor(help_column_width / img_width);
   254     var controls_1hand_n_imgs = Math.floor(help_column_width / img_width);
   232     //Calcul du padding-left de cette section.
   255     //Calcul du padding-left de cette section.
   351 	
   374 	
   352 	if(this.config.mouseInteractions)
   375 	if(this.config.mouseInteractions)
   353 	{
   376 	{
   354 		//On ajoute à la mosaïque seulement la recherche.
   377 		//On ajoute à la mosaïque seulement la recherche.
   355 		$('body').append(notification_search);
   378 		$('body').append(notification_search);
   356 		notify_margin = parseInt($('.notifications').css('margin'));
   379 		notify_margin = parseInt($('.notifications').css('margin-left'));
   357 		notify_width = $('.notifications').width();
   380 		notify_width = $('.notifications').width();
   358 		notify_height = $('.notifications').height();
   381 		notify_height = $('.notifications').height();
   359 		//On calcule leurs coordonnées.
   382 		//On calcule leurs coordonnées.
   360 		search_left = ($(window).width() / 2 - notify_width / 2 - notify_margin);
   383 		search_left = ($(window).width() / 2 - notify_width / 2 - notify_margin);
   361 		var img = $('#notify_search').css('background-image');
   384 		var img = $('#notify_search').css('background-image');
   363 	}
   386 	}
   364 	else
   387 	else
   365 	{
   388 	{
   366 		//On les ajoute à la mosaïque.
   389 		//On les ajoute à la mosaïque.
   367 		$('body').append(notification_selection + notification_search);
   390 		$('body').append(notification_selection + notification_search);
   368 		notify_margin = parseInt($('.notifications').css('margin'));
   391 		notify_margin = parseInt($('.notifications').css('margin-left'));
   369 		notify_width = $('.notifications').width();
   392 		notify_width = $('.notifications').width();
   370 		notify_height = $('.notifications').height();
   393 		notify_height = $('.notifications').height();
   371 		//On calcule leurs coordonnées.
   394 		//On calcule leurs coordonnées.
   372 		selection_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   395 		selection_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   373 		search_left = selection_left + notify_width + notify_margin;
   396 		search_left = selection_left + notify_width + notify_margin;
   414     //On l'ajoute à la mosaïque.
   437     //On l'ajoute à la mosaïque.
   415     $('body').append(notification_selection);
   438     $('body').append(notification_selection);
   416 
   439 
   417     //On calcule ses coordonnées et dimensions.
   440     //On calcule ses coordonnées et dimensions.
   418     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   441     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   419     var notify_margin = parseInt($('.notifications').css('margin'));
   442     var notify_margin = parseInt($('.notifications').css('margin-left'));
   420     var selection_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   443     var selection_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   421     
   444     
   422 	if(this.config.mouseInteractions)
   445 	if(this.config.mouseInteractions)
   423 	{
   446 	{
   424 		var img = $('#notify_selection').css('background-image');
   447 		var img = $('#notify_selection').css('background-image');
   460     //On l'ajoute à la mosaïque.
   483     //On l'ajoute à la mosaïque.
   461     $('body').append(notification_search);
   484     $('body').append(notification_search);
   462 
   485 
   463     //On calcule ses coordonnées et dimensions.
   486     //On calcule ses coordonnées et dimensions.
   464     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   487     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   465     var notify_margin = parseInt($('.notifications').css('margin'));
   488     var notify_margin = parseInt($('.notifications').css('margin-left'));
   466     var search_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   489     var search_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   467     
   490     
   468 	if(this.config.mouseInteractions)
   491 	if(this.config.mouseInteractions)
   469 	{
   492 	{
   470 		var img = $('#notify_search').css('background-image');
   493 		var img = $('#notify_search').css('background-image');
   504     var notification_search = "<div id='notify_search' class='notifications'></div>";
   527     var notification_search = "<div id='notify_search' class='notifications'></div>";
   505 	
   528 	
   506 	//On les ajoute à la mosaïque.
   529 	//On les ajoute à la mosaïque.
   507 	$('body').append(notification_selection + notification_search);
   530 	$('body').append(notification_selection + notification_search);
   508 	
   531 	
   509 	var notify_width = $('.notifications').width(), notify_height = $('.notifications').height(), notify_margin = parseInt($('.notifications').css('margin'));
   532 	var notify_width = $('.notifications').width(), notify_height = $('.notifications').height(), notify_margin = parseInt($('.notifications').css('margin-left'));
   510 	
   533 	
   511 	//On calcule leurs coordonnées.
   534 	//On calcule leurs coordonnées.
   512 	var selection_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   535 	var selection_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   513 	var search_left = selection_left + notify_width + notify_margin;
   536 	var search_left = selection_left + notify_width + notify_margin;
   514 	
   537 	
   564     //On les ajoute à la mosaïque.
   587     //On les ajoute à la mosaïque.
   565     $('body').append(notification_search_1gesture);
   588     $('body').append(notification_search_1gesture);
   566     
   589     
   567     //On calcule leurs coordonnées et dimensions.
   590     //On calcule leurs coordonnées et dimensions.
   568     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   591     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   569     var notify_margin = parseInt($('.notifications').css('margin'));
   592     var notify_margin = parseInt($('.notifications').css('margin-left'));
   570     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   593     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   571     
   594     
   572     if(_.include(this.gestures, gestureName))
   595     if(_.include(this.gestures, gestureName))
   573     {
   596     {
   574         $('#notify_search_1gesture').css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + (this.gestureDelRequested ? 'hover' : 'valid') + '/' + gestureName + '.png")');
   597         $('#notify_search_1gesture').css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + (this.gestureDelRequested ? 'hover' : 'valid') + '/' + gestureName + '.png")');
   590     //On les fait apparaître.
   613     //On les fait apparaître.
   591     $('.notifications').css(
   614     $('.notifications').css(
   592     {
   615     {
   593         opacity: "0.9"
   616         opacity: "0.9"
   594     });
   617     });
       
   618 	
       
   619 	if(this.isTablet)
       
   620 	{
       
   621 		this.searchExitIcon();
       
   622 	}
   595 }
   623 }
   596 
   624 
   597 /*
   625 /*
   598  * Affichage de la notification de résultat de gesture & de sélection dans la mosaïque filtrée.
   626  * Affichage de la notification de résultat de gesture & de sélection dans la mosaïque filtrée.
   599  * Est appelé dans le fichier :
   627  * Est appelé dans le fichier :
   614     //On les ajoute à la mosaïque.
   642     //On les ajoute à la mosaïque.
   615     $('body').append(notification_search_1gesture + notification_selection);
   643     $('body').append(notification_search_1gesture + notification_selection);
   616 
   644 
   617     //On calcule leurs coordonnées et dimensions.
   645     //On calcule leurs coordonnées et dimensions.
   618     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   646     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   619     var notify_margin = parseInt($('.notifications').css('margin'));
   647     var notify_margin = parseInt($('.notifications').css('margin-left'));
   620     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   648     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   621     var selection_left = search_1gesture_left + notify_width + notify_margin;
   649     var selection_left = search_1gesture_left + notify_width + notify_margin;
   622     
   650     
   623     if(_.include(this.gestures, gestureName))
   651     if(_.include(this.gestures, gestureName))
   624     {
   652     {
   677     //On les ajoute à la mosaïque.
   705     //On les ajoute à la mosaïque.
   678     $('body').append(notification_swipe);
   706     $('body').append(notification_swipe);
   679     
   707     
   680     //On calcule leurs coordonnées et dimensions.
   708     //On calcule leurs coordonnées et dimensions.
   681     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   709     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   682     var notify_margin = parseInt($('.notifications').css('margin'));
   710     var notify_margin = parseInt($('.notifications').css('margin-left'));
   683     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   711     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
   684     
   712     
   685     var notifyTop = 0, notifyLeft = 0;
   713     var notifyTop = 0, notifyLeft = 0;
   686     
   714     
   687 	if(direction == "left")
   715 	if(direction == "left")
   729     //On les ajoute à la mosaïque.
   757     //On les ajoute à la mosaïque.
   730     $('body').append(notification_move);
   758     $('body').append(notification_move);
   731     
   759     
   732     //On calcule leurs coordonnées et dimensions.
   760     //On calcule leurs coordonnées et dimensions.
   733     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   761     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   734     var notify_margin = parseInt($('.notifications').css('margin'));
   762     var notify_margin = parseInt($('.notifications').css('margin-left'));
   735     var move_left = $(window).width() / 2 - (notify_width) / 2 + notify_margin;
   763     var move_left = $(window).width() / 2 - (notify_width) / 2 + notify_margin;
   736     
   764     
   737     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   765     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   738     
   766     
   739     if(side == -1)
   767     if(side == -1)
   784     //On les ajoute à la mosaïque.
   812     //On les ajoute à la mosaïque.
   785     $('body').append(notification_move + notification_unzoom);
   813     $('body').append(notification_move + notification_unzoom);
   786     
   814     
   787     //On calcule leurs coordonnées et dimensions.
   815     //On calcule leurs coordonnées et dimensions.
   788     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   816     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   789     var notify_margin = parseInt($('.notifications').css('margin'));
   817     var notify_margin = parseInt($('.notifications').css('margin-left'));
   790     var move_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   818     var move_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   791     var unzoom_left = move_left + notify_width + notify_margin;
   819     var unzoom_left = move_left + notify_width + notify_margin;
   792     
   820     
   793     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   821     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   794     
   822     
   848     //On l'ajoute à la mosaïque.
   876     //On l'ajoute à la mosaïque.
   849     $('body').append(notification_unzoom);
   877     $('body').append(notification_unzoom);
   850     
   878     
   851     //On calcule ses coordonnées et dimensions.
   879     //On calcule ses coordonnées et dimensions.
   852     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   880     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   853     var notify_margin = parseInt($('.notifications').css('margin'));
   881     var notify_margin = parseInt($('.notifications').css('margin-left'));
   854     var unzoom_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   882     var unzoom_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   855     
   883     
   856     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   884     var side = $.inArray(parseInt(targetId), this.neighboursIds);
   857     if(side == -1)
   885     if(side == -1)
   858     {
   886     {
   901     //On l'ajoute à la mosaïque.
   929     //On l'ajoute à la mosaïque.
   902     $('body').append(notification_timeline);
   930     $('body').append(notification_timeline);
   903     
   931     
   904     //On calcule ses coordonnées et dimensions.
   932     //On calcule ses coordonnées et dimensions.
   905     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   933     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   906     var notify_margin = parseInt($('.notifications').css('margin'));
   934     var notify_margin = parseInt($('.notifications').css('margin-left'));
   907     var timeline_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   935     var timeline_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   908     
   936     
   909     var notifyTop = 0, notifyLeft = 0;
   937     var notifyTop = 0, notifyLeft = 0;
   910     
   938     
   911 	this.putText($('#notify_timeline'), this.notificationStrings.timeline);
   939 	this.putText($('#notify_timeline'), this.notificationStrings.timeline);
   947     //On l'ajoute à la mosaïque.
   975     //On l'ajoute à la mosaïque.
   948     $('body').append(notification_search);
   976     $('body').append(notification_search);
   949     
   977     
   950     //On calcule ses coordonnées et dimensions.
   978     //On calcule ses coordonnées et dimensions.
   951     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   979     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   952     var notify_margin = parseInt($('.notifications').css('margin'));
   980     var notify_margin = parseInt($('.notifications').css('margin-left'));
   953     var search_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   981     var search_left = $(window).width() / 2 - notify_width / 2 - notify_margin;
   954     
   982     
   955     var notifyTop = 0, notifyLeft = 0;
   983     var notifyTop = 0, notifyLeft = 0;
   956     
   984     
   957 	this.putText($('#notify_search'), this.notificationStrings.search);
   985 	this.putText($('#notify_search'), this.notificationStrings.search);
   992     //On les ajoute à la mosaïque.
  1020     //On les ajoute à la mosaïque.
   993     $('body').append(notification_search + notification_swipe);
  1021     $('body').append(notification_search + notification_swipe);
   994     
  1022     
   995     //On calcule leurs coordonnées et dimensions.
  1023     //On calcule leurs coordonnées et dimensions.
   996     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1024     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
   997     var notify_margin = parseInt($('.notifications').css('margin'));
  1025     var notify_margin = parseInt($('.notifications').css('margin-left'));
   998     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1026     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
   999     var swipe_left = search_left + notify_width + notify_margin;
  1027     var swipe_left = search_left + notify_width + notify_margin;
  1000     
  1028     
  1001     var notifyTop = 0, notifyLeft = 0;
  1029     var notifyTop = 0, notifyLeft = 0;
  1002     
  1030     
  1050     //On les ajoute à la mosaïque.
  1078     //On les ajoute à la mosaïque.
  1051     $('body').append(notification_search + notification_move);
  1079     $('body').append(notification_search + notification_move);
  1052     
  1080     
  1053     //On calcule leurs coordonnées et dimensions.
  1081     //On calcule leurs coordonnées et dimensions.
  1054     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1082     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1055     var notify_margin = parseInt($('.notifications').css('margin'));
  1083     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1056     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1084     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1057     var move_left = search_left + notify_width + notify_margin;
  1085     var move_left = search_left + notify_width + notify_margin;
  1058     
  1086     
  1059     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1087     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1060     
  1088     
  1111     //On les ajoute à la mosaïque.
  1139     //On les ajoute à la mosaïque.
  1112     $('body').append(notification_search + notification_move + notification_unzoom);
  1140     $('body').append(notification_search + notification_move + notification_unzoom);
  1113     
  1141     
  1114     //On calcule leurs coordonnées et dimensions.
  1142     //On calcule leurs coordonnées et dimensions.
  1115     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1143     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1116     var notify_margin = parseInt($('.notifications').css('margin'));
  1144     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1117     var search_left = $(window).width() / 2 - (notify_width * 3 + notify_margin * 4) / 2;
  1145     var search_left = $(window).width() / 2 - (notify_width * 3 + notify_margin * 4) / 2;
  1118     var move_left = search_left + notify_width + notify_margin;
  1146     var move_left = search_left + notify_width + notify_margin;
  1119     var unzoom_left = move_left + notify_width + notify_margin;
  1147     var unzoom_left = move_left + notify_width + notify_margin;
  1120     
  1148     
  1121     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1149     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1181     //On les ajoute à la mosaïque.
  1209     //On les ajoute à la mosaïque.
  1182     $('body').append(notification_search + notification_unzoom);
  1210     $('body').append(notification_search + notification_unzoom);
  1183     
  1211     
  1184     //On calcule leurs coordonnées et dimensions.
  1212     //On calcule leurs coordonnées et dimensions.
  1185     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1213     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1186     var notify_margin = parseInt($('.notifications').css('margin'));
  1214     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1187     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1215     var search_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1188     var unzoom_left = search_left + notify_width + notify_margin;
  1216     var unzoom_left = search_left + notify_width + notify_margin;
  1189     
  1217     
  1190     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1218     var side = $.inArray(parseInt(targetId), this.neighboursIds);
  1191     
  1219     
  1244     //On spécifie les notifications en div.
  1272     //On spécifie les notifications en div.
  1245     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1273     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1246     
  1274     
  1247     //On les ajoute à la mosaïque.
  1275     //On les ajoute à la mosaïque.
  1248     $('body').append(notification_search_1gesture);
  1276     $('body').append(notification_search_1gesture);
  1249     
  1277 	
  1250     //On calcule leurs coordonnées et dimensions.
  1278     //On calcule leurs coordonnées et dimensions.
  1251     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1279     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1252     var notify_margin = parseInt($('.notifications').css('margin'));
  1280     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1253     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
  1281     var point_left = $(window).width() / 2 - (notify_width) / 2 - notify_margin;
  1254     
  1282     
  1255     if(_.include(this.gestures, gestureName))
  1283     if(_.include(this.gestures, gestureName))
  1256     {
  1284     {
  1257         $('#notify_search_1gesture').css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + mode + '/' + gestureName + '.png")');
  1285         $('#notify_search_1gesture').css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + mode + '/' + gestureName + '.png")');
  1273     //On les fait apparaître.
  1301     //On les fait apparaître.
  1274     $('.notifications').css(
  1302     $('.notifications').css(
  1275     {
  1303     {
  1276         opacity: "0.9"
  1304         opacity: "0.9"
  1277     });
  1305     });
       
  1306 	
       
  1307 	if(this.isTablet)
       
  1308 	{
       
  1309 		this.searchExitIcon();
       
  1310 	}
  1278 }
  1311 }
  1279 
  1312 
  1280 /*
  1313 /*
  1281  * Affichage de la notification de résultat & de swipe dans une vidéo de recherche.
  1314  * Affichage de la notification de résultat & de swipe dans une vidéo de recherche.
  1282  * Est appelé dans le fichier :
  1315  * Est appelé dans le fichier :
  1296     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1329     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1297     var notification_swipe = "<div id='notify_swipe' class='notifications'></div>";
  1330     var notification_swipe = "<div id='notify_swipe' class='notifications'></div>";
  1298     
  1331     
  1299     //On les ajoute à la mosaïque.
  1332     //On les ajoute à la mosaïque.
  1300     $('body').append(notification_search_1gesture + notification_swipe);
  1333     $('body').append(notification_search_1gesture + notification_swipe);
  1301     
  1334 	
  1302     //On calcule leurs coordonnées et dimensions.
  1335     //On calcule leurs coordonnées et dimensions.
  1303     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1336     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1304     var notify_margin = parseInt($('.notifications').css('margin'));
  1337     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1305     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1338     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1306     var swipe_left = search_1gesture_left + notify_width + notify_margin;
  1339     var swipe_left = search_1gesture_left + notify_width + notify_margin;
  1307     
  1340     
  1308     if(_.include(this.gestures, gestureName))
  1341     if(_.include(this.gestures, gestureName))
  1309     {
  1342     {
  1362     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1395     var notification_search_1gesture = "<div id='notify_search_1gesture' class='notifications'></div>";
  1363     var notification_move = "<div id='notify_move' class='notifications'></div>";
  1396     var notification_move = "<div id='notify_move' class='notifications'></div>";
  1364     
  1397     
  1365     //On les ajoute à la mosaïque.
  1398     //On les ajoute à la mosaïque.
  1366     $('body').append(notification_search_1gesture + notification_move);
  1399     $('body').append(notification_search_1gesture + notification_move);
  1367     
  1400 	
  1368     //On calcule leurs coordonnées et dimensions.
  1401     //On calcule leurs coordonnées et dimensions.
  1369     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1402     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1370     var notify_margin = parseInt($('.notifications').css('margin'));
  1403     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1371     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1404     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1372     var move_left = search_1gesture_left + notify_width + notify_margin;
  1405     var move_left = search_1gesture_left + notify_width + notify_margin;
  1373     
  1406     
  1374     if(_.include(this.gestures, gestureName))
  1407     if(_.include(this.gestures, gestureName))
  1375     {
  1408     {
  1406     //On les fait apparaître.
  1439     //On les fait apparaître.
  1407     $('.notifications').css(
  1440     $('.notifications').css(
  1408     {
  1441     {
  1409         opacity: "0.9"
  1442         opacity: "0.9"
  1410     });
  1443     });
       
  1444 	
       
  1445 	if(this.isTablet)
       
  1446 	{
       
  1447 		this.searchExitIcon();
       
  1448 	}
  1411 }
  1449 }
  1412 
  1450 
  1413 /*
  1451 /*
  1414  * Affichage de la notification de résultat, de move vers un voisin & de dézoom dans une vidéo de recherche.
  1452  * Affichage de la notification de résultat, de move vers un voisin & de dézoom dans une vidéo de recherche.
  1415  * Est appelé dans le fichier :
  1453  * Est appelé dans le fichier :
  1433     //On les ajoute à la mosaïque.
  1471     //On les ajoute à la mosaïque.
  1434     $('body').append(notification_search_1gesture + notification_move + notification_unzoom);
  1472     $('body').append(notification_search_1gesture + notification_move + notification_unzoom);
  1435     
  1473     
  1436     //On calcule leurs coordonnées et dimensions.
  1474     //On calcule leurs coordonnées et dimensions.
  1437     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1475     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1438     var notify_margin = parseInt($('.notifications').css('margin'));
  1476     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1439     var search_1gesture_left = $(window).width() / 2 - (notify_width * 3 + notify_margin * 4) / 2;
  1477     var search_1gesture_left = $(window).width() / 2 - (notify_width * 3 + notify_margin * 4) / 2;
  1440     var move_left = search_1gesture_left + notify_width + notify_margin;
  1478     var move_left = search_1gesture_left + notify_width + notify_margin;
  1441     var unzoom_left = move_left + notify_width + notify_margin;
  1479     var unzoom_left = move_left + notify_width + notify_margin;
  1442     
  1480     
  1443     if(_.include(this.gestures, gestureName))
  1481     if(_.include(this.gestures, gestureName))
  1482     //On les fait apparaître.
  1520     //On les fait apparaître.
  1483     $('.notifications').css(
  1521     $('.notifications').css(
  1484     {
  1522     {
  1485         opacity: "0.9"
  1523         opacity: "0.9"
  1486     });
  1524     });
       
  1525 	
       
  1526 	if(this.isTablet)
       
  1527 	{
       
  1528 		this.searchExitIcon();
       
  1529 	}
  1487 }
  1530 }
  1488 
  1531 
  1489 /*
  1532 /*
  1490  * Affichage de la notification de résultat & de dézoom dans une vidéo de recherche.
  1533  * Affichage de la notification de résultat & de dézoom dans une vidéo de recherche.
  1491  * Est appelé dans le fichier :
  1534  * Est appelé dans le fichier :
  1507     //On les ajoute à la mosaïque.
  1550     //On les ajoute à la mosaïque.
  1508     $('body').append(notification_search_1gesture + notification_unzoom);
  1551     $('body').append(notification_search_1gesture + notification_unzoom);
  1509     
  1552     
  1510     //On calcule leurs coordonnées et dimensions.
  1553     //On calcule leurs coordonnées et dimensions.
  1511     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1554     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1512     var notify_margin = parseInt($('.notifications').css('margin'));
  1555     var notify_margin = parseInt($('.notifications').css('margin-left'));
  1513     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1556     var search_1gesture_left = $(window).width() / 2 - (notify_width * 2 + notify_margin * 3) / 2;
  1514     var unzoom_left = search_1gesture_left + notify_width + notify_margin;
  1557     var unzoom_left = search_1gesture_left + notify_width + notify_margin;
  1515     
  1558     
  1516     if(_.include(this.gestures, gestureName))
  1559     if(_.include(this.gestures, gestureName))
  1517     {
  1560     {
  1566         var notification_curves = "<div class='notifications' id='notify_curves'></div>";
  1609         var notification_curves = "<div class='notifications' id='notify_curves'></div>";
  1567         $('body').append(notification_curves);
  1610         $('body').append(notification_curves);
  1568         
  1611         
  1569         //On calcule leurs dimensions et coordonnées.
  1612         //On calcule leurs dimensions et coordonnées.
  1570         var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1613         var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1571         var notify_margin = parseInt($('.notifications').css('margin'));
  1614         var notify_margin = parseInt($('.notifications').css('margin-left'));
  1572         var curves_left = $(window).width() / 2 - (notify_width + notify_margin * 2) / 2;
  1615         var curves_left = $(window).width() / 2 - (notify_width + notify_margin * 2) / 2;
  1573         
  1616         
  1574         $('#notify_curves').css(
  1617         $('#notify_curves').css(
  1575         {
  1618         {
  1576             left: curves_left,
  1619             left: curves_left,
  1584     }
  1627     }
  1585     
  1628     
  1586     //Sinon, on les met dans un tableau.
  1629     //Sinon, on les met dans un tableau.
  1587     var gestures_tab = gestures.split(';');
  1630     var gestures_tab = gestures.split(';');
  1588     
  1631     
  1589     var notifications_curves_gestures = '';
  1632     var notifications_curves_gestures = "<div id='notify_curves_container'>";
  1590     
  1633     
  1591     //On crée autant de notifications qu'il y a de gestures.
  1634     //On crée autant de notifications qu'il y a de gestures.
  1592     for(var i = 0 ; i < gestures_tab.length ; i++)
  1635     for(var i = 0 ; i < gestures_tab.length ; i++)
  1593     {
  1636     {
  1594         notifications_curves_gestures += "<div class='notifications' id='notify_curves_" + gestures_tab[i] + "'></div>";
  1637         notifications_curves_gestures += "<div class='notification_curves' id='notify_curves_" + gestures_tab[i] + "'></div>";
  1595     }
  1638     }
       
  1639 	
       
  1640 	notifications_curves_gestures += "</div>";
  1596     
  1641     
  1597     //On les ajoute à la mosaïque.
  1642     //On les ajoute à la mosaïque.
  1598     $('body').append(notifications_curves_gestures);
  1643     $('body').append(notifications_curves_gestures);
  1599     
  1644     
  1600     //On calcule leurs dimensions.
  1645     //On calcule leurs dimensions.
  1601     var notify_width = $('.notifications').width(), notify_height = $('.notifications').height();
  1646     var notify_width = $('.notification_curves').width(), notify_height = $('.notification_curves').height();
  1602     var notify_margin = parseInt($('.notifications').css('margin'));
  1647     var notify_margin = parseInt($('.notification_curves').css('margin-left'));
  1603     var curves_gestures_left = [];
  1648 	
       
  1649 	//Nombre de notifications dans une ligne.
       
  1650 	var notify_in_a_row = Math.floor($(window).width() / (+notify_width + 2 * notify_margin));
       
  1651 	//Espace libre restant sur la ligne.
       
  1652 	var free_space = $(window).width() - notify_in_a_row * (+notify_width + 2 * notify_margin);
       
  1653 	
       
  1654 	//On met à jour le container.
       
  1655 	$('#notify_curves_container').css(
       
  1656 	{
       
  1657 		height: Math.ceil(gestures_tab.length * (+notify_width + 2 * notify_margin) / $(window).width()),
       
  1658 		'margin-left': free_space / 2,
       
  1659 		'margin-right': free_space / 2
       
  1660 	});
       
  1661 	
       
  1662     // var curves_gestures_left = [];
  1604     
  1663     
  1605     //On calcule leurs dimensions et leur backgrounds.
  1664     //On calcule leurs dimensions et leur backgrounds.
  1606     curves_gestures_left[0] = $(window).width() / 2 - (notify_width * (gestures_tab.length) + notify_margin * (gestures_tab.length + 2)) / 2;
  1665     // curves_gestures_left[0] = $(window).width() / 2 - (notify_width * (gestures_tab.length) + notify_margin * (gestures_tab.length + 2)) / 2;
  1607     
  1666     
  1608     for(var i = 0 ; i < gestures_tab.length ; i++)
  1667     for(var i = 0 ; i < gestures_tab.length ; i++)
  1609     {
  1668     {
  1610         //On va chercher leurs backgrounds.
  1669         //On va chercher leurs backgrounds.
  1611         $('#notify_curves_' + gestures_tab[i]).css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + 'normal/' + gestures_tab[i] + '.png")');
  1670         $('#notify_curves_' + gestures_tab[i]).css('background-image', 'url("./pictos/big/' + (this.config.mouseInteractions ? 'MI/' : '') + 'normal/' + gestures_tab[i] + '.png")');
  1612         
  1671         
  1613         //On calcule leurs coordonnées.
  1672         //On calcule leurs coordonnées.
  1614         if(i+1 < gestures_tab.length)
  1673         if(i+1 < gestures_tab.length)
  1615         {
  1674         {
  1616             curves_gestures_left[i+1] = curves_gestures_left[i] + notify_width + notify_margin * 2;
  1675             // curves_gestures_left[i+1] = curves_gestures_left[i] + notify_width + notify_margin * 2;
  1617         }
  1676         }
  1618         
  1677         
  1619         //On les place.
  1678         //On les place.
  1620         $('#notify_curves_' + gestures_tab[i]).css('left', curves_gestures_left[i]);
  1679         // $('#notify_curves_' + gestures_tab[i]).css('left', curves_gestures_left[i]);
  1621 		this.putText($('#notify_curves_' + gestures_tab[i]), this.notificationStrings[gestures_tab[i]]);
  1680 		this.putText($('#notify_curves_' + gestures_tab[i]), this.notificationStrings[gestures_tab[i]]);
  1622     }
  1681     }
  1623     
  1682     
  1624     //On les fait apparaître.
  1683     //On les fait apparaître.
  1625     $('.notifications').css(
  1684     $('.notification_curves').css(
  1626     {
  1685     {
  1627         opacity: "0.9"
  1686         opacity: "0.9"
  1628     });
  1687     });
  1629 }
  1688 }
  1630 
  1689 
  1641  * curvesDetector > fonction updateDists.
  1700  * curvesDetector > fonction updateDists.
  1642 */
  1701 */
  1643 Mosaic.prototype.removeNotifications = function()
  1702 Mosaic.prototype.removeNotifications = function()
  1644 {
  1703 {
  1645     $('.notifications').remove();
  1704     $('.notifications').remove();
       
  1705     $('#notify_curves_container').remove();
       
  1706     $('.notification_curves').remove();
  1646 }
  1707 }
  1647 
  1708 
  1648 /*
  1709 /*
  1649  * Place un texte sur la notification.
  1710  * Place un texte sur la notification.
  1650  * Est appelé dans chaque fonction servant à notifier dans le fichier de notification.
  1711  * Est appelé dans chaque fonction servant à notifier dans le fichier de notification.
  1669 	$('body').append(helpIcon);
  1730 	$('body').append(helpIcon);
  1670 	//On spécifie ses coordonnées.
  1731 	//On spécifie ses coordonnées.
  1671 	$('#helpIcon').css(
  1732 	$('#helpIcon').css(
  1672 	{
  1733 	{
  1673 		top: 0,
  1734 		top: 0,
  1674 		left: $(window).width() - $('#helpIcon').width() - 2 * parseInt($('#helpIcon').css('margin'))
  1735 		left: $(window).width() - $('#helpIcon').width() - 2 * parseInt($('#helpIcon').css('margin-left'))
  1675 	});
  1736 	});
  1676 }
  1737 }
  1677 
  1738 
  1678 /*
  1739 /*
  1679  * Supprime l'icone d'aide.
  1740  * Supprime l'icone d'aide.
  1707 	
  1768 	
  1708 	$('#helpIcon').animate(
  1769 	$('#helpIcon').animate(
  1709 	{
  1770 	{
  1710 		width: 100,
  1771 		width: 100,
  1711 		height: 100,
  1772 		height: 100,
  1712 		left: $(window).width() - 100 - 2 * parseInt($('#helpIcon').css('margin'))
  1773 		left: $(window).width() - 100 - 2 * parseInt($('#helpIcon').css('margin-left'))
  1713 	}, this.config.timeShowBigHelp, function()
  1774 	}, this.config.timeShowBigHelp, function()
  1714 	{
  1775 	{
  1715 		_this.isHelpIconZoomed = true;
  1776 		_this.isHelpIconZoomed = true;
  1716 		_this.isHelpIconZooming = false;
  1777 		_this.isHelpIconZooming = false;
  1717 	});
  1778 	});
  1738 	
  1799 	
  1739 	$('#helpIcon').animate(
  1800 	$('#helpIcon').animate(
  1740 	{
  1801 	{
  1741 		width: 50,
  1802 		width: 50,
  1742 		height: 50,
  1803 		height: 50,
  1743 		left: $(window).width() - 50 - 2 * parseInt($('#helpIcon').css('margin'))
  1804 		left: $(window).width() - 50 - 2 * parseInt($('#helpIcon').css('margin-left'))
  1744 	}, this.config.timeShowBigHelp, function()
  1805 	}, this.config.timeShowBigHelp, function()
  1745 	{
  1806 	{
  1746 		_this.isHelpIconZoomed = false;
  1807 		_this.isHelpIconZoomed = false;
  1747 		_this.isHelpIconZooming = false;
  1808 		_this.isHelpIconZooming = false;
  1748 	});
  1809 	});
  1749 }
  1810 }
       
  1811 
       
  1812 /*
       
  1813  * Affiche l'icone de sortie pour tablettes.
       
  1814 */
       
  1815 Mosaic.prototype.exitIcon = function()
       
  1816 {
       
  1817 	this.removeExitIcon();
       
  1818 	//On construit le div.
       
  1819 	var exitIcon = "<img id='exitIcon' src='./img/exitIcon.png' />";
       
  1820 	//On l'ajoute.
       
  1821 	$('body').append(exitIcon);
       
  1822 	//On spécifie ses coordonnées.
       
  1823 	$('#exitIcon').css(
       
  1824 	{
       
  1825 		top: 0,
       
  1826 		left: $(window).width() - $('#exitIcon').width() - 2 * parseInt($('#exitIcon').css('margin-left')),
       
  1827 		'z-index': 1000
       
  1828 	});
       
  1829 }
       
  1830 
       
  1831 /*
       
  1832  * Supprime l'icone de sortie pour tablettes.
       
  1833 */
       
  1834 Mosaic.prototype.removeExitIcon = function()
       
  1835 {
       
  1836 	$('#exitIcon').remove();
       
  1837 }
       
  1838 
       
  1839 /*
       
  1840  * Affiche l'icone de retour à la mosaïque pour tablettes.
       
  1841 */
       
  1842 Mosaic.prototype.homeIcon = function()
       
  1843 {
       
  1844 	this.removeHomeIcon();
       
  1845 	//On construit le div.
       
  1846 	var homeIcon = "<img id='homeIcon' src='./img/homeIcon.png' />";
       
  1847 	//On l'ajoute.
       
  1848 	$('body').append(homeIcon);
       
  1849 	//On spécifie ses coordonnées.
       
  1850 	$('#homeIcon').css(
       
  1851 	{
       
  1852 		top: 0,
       
  1853 		left: 0,
       
  1854 		'z-index': 900
       
  1855 	});
       
  1856 }
       
  1857 
       
  1858 /*
       
  1859  * Supprime l'icone de sortie pour tablettes.
       
  1860 */
       
  1861 Mosaic.prototype.removeHomeIcon = function()
       
  1862 {
       
  1863 	$('#homeIcon').remove();
       
  1864 }
       
  1865 
       
  1866 /*
       
  1867  * Affiche l'icone de sortie de recherche pour tablettes.
       
  1868 */
       
  1869 Mosaic.prototype.searchExitIcon = function()
       
  1870 {
       
  1871 	//S'il n'y a pas de notification de recherche, on s'en va.
       
  1872 	if($('#notify_search_1gesture').length == 0)
       
  1873 	{
       
  1874 		return;
       
  1875 	}
       
  1876 	
       
  1877 	this.removeSearchExitIcon();
       
  1878 	//On construit le div.
       
  1879 	var searchExitIcon = "<img id='searchExitIcon' src='./img/exitIcon.png' />";
       
  1880 	//On l'ajoute.
       
  1881 	$('body').append(searchExitIcon);
       
  1882 	//On spécifie ses coordonnées.
       
  1883 	$('#searchExitIcon').css(
       
  1884 	{
       
  1885 		top: 0,
       
  1886 		left: +$('#notify_search_1gesture').position().left + $('#notify_search_1gesture').width() - $('#searchExitIcon').width() - parseInt($('#searchExitIcon').css('margin-left')) / 2,
       
  1887 		'z-index': 900
       
  1888 	});
       
  1889 }
       
  1890 
       
  1891 /*
       
  1892  * Supprime l'icone de sortie de recherche pour tablettes.
       
  1893 */
       
  1894 Mosaic.prototype.removeSearchExitIcon = function()
       
  1895 {
       
  1896 	$('#searchExitIcon').remove();
       
  1897 }