-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (34 loc) · 1.23 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<base href="./" />
<title>Test Page</title>
<!-- -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, viewport-fit=cover, interactive-widget=overlays-content, shrink-to-fit=no">
<!-- -->
<link rel="icon" type="image/png" href="./favicon.png">
<!-- -->
<script data-owner="runtime" data-type="interact">
// avoid any dragging when no-needed...
document.documentElement.addEventListener("dragstart", (ev) => {
if (ev?.target?.matches?.("div, img, picture, canvas, video, svg")) {
ev.preventDefault();
}
}, {passive: false, capture: true});
// comment to enable native context menu
document.documentElement.addEventListener("contextmenu", (ev)=>{
ev.stopPropagation();
ev.preventDefault();
}, {capture: true});
//
if ("virtualKeyboard" in navigator && navigator?.virtualKeyboard) {
// @ts-ignore
navigator.virtualKeyboard.overlaysContent = true;
}
</script>
</head>
<body>
<script src="./test/Subscribe.ts" type="module"></script>
</body>
</html>