summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSimone Bortolin <simonebortolin@users.noreply.github.com>2022-08-04 20:32:06 +0200
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2022-12-19 22:55:44 +0100
commitabdbcb1a85b9f76efc7a000e06afdaaf4caa0966 (patch)
treeb210446698c234f08e6e87a7032183ff9bee8084 /assets
parentMerge branch 'main' of github.com:hack-gpon/hack-gpon.github.io (diff)
downloadhack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.gz
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.bz2
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.lz
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.xz
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.zst
hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.zip
Diffstat (limited to '')
-rw-r--r--assets/css/just-the-docs-dark.scss2
-rw-r--r--assets/img/G-010S-A.jpgbin0 -> 20270 bytes
-rw-r--r--assets/img/HG8010H.jpgbin0 -> 62443 bytes
-rw-r--r--assets/img/afm0002tim.jpgbin104618 -> 148701 bytes
-rw-r--r--assets/img/f601_v1.jpgbin0 -> 31126 bytes
-rw-r--r--assets/img/g-010g-q.jpgbin0 -> 83925 bytes
-rw-r--r--assets/img/g-010g-q.pngbin0 -> 436404 bytes
-rw-r--r--assets/img/g-s010s-p.jpgbin0 -> 467353 bytes
-rw-r--r--assets/img/odi.jpgbin168988 -> 253339 bytes
-rw-r--r--assets/js/theme-switch.js12
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
new file mode 100644
index 0000000..5ba99b0
--- /dev/null
+++ b/assets/img/G-010S-A.jpg
Binary files differ
diff --git a/assets/img/HG8010H.jpg b/assets/img/HG8010H.jpg
new file mode 100644
index 0000000..0b875ed
--- /dev/null
+++ b/assets/img/HG8010H.jpg
Binary files differ
diff --git a/assets/img/afm0002tim.jpg b/assets/img/afm0002tim.jpg
index b64c97d..0366357 100644
--- a/assets/img/afm0002tim.jpg
+++ b/assets/img/afm0002tim.jpg
Binary files differ
diff --git a/assets/img/f601_v1.jpg b/assets/img/f601_v1.jpg
new file mode 100644
index 0000000..3b608e0
--- /dev/null
+++ b/assets/img/f601_v1.jpg
Binary files differ
diff --git a/assets/img/g-010g-q.jpg b/assets/img/g-010g-q.jpg
new file mode 100644
index 0000000..1987b3f
--- /dev/null
+++ b/assets/img/g-010g-q.jpg
Binary files differ
diff --git a/assets/img/g-010g-q.png b/assets/img/g-010g-q.png
new file mode 100644
index 0000000..4649474
--- /dev/null
+++ b/assets/img/g-010g-q.png
Binary files differ
diff --git a/assets/img/g-s010s-p.jpg b/assets/img/g-s010s-p.jpg
new file mode 100644
index 0000000..f3a863f
--- /dev/null
+++ b/assets/img/g-s010s-p.jpg
Binary files differ
diff --git a/assets/img/odi.jpg b/assets/img/odi.jpg
index 3f65941..2af97f9 100644
--- a/assets/img/odi.jpg
+++ b/assets/img/odi.jpg
Binary files differ
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);