forked from trent_larson/crowd-funder-for-time-pwa
Dynamic padding to clear certain iOS UI elements such as the notch, dynamic island and gesture bar, to ensure they don't overlap with our own UI elements.
33 lines
956 B
HTML
33 lines
956 B
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">
|
|
<link rel="icon" href="/favicon.ico">
|
|
<title>TimeSafari</title>
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<strong>We're sorry but TimeSafari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
</noscript>
|
|
<div id="app"></div>
|
|
<script type="module">
|
|
const platform = process.env.VITE_PLATFORM;
|
|
switch (platform) {
|
|
case 'capacitor':
|
|
import('./src/main.capacitor.ts');
|
|
break;
|
|
case 'electron':
|
|
import('./src/main.electron.ts');
|
|
break;
|
|
case 'pywebview':
|
|
import('./src/main.pywebview.ts');
|
|
break;
|
|
default:
|
|
import('./src/main.web.ts');
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|