-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
47 lines (41 loc) · 1.61 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
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en" theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<!-- content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> -->
<meta name="description" content="Pure Rust build instant message app">
<link data-trunk rel="css" href="./assets/css/index.css">
<link data-trunk rel="css" href="./assets/css/login.css">
<link data-trunk rel="css" href="./assets/css/home.css">
<link data-trunk rel="css" href="./assets/css/left.css">
<link data-trunk rel="css" href="./assets/css/right.css">
<link data-trunk rel="css" href="./assets/css/register.css">
<link data-trunk rel="copy-dir" href="assets/images" />
<link data-trunk rel="rust" href="pages" />
<title>IM</title>
<script>
window.onload = function () {
document.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
var lastTouchEnd = 0;
document.addEventListener('touchend', function (event) {
var now = (new Date()).getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
}, false);
document.addEventListener('gesturestart', function (event) {
event.preventDefault();
});
}
</script>
</head>
<body>
</body>
</html>