@@ -43,7 +43,7 @@ _Click on a tile to change the color scheme_:
43
43
button.addEventListener("click", function() {
44
44
var attr = this.getAttribute("data-md-color-scheme")
45
45
document.body.setAttribute("data-md-color-scheme", attr)
46
- var name = document.querySelector("#__code_0 code span:nth-child(7)")
46
+ var name = document.querySelector("#__code_1 code span:nth-child(7)")
47
47
name.textContent = attr
48
48
})
49
49
})
@@ -97,7 +97,7 @@ _Click on a tile to change the primary color_:
97
97
button.addEventListener("click", function() {
98
98
var attr = this.getAttribute("data-md-color-primary")
99
99
document.body.setAttribute("data-md-color-primary", attr)
100
- var name = document.querySelector("#__code_1 code span:nth-child(7)")
100
+ var name = document.querySelector("#__code_2 code span:nth-child(7)")
101
101
name.textContent = attr.replace("-", " ")
102
102
})
103
103
})
@@ -153,7 +153,7 @@ _Click on a tile to change the accent color_:
153
153
button.addEventListener("click", function() {
154
154
var attr = this.getAttribute("data-md-color-accent")
155
155
document.body.setAttribute("data-md-color-accent", attr)
156
- var name = document.querySelector("#__code_2 code span:nth-child(7)")
156
+ var name = document.querySelector("#__code_3 code span:nth-child(7)")
157
157
name.textContent = attr.replace("-", " ")
158
158
})
159
159
})
0 commit comments