File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,27 @@ documentation.
12
12
13
13
You can find out how to [ download] ( getting-started/download.md ) and try the Fabric on the self-hosted
14
14
[ fully virtualized lab] ( vlab/overview.md ) or on [ hardware] ( install-upgrade/install.md ) .
15
+
16
+
17
+ Click on a tile to change the color scheme:
18
+
19
+ <div class =" mdx-switch " >
20
+ <button data-md-color-scheme =" default " ><code >default</code ></button >
21
+ <button data-md-color-scheme =" slate " ><code >slate</code ></button >
22
+ </div >
23
+
24
+ <script >
25
+ var buttons = document .querySelectorAll (" button[data-md-color-scheme]" )
26
+ buttons .forEach (function (button ) {
27
+ button .addEventListener (" click" , function () {
28
+ document .body .setAttribute (" data-md-color-switching" , " " )
29
+ var attr = this .getAttribute (" data-md-color-scheme" )
30
+ document .body .setAttribute (" data-md-color-scheme" , attr)
31
+ var name = document .querySelector (" #__code_0 code span.l" )
32
+ name .textContent = attr
33
+ setTimeout (function () {
34
+ document .body .removeAttribute (" data-md-color-switching" )
35
+ })
36
+ })
37
+ })
38
+ </script >
You can’t perform that action at this time.
0 commit comments