@@ -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