web/client.php
changeset 413 972af2c4af80
parent 408 4141c5821c98
child 415 593250f3a286
--- a/web/client.php	Thu Dec 15 06:08:08 2011 +0100
+++ b/web/client.php	Thu Dec 15 06:08:51 2011 +0100
@@ -48,7 +48,7 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>Live Video and Annotation</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=9" />
 
     <!-- FONT -->
     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
@@ -71,11 +71,17 @@
 
     <script type="text/javascript">
     l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
+    
+    function add_grammar(value) {
+        var _st = $('#status'),
+            _val = _st.val();
+        _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
+    }
+    
     $(document).ready(function() {
         
         $("#accordeon li.acctitre").click(function() {
-            $("#accordeon li.acctexte").slideUp();
-            $(this).next().dequeue().slideDown();
+            $("#accordeon li.acctexte").slideToggle();
         })
 
             //$("txt").hide();
@@ -85,12 +91,6 @@
             $("#IDENTIFIER").click(function() {
                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
             });
-
-
-            function add_grammar(value) {
-                $('#status').val($('#status').val()+value+" ");
-                $('#status').change();
-            }
             
             // BUTTONS
             $(".tweetButton").click(function() {
@@ -173,6 +173,7 @@
             <div id="colgauche">
                 <div class="barre">
                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
+                    <div id="minilogo"></div>
                     <ul class="menu">
                         <li>
                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
@@ -306,9 +307,24 @@
                         <p><?php echo($translate->_('config__description')); ?></p>
                     </li>
                     <li class="acctitre">
-                        <h3><?php echo $translate->_('Tagcloud'); ?></h3>
+                        <h3><?php echo($translate->_('keywords')); ?></h3>
                     </li>
-                    <li class="acctexte hidden" id="motscles"></li>
+                    <li class="acctexte hidden">
+                        <div class="accsubtitle">
+                            <div class="aroundsubtitle">
+                                <h4><?php echo($translate->_('suggested')); ?></h4>
+                            </div>
+                        </div>
+                        <div class="tagcloud" id="suggkw"></div>
+                    </li>
+                    <li class="acctexte hidden">
+                        <div class="accsubtitle">
+                            <div class="aroundsubtitle">
+                                <h4><?php echo($translate->_('contextual')); ?></h4>
+                            </div>
+                        </div>
+                        <div class="tagcloud" id="motscles"></div>
+                    </li>
                 </ul>
             </div>
             <div class="footer">
@@ -326,5 +342,9 @@
             <div id="hovercontent"></div>
             <div id="hoverarrow"></div>
         </div>
+        <ul id="hoverkw">
+            <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
+            <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
+        </ul>
   </body>
 </html>
\ No newline at end of file