We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fe834 commit 24ad287Copy full SHA for 24ad287
ch10exercise3.html
@@ -52,8 +52,13 @@
52
break;
53
case "click":
54
if (target.className == "tabStrip-tab-hover") {
55
+ var newnum = 1;
56
+ while (newnum < 4) {
57
+ document.querySelector("[data-tab-number='" + newnum + "']").className = "tabStrip-tab";
58
+ newnum++;
59
+ }
60
target.className = "tabStrip-tab-click";
- var num = target.getAttribute("data-tabnumber");
61
+ var num = target.getAttribute("data-tab-number");
62
showDescription(num);
63
}
64
0 commit comments