diff --git a/src/lab/CommonExp.js b/src/lab/CommonExp.js new file mode 100644 index 00000000..8767be13 --- /dev/null +++ b/src/lab/CommonExp.js @@ -0,0 +1,7 @@ +// Code to highlight the each selected tab. +let list = document.querySelectorAll('.tabOption') +console.log(list); +list.forEach(li=>li.addEventListener('click',e=>{ + list.forEach(item => item.style.backgroundColor="#eee"); + e.target.style.backgroundColor="#ddd"; +})); \ No newline at end of file diff --git a/src/lab/exp1/index.html b/src/lab/exp1/index.html index 0669719f..0a8e677b 100644 --- a/src/lab/exp1/index.html +++ b/src/lab/exp1/index.html @@ -56,11 +56,11 @@
@@ -142,5 +142,7 @@ + + \ No newline at end of file diff --git a/src/lab/exp10/index.html b/src/lab/exp10/index.html index 03946a51..498b028e 100644 --- a/src/lab/exp10/index.html +++ b/src/lab/exp10/index.html @@ -52,15 +52,15 @@
- -
+ +
@@ -191,5 +191,9 @@ + + + + diff --git a/src/lab/exp2/index.html b/src/lab/exp2/index.html index e0e573f9..bd8b216b 100644 --- a/src/lab/exp2/index.html +++ b/src/lab/exp2/index.html @@ -52,15 +52,15 @@
@@ -177,5 +177,8 @@
+ + + \ No newline at end of file diff --git a/src/lab/exp3/index.html b/src/lab/exp3/index.html index 67d3a03a..e4cfabbf 100644 --- a/src/lab/exp3/index.html +++ b/src/lab/exp3/index.html @@ -51,16 +51,16 @@
-
- -
+
+ +
@@ -260,6 +260,9 @@
- + + + + \ No newline at end of file diff --git a/src/lab/exp4/index.html b/src/lab/exp4/index.html index 0b48b5aa..d3d2e609 100644 --- a/src/lab/exp4/index.html +++ b/src/lab/exp4/index.html @@ -52,15 +52,15 @@
- -
+ +
@@ -233,6 +233,9 @@
- + + + + \ No newline at end of file diff --git a/src/lab/exp5/index.html b/src/lab/exp5/index.html index 5e5bdf00..78cb3d49 100644 --- a/src/lab/exp5/index.html +++ b/src/lab/exp5/index.html @@ -52,15 +52,15 @@
- -
+ +
@@ -172,5 +172,8 @@ + + + \ No newline at end of file diff --git a/src/lab/exp6/index.html b/src/lab/exp6/index.html index 68854598..7720ad51 100644 --- a/src/lab/exp6/index.html +++ b/src/lab/exp6/index.html @@ -52,15 +52,15 @@
@@ -285,5 +285,8 @@
+ + + \ No newline at end of file diff --git a/src/lab/exp7/index.html b/src/lab/exp7/index.html index 678940b8..95e7d507 100644 --- a/src/lab/exp7/index.html +++ b/src/lab/exp7/index.html @@ -52,15 +52,15 @@
+ +
@@ -204,5 +204,8 @@
+ + + \ No newline at end of file diff --git a/src/lab/exp8/index.html b/src/lab/exp8/index.html index e34dfc57..e8781640 100644 --- a/src/lab/exp8/index.html +++ b/src/lab/exp8/index.html @@ -52,15 +52,15 @@
- -
+ +
@@ -205,5 +205,8 @@
+ + + \ No newline at end of file diff --git a/src/lab/exp9/index.html b/src/lab/exp9/index.html index e1d22769..684d0900 100644 --- a/src/lab/exp9/index.html +++ b/src/lab/exp9/index.html @@ -52,15 +52,15 @@
- -
+ +
@@ -139,5 +139,8 @@
+ + + \ No newline at end of file