Spaces:
Running
Running
Download embed.html from divelux/sauna-session-planner: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/spaces/divelux/sauna-session-planner/resolve/main/embed.html
- Command line
-
hf download hf://spaces/divelux/sauna-session-planner/embed.html
-
curl -L -o embed.html https://huggingface.co/spaces/divelux/sauna-session-planner/resolve/main/embed.html
1.99 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Sauna Session Planner (embed)</title> | |
| <meta name="robots" content="noindex"> | |
| <link rel="canonical" href="https://divelux.github.io/sauna-session-planner/"> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700&family=Inter:wght@400;500;600&display=swap"> | |
| <link rel="stylesheet" href="ssp.css"> | |
| <style>html, body { margin: 0; background: #f6f3ee; } body { padding-top: 16px; }</style> | |
| </head> | |
| <body> | |
| <!-- | |
| Bare planner: no site header, no footer. Use it two ways. | |
| 1) As an iframe on any site: | |
| <iframe src="https://divelux.github.io/sauna-session-planner/embed.html" | |
| title="Sauna Session Planner" style="width:100%;border:0" height="2600"></iframe> | |
| This page posts its height to the parent ({ssp:"height", height: N}) so the | |
| host can resize the iframe. See README.md. | |
| 2) Inline in a Shopify theme (no iframe): copy the block between the | |
| BEGIN/END markers into a "Custom liquid" section and point the three | |
| files at your theme assets. See README.md. | |
| --> | |
| <!-- BEGIN sauna session planner --> | |
| <div class="ssp" data-ssp data-ssp-share-url="https://divelux.github.io/sauna-session-planner/"></div> | |
| <script src="planner.js"></script> | |
| <script src="app.js"></script> | |
| <!-- END sauna session planner --> | |
| <script> | |
| // Tell a parent page how tall we are, so it can size the iframe. | |
| (function () { | |
| if (window.parent === window) return; | |
| function post() { | |
| window.parent.postMessage({ ssp: 'height', height: document.documentElement.scrollHeight }, '*'); | |
| } | |
| if ('ResizeObserver' in window) new ResizeObserver(post).observe(document.body); | |
| window.addEventListener('load', post); | |
| })(); | |
| </script> | |
| </body> | |
| </html> | |