-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcalculator.html
More file actions
74 lines (68 loc) · 2.83 KB
/
Copy pathcalculator.html
File metadata and controls
74 lines (68 loc) · 2.83 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<!-- Legacy standalone test/dev harness. Production ships through index.html SPA routes. -->
<html lang="en">
<head>
<meta charset="utf-8"/>
<script>
(function(){
var stored = null;
try {
stored = localStorage.getItem("vatio_board_lang");
} catch (error) {
stored = null;
}
var l = stored || (navigator.language && navigator.language.startsWith("es") ? "es" : "en");
document.documentElement.lang = l;
window.__lang = l;
})();
</script>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
<link rel="icon" type="image/svg+xml" href="/favicon_dark.svg?v=2" media="(prefers-color-scheme: dark)" />
<link rel="icon" type="image/svg+xml" href="/favicon_ligth.svg?v=2" media="(prefers-color-scheme: light)" />
<link id="favicon-fallback" rel="icon" type="image/svg+xml" href="/favicon_ligth.svg?v=2" />
<link id="shortcut-favicon" rel="shortcut icon" href="/favicon_ligth.svg?v=2" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<script>
(function () {
var query = window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null;
var icons = [
document.getElementById("favicon-fallback"),
document.getElementById("shortcut-favicon")
];
function applyThemeFavicon() {
var href = (query && query.matches ? "/favicon_dark.svg" : "/favicon_ligth.svg") + "?v=2";
icons.forEach(function (icon) {
if (icon) icon.href = href;
});
}
applyThemeFavicon();
if (!query) return;
if (query.addEventListener) query.addEventListener("change", applyThemeFavicon);
else if (query.addListener) query.addListener(applyThemeFavicon);
})();
</script>
<title>Embeddable Calculator Widget</title>
<meta name="color-scheme" content="light dark">
<style>
body { margin:0; min-height:100vh; display:grid; place-items:center; font-family:system-ui, sans-serif; }
.demo { max-width:900px; padding:24px; display:grid; gap:16px; }
.demo-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
button { padding:10px 14px; border-radius:10px; border:1px solid rgba(0,0,0,.2); cursor:pointer; }
</style>
</head>
<body>
<div class="demo">
<h1>Demo Page</h1>
<p>Click the floating button, or wire it to your own button.</p>
<div class="demo-toolbar" role="toolbar" aria-label="Demo tools">
<button id="openCalc">Open Calculator</button>
</div>
<div class="row">
<span id="out"></span>
</div>
</div>
<script type="module" src="/src/calculator/calculator-demo.ts"></script>
</body>
</html>