web/src/js/live-polemic.js
changeset 1575 ce1d5b0d1479
parent 1571 4a1e6952afe5
child 1581 2d713fdd532f
--- a/web/src/js/live-polemic.js	Thu Nov 07 23:54:18 2024 +0100
+++ b/web/src/js/live-polemic.js	Fri Nov 15 01:29:53 2024 +0100
@@ -7,8 +7,10 @@
     return (/^[A-Z][a-z]{2,8}[0-9]{4,6}$/.test(username))
 }
 
+let annotations = global.annotations;
+
 if (typeof annotations == "undefined" || !annotations) {
-    var annotations = {
+    annotations = {
         "default" : {
             "colors" : {
                 "h" : 0,
@@ -16,7 +18,7 @@
             }
         },
         "positive" : {
-            "display_name" : "++ | accord",
+            "display_name" : "++ | important",
             "keywords" : [ /\+\+/ ],
             "colors" : {
                 "h" : .3,
@@ -24,15 +26,15 @@
             }
         },
         "negative" : {
-            "display_name" : "-- | désaccord",
-            "keywords" : [ /\-\-/ ],
+            "display_name" : "** | index",
+            "keywords" : [ /\*\*/ ],
             "colors" : {
                 "h" : 0,
                 "s" : .8
             }
         },
         "reference" : {
-            "display_name" : "== | référence",
+            "display_name" : "== | commentaire",
             "keywords" : [ /\=\=/ ],
             "colors" : {
                 "h" : .16,
@@ -40,14 +42,14 @@
             }
         },
         "question" : {
-            "display_name" : "?? | question",
+            "display_name" : "?? | trouble",
             "keywords" : [ /\?\?/ ],
             "colors" : {
                 "h" : .6,
                 "s" : .8
             }
         }
-    }    
+    }
 }
 
 function getGlobal(varkey, defaultValue) {