/*! * Sauna Session Planner — interface * (c) 2026 DIVELUX Inc. MIT License. https://diveluxsaunahat.com * * Mounts into every
on the page. * Optional attributes on that element: * data-ssp-sync-url keep the address bar in step with the inputs * data-ssp-share-url="..." base address for "copy link" (default: this page) * data-ssp-heading="h3" heading level for section titles (default h2) */ (function () { 'use strict'; var P = window.SaunaPlanner; if (!P) return; var SITE = 'https://diveluxsaunahat.com'; function esc(s) { return String(s).replace(/[&<>"]/g, function (c) { return { '&': '&', '<': '<', '>': '>', '"': '"' }[c]; }); } function fmtDur(min) { if (min < 60) return min + ' min'; var h = Math.floor(min / 60), m = min % 60; return h + ' h' + (m ? ' ' + m + ' min' : ''); } function fmtClock(min) { return Math.floor(min / 60) + ':' + String(min % 60).padStart(2, '0'); } function fmtTimer(ms) { var s = Math.max(0, Math.ceil(ms / 1000)); return String(Math.floor(s / 60)).padStart(2, '0') + ':' + String(s % 60).padStart(2, '0'); } function plural(n, word) { return n + ' ' + word + (n === 1 ? '' : 's'); } function glasses(n) { return n + (n === 1 ? ' glass' : ' glasses'); } function mount(root) { var H = /^h[2-4]$/.test(root.getAttribute('data-ssp-heading') || '') ? root.getAttribute('data-ssp-heading') : 'h2'; var state = P.normalize(P.fromQuery(location.search)); var current = null; // latest plan /* ---------- skeleton ---------- */ var typeRadios = Object.keys(P.TYPES).map(function (k) { return ''; }).join(''); var levelRadios = Object.keys(P.LEVELS).map(function (k) { return ''; }).join(''); root.innerHTML = 'Step out if you feel dizzy, sick, faint, or just wrong. A planning aid, not medical advice. ' + 'Sauna Session Planner by DIVELUX, diveluxsaunahat.com
' + 'Leave the phone outside the hot room, where you can hear it. Heat is hard on batteries.
' + 'An illustration, not a measurement. It assumes the thermometer hangs at head height on the upper bench ' + 'and that the air cools in a straight line toward the floor. Real rooms differ with the heater, the vents and how recently the door opened.
' + 'Wool felt passes heat slowly, the same reason an oven mitt works. A thick felt hat, worn dry, keeps the hottest air in the room ' + 'off your hair and scalp, so your head warms up at the pace of the rest of you. It does not make a longer round a good idea. The plan above stays the plan.
' + 'We make ours by hand from 100% wool felt, 4–5 mm thick. See the DIVELUX sauna hats
' + 'The timer is a ceiling, not a target. Leave right away, sit somewhere cool and drink water if you notice any of these:
' + 'If it does not pass within a few minutes of cooling down, get medical help.
' + 'Not medical advice. This planner gives general, conservative conventions for healthy adults. ' + 'It does not know your health. If you are pregnant, have a heart or blood pressure condition, take medication, or are unsure, talk to your doctor before using a sauna.
' + 'Type in either box. Water boils at 212 °F, which is 100 °C.
' + '