-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (77 loc) · 2.87 KB
/
index.html
File metadata and controls
83 lines (77 loc) · 2.87 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
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>DDXX7 FM Synth</title>
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'dx7-teal': '#00d4c1',
'dx7-ink': '#111',
},
fontFamily: {
'orbitron': ['Orbitron', 'sans-serif'],
'inter': ['Inter', 'sans-serif'],
}
}
}
}
</script>
<link
href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@400;600&family=JetBrains+Mono&display=swap"
rel="stylesheet">
<script>
// JavaScript Fallback to prevent double-tap to zoom on iOS
(function () {
let lastTouchEnd = 0;
document.addEventListener('touchend', function (event) {
const now = (new Date()).getTime();
// If two taps happen within 300ms, prevent the second one from triggering a browser zoom
if (now - lastTouchEnd <= 300) {
// We don't preventDefault here as it might break button clicks,
// but manipulation in CSS should handle the zoom part.
}
lastTouchEnd = now;
}, false);
// Prevent pinch-to-zoom gestures
document.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
}, { passive: false });
// Ensure double tap on the document doesn't zoom
let lastTap = 0;
document.addEventListener('touchstart', function (event) {
const now = Date.now();
if (now - lastTap < 300) {
// Only prevent if not an input
if (event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
// event.preventDefault(); // Uncommenting this might break clicks, manipulation CSS is safer
}
}
lastTap = now;
}, { passive: true });
})();
</script>
<script type="importmap">
{
"imports": {
"react/": "https://esm.sh/react@^19.2.3/",
"react": "https://esm.sh/react@^19.2.3",
"react-dom/": "https://esm.sh/react-dom@^19.2.3/"
}
}
</script>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>
</html>