front_idill/src/index.html
author bastiena
Thu, 21 Jun 2012 17:51:27 +0200
changeset 40 0f31ebcc62b7
parent 35 4267d6d27a7d
child 44 8393d3473b98
permissions -rw-r--r--
MID : dist updated with a new installer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     1
<!--
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     2
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     3
* This file is part of the TraKERS\Front IDILL package.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     4
*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     5
* (c) IRI <http://www.iri.centrepompidou.fr/>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     6
*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     7
* For the full copyright and license information, please view the LICENSE
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     8
* file that was distributed with this source code.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
     9
*/
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    10
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    11
/*
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    12
 * Projet : TraKERS
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    13
 * Module : Front IDILL
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    14
 * Fichier : index.html
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    15
 * 
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    16
 * Auteur : alexandre.bastien@iri.centrepompidou.fr
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    17
 * 
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    18
 * Fonctionnalités : Centralise les différents éléments du Front IDILL, tels que les classes javascript, les fonctions jQuery, les css.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    19
 */
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    20
-->
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    21
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    22
<!doctype html>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    23
<html>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    24
    <head>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    25
        <!-- On inclut les styles et les scripts utilisés. -->
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    26
        <title>IDILL</title>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    27
        <meta charset="UTF-8" />
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    28
        <link rel="stylesheet" type="text/css" href="./mosaic/css/reset.css" />
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    29
        <link rel="stylesheet/less" type="text/css" href="./mosaic/css/mosaic.less" />
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    30
        <script type="text/javascript" src="../lib/less-1.3.0.min.js"></script>
33
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    31
        <script type="text/javascript" src="../lib/underscore-min.js"></script>
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    32
        <script type="text/javascript" src="../lib/jquery.min.js"></script>
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    33
        <script type="text/javascript" src="../lib/jquery-ui.min.js"></script>
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    34
        <script type="text/javascript" src="./mosaic/js/mosaic.js"></script>
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    35
        <script type="text/javascript" src="./mosaic/js/localMosaic.js"></script>
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    36
		<script type="text/javascript" src="./player/metadataplayer/LdtPlayer-core.js"></script>
33
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    37
		<script type="text/javascript" src="../lib/paper.js"></script>
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    38
		<link rel="stylesheet" type="text/css" href="./search/css/searchCanvas.css" />
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    39
		<script type="text/javascript" src="./search/js/searchCanvas.js"></script>
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    40
    </head>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    41
    
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    42
    <body>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    43
        <!-- Ce div stocke la mosaïque. -->
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    44
        <div id="mainPanel"></div>
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    45
		<div class="player" id="video"></div>
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    46
		<div class="LdtPlayer" id="LdtPlayer"></div>
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    47
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    48
        <!-- SET AN EMPTY DIV TO BE POPULATED WITH CONTENT VIA JQUERY -->
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    49
        <div class="test" style="color: #FFFFFF"></div>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    50
        
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    51
        <!-- Scripts principaux. -->
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    52
        <script type="text/javascript">
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    53
            //Longueur de la mosaïques et nombre d'images à afficher (seront importés des paramètres du Middleware).
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    54
			var default_parameters = new Object();
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    55
			default_parameters['local'] = true;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    56
			default_parameters['length'] = 5;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    57
			default_parameters['imagesToShow'] = 20;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    58
			default_parameters['totalImages'] = 23;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    59
			default_parameters['timePrezoom'] = 500;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    60
			default_parameters['timePreUnzoom'] = 200;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    61
			default_parameters['timeZoom'] = 500;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    62
			default_parameters['timeUnzoom'] = 400;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    63
			default_parameters['timeNeighbourGlowing'] = 1000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    64
			default_parameters['timeNeighbourUnglowing'] = 1000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    65
			default_parameters['timeMovingToNeighbour'] = 1000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    66
			default_parameters['timeSearchFade'] = 2000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    67
			default_parameters['timeNotifyFade'] = 2000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    68
			default_parameters['timeFilterFade'] = 2000;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    69
			default_parameters['timeFilling'] = 500;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    70
			default_parameters['zoomPercentage'] = 0.80;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    71
			default_parameters['prezoomPercentage'] = 0.25;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    72
			default_parameters['zoomedMargin'] = 42;
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    73
			
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    74
            /*var length = 5, imagesToShow = 20, totalImages = 23;
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    75
            //Temps de chargement du prezoom en ms (seront importés des paramètres du Middleware).
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    76
            var timePrezoom = 500, timePreUnzoom = 200, timeZoom = 500, timeUnzoom = 400;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    77
            var timeNeighbourGlowing = 1000, timeNeighbourUnglowing = 1000, timeMovingToNeighbour = 1000;
33
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    78
			var timeSearchFade = 2000;
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    79
			var timeNotifyFade = 2000;
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
    80
            var zoomPercentage = 0.80, prezoomPercentage = 0.25;
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    81
            var zoomedMargin = 42;*/
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    82
            //On instancie la mosaïque.
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    83
            
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    84
            //On spécifie les attributs de temps.
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    85
            /*mos.zoomTime = timeZoom;
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    86
            mos.unzoomTime = timeUnzoom;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    87
            mos.preZoomTime = timePrezoom;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    88
            mos.preUnzoomTime = timePreUnzoom;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    89
            mos.timeNeighbourGlowing = timeNeighbourGlowing;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    90
            mos.timeNeighbourUnglowing = timeNeighbourUnglowing;
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    91
            mos.timeMovingToNeighbour = timeMovingToNeighbour;
33
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    92
			mos.timeSearchFade = timeSearchFade;
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
    93
			mos.timeNotifyFade = timeNotifyFade;*/
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    94
            //On instancie une mosaïque locale pour le zoom total (pas encore implémenté).
33
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    95
            //var lMos = new localMosaic(length, imagesToShow, zoomedMargin);
2d9b15f99b4e Front IDILL :
bastiena
parents: 32
diff changeset
    96
            //mos.localMos = lMos;
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    97
            //Tableau d'images de test pour peupler la mosaïque.
32
4003f84cd349 Front IDILL :
bastiena
parents: 31
diff changeset
    98
            /*var imgs = [];
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
    99
            for(var i = 0 ; i < 42 ; i++)
31
2c7fc855eba8 FRONT IDILL :
bastiena
parents: 30
diff changeset
   100
			{
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   101
                imgs[i] = i + '.jpg';
32
4003f84cd349 Front IDILL :
bastiena
parents: 31
diff changeset
   102
			}*/
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   103
            
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   104
            //Si la page a chargé, on raffraichit la mosaïque.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   105
            $(document).ready(function ()
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   106
            {
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
   107
				var mos = new mosaic('./config.json', default_parameters);
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
   108
                //mos.loadMosaic();
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   109
                
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   110
                $('.snapshotDivs').mouseenter(function ()
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   111
                {
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   112
                    //On effectue un prézoom dès qu'on va sur une image.
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   113
                    mos.preZoom($(this));
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   114
                });
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   115
                $('body').keypress(function (event)
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   116
                {
35
4267d6d27a7d Front IDILL :
bastiena
parents: 33
diff changeset
   117
					mos.manageControlEvents(event);
30
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   118
                });
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   119
            });
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   120
        </script>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   121
    </body>
45c889eae324 Front IDILL :
bastiena
parents:
diff changeset
   122
</html>