We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d1002 commit ab23604Copy full SHA for ab23604
docs/setup/changing-the-colors.md
@@ -38,10 +38,14 @@ Click on a tile to change the color scheme:
38
var buttons = document.querySelectorAll("button[data-md-color-scheme]")
39
buttons.forEach(function(button) {
40
button.addEventListener("click", function() {
41
+ document.body.setAttribute("data-md-color-switching", "")
42
var attr = this.getAttribute("data-md-color-scheme")
43
document.body.setAttribute("data-md-color-scheme", attr)
44
var name = document.querySelector("#__code_0 code span.l")
45
name.textContent = attr
46
+ setTimeout(function() {
47
+ document.body.removeAttribute("data-md-color-switching")
48
+ })
49
})
50
51
</script>
0 commit comments