Saving point
authorveltr
Fri, 15 Feb 2013 12:23:01 +0100
changeset 3 7fa607ed7e82
parent 2 0d947d167ec5
child 4 26a901771957
Saving point
js/startscreen-fake.js
--- a/js/startscreen-fake.js	Thu Feb 07 17:14:46 2013 +0100
+++ b/js/startscreen-fake.js	Fri Feb 15 12:23:01 2013 +0100
@@ -206,12 +206,13 @@
                         + ","
                         + yscale * (mmso.start + 2 * mmso.duration / 3);
                     }).join("L") + "L0,"+(yscale * data.duration);
-                    sumpath.attr({
-                        path: d
-                    });
-                    sumpath.show();
+                    sumpatha.attr({ path: d });
+                    sumpathb.attr({ path: d });
+                    sumpatha.show();
+                    sumpathb.show();
                 } else {
-                    sumpath.hide();
+                    sumpatha.hide();
+                    sumpathb.hide();
                 }
             } else {
                 for (var i = 0; i < nmmso; i++) {
@@ -251,11 +252,10 @@
             xscale = (pw - 10)/mx;
         
         if (PATH_MODE) {
-            var sumpath = paper.path();
-            sumpath.attr({
+            var sumpatha = paper.path();
+            sumpatha.attr({
                 fill: "#f0f0f0",
-                stroke: "#666666",
-                "stroke-width": 2
+                stroke: "none"
             });
             var topicpaths = data.topics.map(function(topic) {
                 var d = "M0,0L" + topic.scores.map(function(s, i) {
@@ -271,6 +271,11 @@
                 }).join("L") + "L0,"+(yscale * data.duration);
                 return paper.path(d);
             });
+            var sumpathb = paper.path();
+            sumpathb.attr({
+                stroke: "#666666",
+                "stroke-width": 2
+            });
         } else {
             var segmentrects = data.segments.map(function(mmso) {
                 var rect = paper.rect(0, yscale * mmso.start, pw - 50, yscale * mmso.duration);