Code

share/style.css: Fix the ":hover" pseudo-classes.
[collection4.git] / share / collection.js
index 99684524192ad31a08f0e67a9be5326134b9eef1..d3fb11c6244cf6789d9120e66cb77b9e9d63e8de 100644 (file)
@@ -1,7 +1,7 @@
 function format_instance(inst)
 {
   return ("<li class=\"instance\"><a href=\"" + location.pathname
-      + "?action=show_graph;" + inst.params + "\">" + inst.description
+      + "?action=show_instance;" + inst.params + "\">" + inst.description
       + "</a></li>");
 }
 
@@ -58,7 +58,10 @@ $(document).ready(function() {
 
     $("#search-input").blur (function()
     {
-      $("#search-suggest").hide ();
+      window.setTimeout (function ()
+      {
+        $("#search-suggest").hide ();
+      }, 500);
     });
 
     $("#search-input").focus (function()
@@ -78,6 +81,22 @@ $(document).ready(function() {
     {
       update_search_suggestions ();
     });
+
+    $(".graph-img").append ("<div class=\"graph-buttons presets\">"
+        + "<div class=\"graph-button\" >H</div>"
+        + "<div class=\"graph-button\" >D</div>"
+        + "<div class=\"graph-button\" >W</div>"
+        + "<div class=\"graph-button\" >M</div>"
+        + "<div class=\"graph-button\" >Y</div>"
+        + "<div class=\"graph-button\" >!</div>"
+        + "</div>"
+        + "<div class=\"graph-buttons navigation\">"
+        + "<div class=\"graph-button\" >←</div>"
+        + "<div class=\"graph-button\" >−</div>"
+        + "<div class=\"graph-button\" >+</div>"
+        + "<div class=\"graph-button\" >→</div>"
+        + "</div>"
+        );
 });
 
 /* vim: set sw=2 sts=2 et fdm=marker : */