From a91c4670de5516750a482860c73ca8ac835e6831 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 2 Apr 2016 10:58:55 +0200 Subject: that was close - add weightsVisWrapperWrapper and fix reloading page inits --- index.html | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index c750c2b..8f6bb35 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ impress().init(); d3.selectAll(".visContainer")[0].forEach(function(el) { - weightsWrapper.addPlaceholder(d3.select(el)); + weightsWrapper.addPlaceholder(el.parentNode); }); weightsWrapper.load("data/weights.json", function() { weightsWrapper.reposition(); @@ -30,12 +30,12 @@ sizeSlides(); }, false); + /* responsive deck */ function sizeSlides() { d3.selectAll(".slide") .style("width", parseInt(window.innerWidth) * 0.9 + "px") .style("height", parseInt(window.innerHeight) * 0.9 + "px"); }; - window.addEventListener("resize", sizeSlides); @@ -52,22 +52,17 @@

Die Gewichte im Verlauf

-
-
+
@@ -76,22 +71,17 @@

Gewichte und Fehler

-
-
+
-- cgit v1.3.1