diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/just-the-docs-dark.scss | 2 | ||||
-rw-r--r-- | assets/img/G-010S-A.jpg | bin | 0 -> 20270 bytes | |||
-rw-r--r-- | assets/img/HG8010H.jpg | bin | 0 -> 62443 bytes | |||
-rw-r--r-- | assets/img/afm0002tim.jpg | bin | 104618 -> 148701 bytes | |||
-rw-r--r-- | assets/img/f601_v1.jpg | bin | 0 -> 31126 bytes | |||
-rw-r--r-- | assets/img/g-010g-q.jpg | bin | 0 -> 83925 bytes | |||
-rw-r--r-- | assets/img/g-010g-q.png | bin | 0 -> 436404 bytes | |||
-rw-r--r-- | assets/img/g-s010s-p.jpg | bin | 0 -> 467353 bytes | |||
-rw-r--r-- | assets/img/odi.jpg | bin | 168988 -> 253339 bytes | |||
-rw-r--r-- | assets/js/theme-switch.js | 12 |
10 files changed, 9 insertions, 5 deletions
diff --git a/assets/css/just-the-docs-dark.scss b/assets/css/just-the-docs-dark.scss index 1e5ff52..e56eda2 100644 --- a/assets/css/just-the-docs-dark.scss +++ b/assets/css/just-the-docs-dark.scss @@ -1 +1 @@ -{% include css/just-the-docs.scss.liquid color_scheme="dark" %}
\ No newline at end of file +{% include css/just-the-docs.scss.liquid color_scheme="dark" %} diff --git a/assets/img/G-010S-A.jpg b/assets/img/G-010S-A.jpg Binary files differnew file mode 100644 index 0000000..5ba99b0 --- /dev/null +++ b/assets/img/G-010S-A.jpg diff --git a/assets/img/HG8010H.jpg b/assets/img/HG8010H.jpg Binary files differnew file mode 100644 index 0000000..0b875ed --- /dev/null +++ b/assets/img/HG8010H.jpg diff --git a/assets/img/afm0002tim.jpg b/assets/img/afm0002tim.jpg Binary files differindex b64c97d..0366357 100644 --- a/assets/img/afm0002tim.jpg +++ b/assets/img/afm0002tim.jpg diff --git a/assets/img/f601_v1.jpg b/assets/img/f601_v1.jpg Binary files differnew file mode 100644 index 0000000..3b608e0 --- /dev/null +++ b/assets/img/f601_v1.jpg diff --git a/assets/img/g-010g-q.jpg b/assets/img/g-010g-q.jpg Binary files differnew file mode 100644 index 0000000..1987b3f --- /dev/null +++ b/assets/img/g-010g-q.jpg diff --git a/assets/img/g-010g-q.png b/assets/img/g-010g-q.png Binary files differnew file mode 100644 index 0000000..4649474 --- /dev/null +++ b/assets/img/g-010g-q.png diff --git a/assets/img/g-s010s-p.jpg b/assets/img/g-s010s-p.jpg Binary files differnew file mode 100644 index 0000000..f3a863f --- /dev/null +++ b/assets/img/g-s010s-p.jpg diff --git a/assets/img/odi.jpg b/assets/img/odi.jpg Binary files differindex 3f65941..2af97f9 100644 --- a/assets/img/odi.jpg +++ b/assets/img/odi.jpg diff --git a/assets/js/theme-switch.js b/assets/js/theme-switch.js index c3f3949..caffe6e 100644 --- a/assets/js/theme-switch.js +++ b/assets/js/theme-switch.js @@ -2,12 +2,16 @@ if(localStorage.getItem("color-scheme") === null) { const newColorScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "dark" : "light"; const newTextScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "Light mode" : "Dark mode"; jtd.setTheme(newColorScheme); - toggleDarkMode.textContent = newTextScheme; localStorage.setItem("color-scheme",newColorScheme); localStorage.setItem("text-scheme",newTextScheme); + window.addEventListener('load', function () { + toggleDarkMode.textContent = newTextScheme; + }); } else { jtd.setTheme(localStorage.getItem("color-scheme")); - toggleDarkMode.textContent = localStorage.getItem("text-scheme"); + window.addEventListener('load', function () { + toggleDarkMode.textContent = localStorage.getItem("text-scheme"); + }); } window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => { @@ -24,8 +28,8 @@ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', eve const toggleDarkMode = document.querySelector('.js-toggle-dark-mode'); jtd.addEvent(toggleDarkMode, 'click', function(){ - const newColorScheme = jtd.getTheme() === 'dark' ? "dark" : "light"; - const newTextScheme = jtd.getTheme() === 'dark' ? "Light mode" : "Dark mode"; + const newColorScheme = jtd.getTheme() !== 'dark' ? "dark" : "light"; + const newTextScheme = jtd.getTheme() !== 'dark' ? "Light mode" : "Dark mode"; jtd.setTheme(newColorScheme); toggleDarkMode.textContent = newTextScheme; localStorage.setItem("color-scheme",newColorScheme); |