Skip to content

Commit a8d36c8

Browse files
committed
Fixed code block references in setup guide
1 parent 3d6510c commit a8d36c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/setup/changing-the-colors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _Click on a tile to change the color scheme_:
4343
button.addEventListener("click", function() {
4444
var attr = this.getAttribute("data-md-color-scheme")
4545
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)")
4747
name.textContent = attr
4848
})
4949
})
@@ -97,7 +97,7 @@ _Click on a tile to change the primary color_:
9797
button.addEventListener("click", function() {
9898
var attr = this.getAttribute("data-md-color-primary")
9999
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)")
101101
name.textContent = attr.replace("-", " ")
102102
})
103103
})
@@ -153,7 +153,7 @@ _Click on a tile to change the accent color_:
153153
button.addEventListener("click", function() {
154154
var attr = this.getAttribute("data-md-color-accent")
155155
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)")
157157
name.textContent = attr.replace("-", " ")
158158
})
159159
})

0 commit comments

Comments
 (0)