summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2016-08-07 15:01:10 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2016-08-07 15:01:10 +0200
commitbe65e80a5eb077ff8d9a765852c3ea6a1ff716f3 (patch)
tree11e0464ab8097f36042a728a5e0b86f4388be09f /js
parent45d5e6f1878c57709ab2064b46bb9eef5ef770ee (diff)
Animate Schritt-transitions
Diffstat (limited to 'js')
-rw-r--r--js/abmahn.js24
1 files changed, 16 insertions, 8 deletions
diff --git a/js/abmahn.js b/js/abmahn.js
index 353111b..6b26e0b 100644
--- a/js/abmahn.js
+++ b/js/abmahn.js
@@ -12,14 +12,22 @@ function setText(input, text) {
12 document.getElementById(input).value = text; 12 document.getElementById(input).value = text;
13} 13}
14 14
15function step0_done() { document.getElementById('wrapper').className = 'wrapper step1'; } 15function scroll(id) {
16function step1_cancel() { document.getElementById('wrapper').className = 'wrapper stepcancel'; } 16 document.getElementById(id).scrollIntoView();
17function step1_done() { document.getElementById('wrapper').className = 'wrapper step2'; } 17}
18function step2_done() { document.getElementById('wrapper').className = 'wrapper step3'; } 18
19function step3_done() { document.getElementById('wrapper').className = 'wrapper step4'; } 19function setClass(id, classes) {
20function step4_done() { document.getElementById('wrapper').className = 'wrapper step5'; } 20 document.getElementById(id).className = classes;
21function step5_done() { document.getElementById('wrapper').className = 'wrapper step6'; } 21}
22function step6_done() { document.getElementById('wrapper').className = 'wrapper step7'; } 22
23function step0_cancel() { setClass('wrapper', 'stepcancel'); }
24function step0_done() { setClass('wrapper', 'step1'); scroll('head1'); }
25function step1_done() { setClass('wrapper', 'step2'); scroll('head1'); }
26function step2_done() { setClass('wrapper', 'step3'); scroll('head2'); }
27function step3_done() { setClass('wrapper', 'step4'); scroll('head3'); }
28function step4_done() { setClass('wrapper', 'step5'); scroll('head4'); }
29function step5_done() { setClass('wrapper', 'step6'); scroll('head5'); }
30function step6_done() { setClass('wrapper', 'step7'); scroll('head6'); }
23 31
24function waldorff() { 32function waldorff() {
25 setText('abmahnender_kanzlei', 'Waldorff & Frommer RAe'); 33 setText('abmahnender_kanzlei', 'Waldorff & Frommer RAe');