summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSimone Bortolin <simonebortolin@users.noreply.github.com>2022-08-04 15:30:40 +0200
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2022-12-19 22:48:05 +0100
commit0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad (patch)
tree52306d80b5cf0ae4e8b463e9401cdad51c84a558 /assets
downloadhack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar.gz
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar.bz2
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar.lz
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar.xz
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.tar.zst
hack-gpon.github.io-0df87a53ed7f7620b0ae7f5b0859427a93b1d1ad.zip
Diffstat (limited to 'assets')
-rw-r--r--assets/css/just-the-docs-dark.scss1
-rw-r--r--assets/css/just-the-docs-light.scss1
-rw-r--r--assets/img/afm0002tim.jpgbin0 -> 104618 bytes
-rw-r--r--assets/img/f6005_of.jpgbin0 -> 124394 bytes
-rw-r--r--assets/img/f6005_tim.jpgbin0 -> 765227 bytes
-rw-r--r--assets/img/f601_v3.jpgbin0 -> 22329 bytes
-rw-r--r--assets/img/odi.jpgbin0 -> 168988 bytes
-rw-r--r--assets/js/theme-switch.js21
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
new file mode 100644
index 0000000..b64c97d
--- /dev/null
+++ b/assets/img/afm0002tim.jpg
Binary files differ
diff --git a/assets/img/f6005_of.jpg b/assets/img/f6005_of.jpg
new file mode 100644
index 0000000..05644fb
--- /dev/null
+++ b/assets/img/f6005_of.jpg
Binary files differ
diff --git a/assets/img/f6005_tim.jpg b/assets/img/f6005_tim.jpg
new file mode 100644
index 0000000..8654f43
--- /dev/null
+++ b/assets/img/f6005_tim.jpg
Binary files differ
diff --git a/assets/img/f601_v3.jpg b/assets/img/f601_v3.jpg
new file mode 100644
index 0000000..a9ec6cd
--- /dev/null
+++ b/assets/img/f601_v3.jpg
Binary files differ
diff --git a/assets/img/odi.jpg b/assets/img/odi.jpg
new file mode 100644
index 0000000..3f65941
--- /dev/null
+++ b/assets/img/odi.jpg
Binary files differ
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