Fixed code block references in setup guide

This commit is contained in:
squidfunk 2021-06-15 12:10:11 +02:00
parent 3d6510c441
commit a8d36c8eb4

View File

@ -43,7 +43,7 @@ _Click on a tile to change the color scheme_:
button.addEventListener("click", function() {
var attr = this.getAttribute("data-md-color-scheme")
document.body.setAttribute("data-md-color-scheme", attr)
var name = document.querySelector("#__code_0 code span:nth-child(7)")
var name = document.querySelector("#__code_1 code span:nth-child(7)")
name.textContent = attr
})
})
@ -97,7 +97,7 @@ _Click on a tile to change the primary color_:
button.addEventListener("click", function() {
var attr = this.getAttribute("data-md-color-primary")
document.body.setAttribute("data-md-color-primary", attr)
var name = document.querySelector("#__code_1 code span:nth-child(7)")
var name = document.querySelector("#__code_2 code span:nth-child(7)")
name.textContent = attr.replace("-", " ")
})
})
@ -153,7 +153,7 @@ _Click on a tile to change the accent color_:
button.addEventListener("click", function() {
var attr = this.getAttribute("data-md-color-accent")
document.body.setAttribute("data-md-color-accent", attr)
var name = document.querySelector("#__code_2 code span:nth-child(7)")
var name = document.querySelector("#__code_3 code span:nth-child(7)")
name.textContent = attr.replace("-", " ")
})
})