From 46744170b3801ffa358c853a49abc17f3112d823 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 6 Apr 2016 19:04:35 +0200 Subject: improve layout; fix invisible first innerstep --- index.html | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index de3bc7c..078708a 100644 --- a/index.html +++ b/index.html @@ -60,15 +60,15 @@ .style("width", (parseInt(window.innerWidth) * 0.9) + "px") .style("height", (parseInt(window.innerHeight) * 0.9) + "px"); d3.selectAll(".scale") - .style("font-size", function(d) { + .style("font-size", function() { var lines = d3.select(this).selectAll("p")[0].length; // TODO a bit specific, may not work in all cases - return Math.min(window.innerWidth/10, window.innerHeight/lines/2) + "px"; // TODO replace by line height? + return Math.min(this.clientWidth/10, this.clientHeight/lines*(1.5)) + "px"; // TODO replace by line height? }); }; window.addEventListener("resize", sizeSlides); document.addEventListener("impress:innerstep", function(e) { - d3.selectAll(".lastInnerstep")[0].forEach(function(ist) { ist.classList.remove("lastInnerstep"); }); + d3.select(e.target).selectAll(".lastInnerstep")[0].forEach(function(ist) { ist.classList.remove("lastInnerstep"); }); var stepped = d3.select(e.target).selectAll(".stepped")[0]; stepped[stepped.length-1].classList.add("lastInnerstep"); }); @@ -118,13 +118,13 @@

Eingabe (:tophat:)

-

Rezeptor

+

Rezeptor

Gehirn (:sparkles:)

-

neuronales Netz

+

neuronales Netz

Ausgabe (:heart_eyes_cat:)

-

Effektor

+

Effektor

@@ -132,12 +132,11 @@

Neuronale Netze

Ein Neuron

- - Schema Neuron + Schema Neuron

Ein Neuronales Netz

- Foto Neuron + Foto Neuron
@@ -145,13 +144,13 @@

Künstliche neuronale Netze

Neuron - künstliches Neuron

- Schema Neuron - Schema eines künstlichen Neurons + Schema Neuron + Schema eines künstlichen Neurons

Neuronales Netz - künstliches neuronales Netz

- Foto Neuron - Mehrschichtiges Perzeptron + Foto Neuron + Mehrschichtiges Perzeptron