Code

share/collection.js: Add the navigation buttons to the graphs.
authorFlorian Forster <ff@octo.it>
Sun, 27 Jun 2010 11:56:53 +0000 (13:56 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 27 Jun 2010 11:56:53 +0000 (13:56 +0200)
They don't work yet, though.

share/collection.js
share/style.css

index 75391b9a8343015f2bed538cb9c8531cc633999c..d3fb11c6244cf6789d9120e66cb77b9e9d63e8de 100644 (file)
@@ -81,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 : */
index 094a4aefa9039d32f869b579cff7d04029413a0c..ad835779fc60da7bbeda47ada35797f2fa3db02e 100644 (file)
@@ -47,6 +47,13 @@ a:hover
        vertical-align: top;
 }
 
+#layout-middle-center h1,
+#layout-middle-center h2,
+#layout-middle-center h3
+{
+       clear: both;
+}
+
 #logo-canvas
 {
        display: block;
@@ -153,3 +160,54 @@ a:hover
        border-bottom: 1px solid silver;
        background-color: rgb(252,252,252);
 }
+
+.graph-img
+{
+       position: relative;
+       float: left;
+       clear: both;
+}
+
+.graph-img .graph-buttons.navigation
+{
+       position: absolute;
+       right: 5px;
+       bottom: 5px;
+}
+
+.graph-img .graph-buttons.presets
+{
+       position: absolute;
+       right: 5px;
+       top: 5px;
+}
+
+.graph-buttons .graph-button
+{
+       width: 1em;
+       height: 1em;
+       border: 1px solid gray;
+       text-align: center;
+       background-color: rgba(255,255,255,.8);
+       color: gray;
+       cursor: pointer;
+}
+
+.graph-buttons .graph-button:hover
+{
+       border: 1px solid black;
+       background-color: white;
+       color: black;
+}
+
+.graph-buttons.navigation .graph-button
+{
+       float: left;
+       margin-left: 1px;
+}
+
+.graph-buttons.presets .graph-button
+{
+       margin-bottom: 1px;
+}
+