diff options
Diffstat (limited to '')
-rw-r--r-- | assets/css/just-the-docs-dark.scss | 1 | ||||
-rw-r--r-- | assets/css/just-the-docs-light.scss | 1 | ||||
-rw-r--r-- | assets/img/afm0002tim.jpg | bin | 0 -> 104618 bytes | |||
-rw-r--r-- | assets/img/f6005_of.jpg | bin | 0 -> 124394 bytes | |||
-rw-r--r-- | assets/img/f6005_tim.jpg | bin | 0 -> 765227 bytes | |||
-rw-r--r-- | assets/img/f601_v3.jpg | bin | 0 -> 22329 bytes | |||
-rw-r--r-- | assets/img/odi.jpg | bin | 0 -> 168988 bytes | |||
-rw-r--r-- | assets/js/theme-switch.js | 21 |
8 files changed, 23 insertions, 0 deletions
diff --git a/assets/css/just-the-docs-dark.scss b/assets/css/just-the-docs-dark.scss new file mode 100644 index 0000000..1e5ff52 --- /dev/null +++ b/assets/css/just-the-docs-dark.scss @@ -0,0 +1 @@ +{% include css/just-the-docs.scss.liquid color_scheme="dark" %}
\ No newline at end of file diff --git a/assets/css/just-the-docs-light.scss b/assets/css/just-the-docs-light.scss new file mode 100644 index 0000000..9595aef --- /dev/null +++ b/assets/css/just-the-docs-light.scss @@ -0,0 +1 @@ +{% include css/just-the-docs.scss.liquid color_scheme="light" %}
\ No newline at end of file diff --git a/assets/img/afm0002tim.jpg b/assets/img/afm0002tim.jpg Binary files differnew file mode 100644 index 0000000..b64c97d --- /dev/null +++ b/assets/img/afm0002tim.jpg diff --git a/assets/img/f6005_of.jpg b/assets/img/f6005_of.jpg Binary files differnew file mode 100644 index 0000000..05644fb --- /dev/null +++ b/assets/img/f6005_of.jpg diff --git a/assets/img/f6005_tim.jpg b/assets/img/f6005_tim.jpg Binary files differnew file mode 100644 index 0000000..8654f43 --- /dev/null +++ b/assets/img/f6005_tim.jpg diff --git a/assets/img/f601_v3.jpg b/assets/img/f601_v3.jpg Binary files differnew file mode 100644 index 0000000..a9ec6cd --- /dev/null +++ b/assets/img/f601_v3.jpg diff --git a/assets/img/odi.jpg b/assets/img/odi.jpg Binary files differnew file mode 100644 index 0000000..3f65941 --- /dev/null +++ b/assets/img/odi.jpg diff --git a/assets/js/theme-switch.js b/assets/js/theme-switch.js new file mode 100644 index 0000000..148ef26 --- /dev/null +++ b/assets/js/theme-switch.js @@ -0,0 +1,21 @@ + +if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { + jtd.setTheme('dark'); +} else { + jtd.setTheme('light'); +} + +window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => { + const newColorScheme = event.matches ? "dark" : "light"; + jtd.setTheme(newColorScheme); +}); + + +const toggleDarkMode = document.querySelector('.js-toggle-dark-mode'); +jtd.addEvent(toggleDarkMode, 'click', function(){ + if (jtd.getTheme() === 'dark') { + jtd.setTheme('light'); + toggleDarkMode.textContent = 'Preview dark color scheme'; + } else { jtd.setTheme('dark'); + toggleDarkMode.textContent = 'Return to the light side'; } +});
\ No newline at end of file |