Datasets:
Download web/postgresql.org/reference/site/media/js/theme.js from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/postgresql.org/reference/site/media/js/theme.js
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/web/postgresql.org/reference/site/media/js/theme.js
-
curl -L -o theme.js https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/web/postgresql.org/reference/site/media/js/theme.js
351 Bytes
| let theme = 'light'; | |
| if (localStorage.getItem('theme')) { | |
| if (localStorage.getItem('theme') === 'dark') { | |
| theme = 'dark'; | |
| document.documentElement.setAttribute('data-theme', 'dark'); | |
| } | |
| } else if (window.matchMedia('(prefers-color-scheme: dark)').matches) { | |
| theme = 'dark'; | |
| document.documentElement.setAttribute('data-theme', 'dark'); | |
| } |