Download frontend-components/plotly/index.html from CatPtain/OpenBB: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/spaces/CatPtain/OpenBB/resolve/main/frontend-components/plotly/index.html
- Command line
-
hf download hf://spaces/CatPtain/OpenBB/frontend-components/plotly/index.html
-
curl -L -o index.html https://huggingface.co/spaces/CatPtain/OpenBB/resolve/main/frontend-components/plotly/index.html
1.48 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="color-scheme" content="dark light" /> | |
| <title>OpenBB Interactive Charts</title> | |
| <script> | |
| if ( | |
| // check if user had saved dark as their | |
| // theme when accessing page before | |
| localStorage.theme === "dark" || | |
| // or user's requesting dark color | |
| // scheme through operating system | |
| (!("theme" in localStorage) && | |
| window.matchMedia("(prefers-color-scheme: dark)").matches) | |
| ) { | |
| // then if we have access to the document and the element | |
| // we add the dark class to the html element and | |
| // store the dark value in the localStorage | |
| if (document && document.documentElement) { | |
| document.documentElement.classList.add("dark"); | |
| localStorage.setItem("theme", "dark"); | |
| } | |
| } else { | |
| // else if we have access to the document and the element | |
| // we remove the dark class to the html element and | |
| // store the value light in the localStorage | |
| if (document && document.documentElement) { | |
| document.documentElement.classList.remove("dark"); | |
| localStorage.setItem("theme", "light"); | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <div id="root" class="h-full"></div> | |
| <script type="module" src="/src/main.tsx"></script> | |
| </body> | |
| </html> | |