38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Small tests</title>
|
|
<link href="./css/mobile.css" rel="stylesheet"/>
|
|
<link href="./css/openinghourstable.css" rel="stylesheet"/>
|
|
<link href="./css/tagrendering.css" rel="stylesheet"/>
|
|
<link href="./css/index-tailwind-output.css" rel="stylesheet"/>
|
|
<link href="./css/wikipedia.css" rel="stylesheet"/>
|
|
<link href="css/ReviewElement.css" rel="stylesheet"/>
|
|
<meta content="website" property="og:type">
|
|
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport">
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div id="maindiv" class="w-full">'maindiv' not attached</div>
|
|
|
|
<script type="module" src="./src/test.ts"></script>
|
|
|
|
<script>
|
|
window.addEventListener('load', () => {
|
|
if ('serviceWorker' in navigator) {
|
|
// register service worker
|
|
navigator.serviceWorker.register('/service-worker.js').then(
|
|
() => {
|
|
console.log('SW registration successful');
|
|
},
|
|
err => {
|
|
console.error('SW registration failed', err)
|
|
});
|
|
} else {
|
|
console.error("Service workers are not supported")
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|