From 768db255869174bb97080d0061aa171c9fcf6ffd Mon Sep 17 00:00:00 2001 From: *anna* Date: Wed, 10 Mar 2021 16:11:25 +0100 Subject: [PATCH] st --- stage.css | 12 ++++++++++++ stage.html | 19 +++++++++++++++++++ stage.js | 20 ++++++++++++++++++++ start.html | 1 - 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 stage.css create mode 100644 stage.html create mode 100644 stage.js diff --git a/stage.css b/stage.css new file mode 100644 index 0000000..c7fd39f --- /dev/null +++ b/stage.css @@ -0,0 +1,12 @@ +.act { + display: none; +} +body.act1 #act1{ + display:block; +} +body.act2 #act2{ + display:block; +} +body.act3 #act3{ + display:block; +} \ No newline at end of file diff --git a/stage.html b/stage.html new file mode 100644 index 0000000..56ba314 --- /dev/null +++ b/stage.html @@ -0,0 +1,19 @@ + + + + stage + + + + + + +
act1
+
act2
+
act3
+ + + + + + \ No newline at end of file diff --git a/stage.js b/stage.js new file mode 100644 index 0000000..60cdb48 --- /dev/null +++ b/stage.js @@ -0,0 +1,20 @@ +$("button#bact1").click(function(){ + $("body") + .removeClass("act1 act3 act2") + .addClass("act1"); +}) + +$("button#bact2").click(function(){ + $("body") + .removeClass("act1 act3 act2") + .addClass("act2"); + + +}) + +$("button#bact3").click(function(){ + $("body") + .removeClass("act1 act3 act2") + .addClass("act3"); + +}) \ No newline at end of file diff --git a/start.html b/start.html index 2a05e43..3a2299d 100644 --- a/start.html +++ b/start.html @@ -65,7 +65,6 @@ Maybe you want to ,