File size: 1,994 Bytes
a6c8ae6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<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>