-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.html
36 lines (36 loc) · 1.01 KB
/
sample.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
<html>
<head>
<title>Sample page</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
.container {
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-right: 0;
}
html { margin:0; padding:0; }
/* CSS for dark mode */
@media (prefers-color-scheme: dark) {
.container {
background-color:darkgray;
color: white;
}
}
/* CSS for light mode */
@media (prefers-color-scheme: light) {
.container {
background-color: #F6F6F6;
}
}
</style>
<script>
window.onappinstalled = function() {
console.log('Thank you for installing our app!');
};
</script>
</head>
<body class="container">
<img src="preview.png" alt="preview" style="width:100%;">
</body>
</html>