-
Notifications
You must be signed in to change notification settings - Fork 3
/
custom-tab-bar.htm
61 lines (44 loc) · 2.46 KB
/
custom-tab-bar.htm
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
<!DOCTYPE html>
<html>
<head>
<title>Custom Tab Bar</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="basic/basic.min.css">
<script src="basic/basic.min.js" type="text/javascript" charset="utf-8"></script>
<script src="components/ui-title.js" type="text/javascript" charset="utf-8"></script>
<script src="components/ui-page-control.js" type="text/javascript" charset="utf-8"></script>
<script src="js/view/default-view.js" type="text/javascript" charset="utf-8"></script>
<script src="js/view/second-view.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/ui-bottom-tab-bar.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/home-page.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/a-page.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/b-page.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/c-page.js" type="text/javascript" charset="utf-8"></script>
<script src="js/custom/custom-tab-bar/d-page.js" type="text/javascript" charset="utf-8"></script>
<script>
const start = function() {
page.color = "white";
// UI DEFAULT VIEW: Default page view:
//defaultView.default.backgroundColor = "white";
//defaultView.default.scrollY = 1;
defaultView.default.showWithMotion = 0;
defaultView.create();
// UI OBJECT: Bottom tab bar:
bottomTabBar.create();
bottomTabBar.onItemClick(function(selectedItem, selectedItemIndex) {
homePage.openPageByIndex(selectedItemIndex);
});
// UI SECOND VIEW: If you need a view without unload page in defaultView:
//secondView.default.backgroundColor = "white";
//secondView.default.scrollY = 1;
//secondView.default.showWithMotion = 1;
secondView.create();
homePage.openInDefaultView();
}
</script>
</head>
<body>
<!-- HTML content -->
</body>
</html>