From d7459170b39d1a075edcf13dedce51ad451b03a0 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 6 Apr 2016 17:59:35 +0200 Subject: fix layout in Firefox, make more responsive --- index.html | 91 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index e53ee38..de3bc7c 100644 --- a/index.html +++ b/index.html @@ -57,8 +57,13 @@ /* responsive deck */ function sizeSlides() { d3.selectAll(".slide") - .style("width", parseInt(window.innerWidth) * 0.9 + "px") - .style("height", parseInt(window.innerHeight) * 0.9 + "px"); + .style("width", (parseInt(window.innerWidth) * 0.9) + "px") + .style("height", (parseInt(window.innerHeight) * 0.9) + "px"); + d3.selectAll(".scale") + .style("font-size", function(d) { + 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? + }); }; window.addEventListener("resize", sizeSlides); @@ -71,84 +76,80 @@
-
-

Künstliche neuronale Netze

+
+

Künstliche neuronale Netze

-

38 Gewichte in 20 Minuten

+

38 Gewichte in 15 Minuten

-
-

Von der Eingabe zur Ausgabe

-
-

Das ist Kitty.

- :smiley_cat: +
+

Von der Eingabe zur Ausgabe

+
+

Das ist Kitty.

+

:smiley_cat:

-
-

Kitty ist blöd.

- :pouting_cat: +
+

Kitty ist blöd.

+

:pouting_cat:

-
-

Wenn Kitty Steves Hut sieht, schnurrt sie manchmal.

- :man: :tophat: :heart_eyes_cat: +
+

Wenn Kitty Steves Hut sieht, schnurrt sie manchmal.

+

:man: :tophat: :heart_eyes_cat:

-
-

Steve mag es, wenn Kitty schnurrt.

- :yum: +
+

Steve mag es, wenn Kitty schnurrt.

+

:yum:

-
-

Steve trainiert Kitty.

+
+

Steve trainiert Kitty.

Mit Keksen. (Kitty mag Kekse.)

- :man: :tophat: :cookie: :smile_cat: +

:man: :tophat: :cookie: :smile_cat:

-
-

Was passiert da?

+
+

Was passiert da?

Sehen wir uns Kitty einmal genauer an.

- :smiley_cat: +

:smiley_cat:

-
-

Die Informationsverarbeitung im Gehirn

+
+

Die Informationsverarbeitung im Gehirn

-
+

Eingabe (:tophat:)

Rezeptor

-

-

Gehirn (:sparkles:)

neuronales Netz

-

-

Ausgabe (:heart_eyes_cat:)

Effektor

-
-

Neuronale Netze

+
+

Neuronale Netze

-

Ein Neuron

+

Ein Neuron

Schema Neuron
-

Ein Neuronales Netz

+

Ein Neuronales Netz

Foto Neuron
-
-

Künstliche neuronale Netze

+
+

Künstliche neuronale Netze

-

Neuron - künstliches Neuron

+

Neuron - künstliches Neuron

Schema Neuron Schema eines künstlichen Neurons
-

Neuronales Netz - künstliches neuronales Netz

+

Neuronales Netz - künstliches neuronales Netz

Foto Neuron Mehrschichtiges Perzeptron
@@ -201,7 +202,7 @@
-

Ein leeres Netz

+

Ein leeres Netz

@@ -220,7 +221,7 @@
-

Aktivierungstest

+

Aktivierungstest

@@ -253,7 +254,7 @@
-

Der Fehler im Verlauf

+

Der Fehler im Verlauf

@@ -272,7 +273,7 @@
-

Die Gewichte im Verlauf

+

Die Gewichte im Verlauf

@@ -291,7 +292,7 @@
-

Gewichte und Fehler

+

Gewichte und Fehler

-- cgit v1.3.1