doc: update dark-mode-toggle to 0.16.1

Updates the minified JS resources corresponding to latest
dark-mode-toggle (0.16.1) release.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-10-14 14:29:20 +02:00 committed by David Leach
parent a6a6cc6a63
commit 7aa6222835
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
// @license © 2024 Google LLC. Licensed under the Apache License, Version 2.0.
(()=>{const e="dark-mode-toggle-stylesheets";const s="dark-mode-toggle";const t="light";const l="dark";let o=document.getElementById(e).textContent;let c=null;try{c=localStorage.getItem(s)}catch(e){}const a=/\(\s*prefers-color-scheme\s*:\s*light\s*\)/gi;const r=/\(\s*prefers-color-scheme\s*:\s*dark\s*\)/gi;switch(c){case t:o=o.replace(a,"$&, all").replace(r,"$& and not all");break;case l:o=o.replace(r,"$&, all").replace(a,"$& and not all");break}document.write(o)})();

File diff suppressed because one or more lines are too long