From a8d36c8eb4c7b7650e7eb863b7a3a442eeedd2c2 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 15 Jun 2021 12:10:11 +0200 Subject: [PATCH] Fixed code block references in setup guide --- docs/setup/changing-the-colors.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/setup/changing-the-colors.md b/docs/setup/changing-the-colors.md index fc04a6da4..6e46910dc 100644 --- a/docs/setup/changing-the-colors.md +++ b/docs/setup/changing-the-colors.md @@ -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("-", " ") }) })