Add target for canvas css rules + rename map.css -> senslabmap.css
authorAnthony Garcia <anthony.garcia@inria.fr>
Tue, 26 Nov 2013 16:06:33 +0000 (17:06 +0100)
committerAnthony Garcia <anthony.garcia@inria.fr>
Tue, 26 Nov 2013 16:06:33 +0000 (17:06 +0100)
plugins/senslabmap/__init__.py
plugins/senslabmap/static/css/map.css [deleted file]
plugins/senslabmap/static/css/senslabmap.css
plugins/senslabmap/templates/senslabmap.html

index 92895d0..03b06a4 100644 (file)
@@ -24,7 +24,7 @@ class SensLabMap (Plugin):
                            "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
                            "js/three.min.js", "js/jquery-mousewheel.min.js", "js/map.js",
                            ],
                            "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
                            "js/three.min.js", "js/jquery-mousewheel.min.js", "js/map.js",
                            ],
-            'css_files': [ "css/map.css",
+            'css_files': [ "css/senslabmap.css",
                            ],
             }
         return reqs
                            ],
             }
         return reqs
diff --git a/plugins/senslabmap/static/css/map.css b/plugins/senslabmap/static/css/map.css
deleted file mode 100644 (file)
index ac4b7e0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-canvas {
-  border:1px gray solid;
-  background-color: #202020;
-  margin: 10px;
-}
\ No newline at end of file
index 86f3638..bda3f45 100644 (file)
@@ -1,40 +1,5 @@
-.senslabmap {
-  margin: 10px;
-  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-  font-size: 13px;
-  line-height: 18px;
-  color: #333333;
-  background-color: #ffffff;
-}
-
-#div3d {
-  height: 500px;
+#maps-container canvas {
+  border:1px gray solid;
   background-color: #202020;
   background-color: #202020;
-  z-index:-1
-}
-
-#selectionbox {
-  text-align: center;
-  padding:2px
-}
-
-#infobox {
-  text-align: center
-}
-
-#node_alive {
-  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAFRQAABUUBbA3bdwAAABl0RV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ov93D1ezw8V+B8jhfgJI7kYcAAAAAElFTkSuQmCC');
-}
-
-#node_selected {
-  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAFRQAABUUBbA3bdwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE0SURBVDiNtdS/SoJxFMbx7zn0xyGhIfAGGhJaTHFpaTW6iISUSGqKLiLaxChq6CKid21pEcklsKEbEBqCGizhfRrMF9SiP+/bM57D+fzO8OOYJMZj9YdZUk8biBXwHCj30WlD2Ma4pTd/qd3F14nZcdBOWqu4nQNLEy+N5p5QW9ou3HwK2sV1ire5I7AdwL7BhhHomJmXfW2u9QCmolY/fQjUfghFC4HV6KdDYC/a0M5aJWRXv8TGaK2rUgiM09YCcAdkYoHQBZYdUykBDCCDqeTIiwlgg8iLjik50FR0RDYxUGQdo5MYaHQcWTMxUNZ0LEwOtLDpyAIGfyhuusgCVzX/iKkcmzOVVc0/OoAqhQCj/neMuiqFAMCj4vTzAagBTB7IryNQYzA7XPS/7uFIMcbFfgcJcoL5SKOsjQAAAABJRU5ErkJggg==');
-}
-
-#node_used {
-  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAABHNCSVQICAgIfAhkiAAAAZJJREFUOI2t1D1LQlEcx/Hf+R/NTMKsawldqRZ7JDBIhyAIpwu9A6egpmrsbUQQ1FDQJL2B4E49LC0OuUQPToUKehFTosy6x9OQF8qiQu93Ohw4n7P9WDQaxQ+53Kx70Uv9MwEaDg85JsIAcG9epfL1u1SlblxU5eMRgFrzQ9YMOtAxt+CK7wedobGffrLKvKVvTmuJZROv55/vuaqq1rlzmE9tLXpWd33c7/8NAwAv71MmO+aXKsLwl6VxAsD8Ag7xqc2YO75GIPYXZkUgNuKcjpREwVuRhv5xB8DFurSYO77+X6i5mDu+7mJdmgUqWufKQauYVcNQyMN6tF4eGGgX7OWBAQ/r0UghNdIuZqWQGqGgY9Q2MOgYjdAgD43bBQ7y0DjlRPraLjAn0teUMW+TdoEZ8zZJxXrWNrBYzybpSZb1ksgX2sVKIl94kmWdABT1l72ldsGGUSQAqMln/bia2G4VO64mtmvyWQc+jUNFGqcPouALOidn/zsQJoQ8qx7u3IvLDTTWxvY9/AY2anmx3wGj5aLJgOrlPgAAAABJRU5ErkJggg==');
-}
+  margin: 10px;
+}
\ No newline at end of file
index aa9a39f..aec72cc 100644 (file)
@@ -1,30 +1 @@
-<div id="maps-container" oncontextmenu="return false;"></div>
-<script>
-$(function() {
-  $.getJSON("nodes.json", function(all_nodes) {
-    var sites = [], maps = {}, nodes = {};
-
-    $.each(all_nodes, function(i, node) {
-      Senslab.normalize(node);
-      var site = node.site;
-      if (site) {
-        if ($.inArray(site, sites) == -1) {
-          sites.push(site);
-          nodes[site] = [];
-        }
-        nodes[site].push(node);
-      } else {
-        console.warn("Node " + node + " has no site");
-      }
-    });
-
-    $container = $('#maps-container');
-
-    $.each(sites, function(i, site) {
-      var $div = $("<div />").appendTo($container);
-      maps[site] = new Senslab.Map($div);
-      maps[site].addNodes(nodes[site]);
-    });
-  });
-});
-</script>
\ No newline at end of file
+<div id="maps-container" oncontextmenu="return false;"></div>
\ No newline at end of file