-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathoffline.html
More file actions
83 lines (77 loc) · 2.63 KB
/
offline.html
File metadata and controls
83 lines (77 loc) · 2.63 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Color theme for statusbar (Android only) -->
<meta name="theme-color" content="#2196f3">
<!-- Your app title -->
<title>Oups</title>
<!-- Path to Framework7 Library Bundle CSS -->
<link rel="stylesheet" href="framework7-5.7.14/css/framework7.bundle.min.css">
<!-- Path to your custom app styles-->
</head>
<body>
<!-- App root element -->
<div id="app">
<!-- Your main view, should have "view-main" class -->
<div class="view view-main">
<!-- Initial Page, "data-name" contains page name -->
<div data-name="home" class="page">
<!-- Top Navbar -->
<div class="navbar">
<div class="navbar-bg"></div>
<div class="navbar-inner">
<div class="title">Offline page</div>
</div>
</div>
<!-- Bottom Toolbar -->
<div class="toolbar toolbar-bottom">
<div class="toolbar-inner">
<!-- Toolbar links -->
<a href="#" class="link">Link 1</a>
<a href="#" class="link">Link 2</a>
</div>
</div>
<!-- Scrollable page content -->
<div class="page-content">
<div class="block">
<p>Welcome to the offline page</p>
<button onclick="location.reload();" class="toast-button button color-red col">Reload</button>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script type="text/javascript" src="shared/jquery.min.js"></script>
<!-- Path to Framework7 Library Bundle JS -->
<script type="text/javascript" src="framework7-5.7.14/js/framework7.bundle.min.js"></script>
<!-- Path to your app js -->
<script>
var app = new Framework7({
// App root element
root: '#app',
// App Name
name: 'My App',
// App id
id: 'com.myapp.test',
// Enable swipe panel
panel: {
swipe: true,
},
autoDarkTheme: true,
// ... other parameters
});
var mainView = app.views.create('.view-main');
if (Framework7.device.standalone) {
$("html, body").css({ height: "100vh", width: "100vw" });
if ($(".appbar").length > 0) {
$(".toolbar").css("margin-bottom", "20px");
}
}
</script>
</body>
</html>