From 8db700a208b41cc0fd823d8639a29210494592f2 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Fri, 12 Apr 2013 19:11:57 +1200 Subject: Replace chart-root's with vis-hide container This gets rid of a lot of repetition. --- css/style.css | 2 +- index.html | 48 ++++++++++++++++++++++++++---------------------- js/mv.js | 2 +- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/css/style.css b/css/style.css index 70482a7..0b37fb7 100644 --- a/css/style.css +++ b/css/style.css @@ -42,7 +42,7 @@ body { /* Hide charts while loadinfo is shown */ -.chart-root { +.vis-hide { display: none; opacity: 0; } diff --git a/index.html b/index.html index 5d30b53..1a029cd 100644 --- a/index.html +++ b/index.html @@ -6,26 +6,28 @@
-
-

Experience gain instances by Date

-
-
-

Experience gain instances by Character ID [?]

-
-
-

Experience gain instances by Character Base Level

-
-
-

Experience gain instances by Type

-
-
-

Experience gain instances by Target

-
-
-

Experience gain instances by Weapon

-
-
-

Definedness of records [?]

+
+
+

Experience gain instances by Date

+
+
+

Experience gain instances by Character ID [?]

+
+
+

Experience gain instances by Character Base Level

+
+
+

Experience gain instances by Type

+
+
+

Experience gain instances by Target

+
+
+

Experience gain instances by Weapon

+
+
+

Definedness of records [?]

+
@@ -46,8 +48,10 @@
-
-

Experience gain by Map [?]

+
+
+

Experience gain by Map [?]

+
diff --git a/js/mv.js b/js/mv.js index 3c3402a..019e8ff 100644 --- a/js/mv.js +++ b/js/mv.js @@ -214,7 +214,7 @@ var mv = {}; .transition() .style("opacity", 0) .remove(); - d3.selectAll(".chart-root") + d3.selectAll(".vis-hide") .style("display", "inline") .transition() .style("opacity", 1) -- cgit v1.2.3-60-g2f50