-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase.html
More file actions
89 lines (82 loc) · 4.16 KB
/
case.html
File metadata and controls
89 lines (82 loc) · 4.16 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
84
85
86
87
88
89
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"content="target-densitydpi=device-dpi,width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="wgtRes/css/index.css">
<link rel="stylesheet" href="wgtRes/css/ui-base.css">
<link rel="stylesheet" href="wgtRes/css/ui-box.css">
<link rel="stylesheet" href="wgtRes/css/ui-color-v3.css">
<link rel="stylesheet" href="wgtRes/css/new.css">
<link rel="stylesheet" href="wgtRes/css/pag.css">
<link rel="stylesheet" href="css/appcan.icon.css">
<title>Untitled Document</title>
<script src="wgtRes/js/main.js"></script>
<script src="wgtRes/js/zy_control.js"></script>
<script src="wgtRes/js/zy_icache.js"></script>
<script src="wgtRes/js/zy_click.js"></script>
<script src="wgtRes/js/zy_json.js"></script>
<script src="js/appcan.js"></script>
<script src="js/appcan.control.js"></script>
<script type="text/javascript">
function openSlideWindow() {
var topMargin = document.getElementById("title").offsetHeight;
// var topMargin = window.screen.height;
var contentArray = ["res://pages/page1.html", "res://pages/page2.html", "res://pages/page3.html", "res://pages/page4.html", "res://pages/page5.html", "res://pages/page6.html", "res://pages/page7.html"];
var iconArray = ["res://img/icon0.png", "res://img/icon1.png", "res://img/icon2.png", "res://img/icon3.png", "res://img/icon5.png", "res://img/icon7.png", "res://img/icon9.png"];
var colorArray = ["#004aa5", "#c8c8c8", "#007473", "#0c4d90", "#329cc3", "#7098d4", "#0484cd"];
uexSlidePager.openSlidePager(topMargin, contentArray, iconArray, colorArray);
}
function onPageClick(index) {
openNewWin(index, "wgtRes/pagess/pages" + index + ".html");
}
function onChangeColor(color) {
setLocVal("color", color);
document.getElementById('title').style.backgroundColor = color;
}
window.uexOnload = function() {
openSlideWindow();
uexSlidePager.onPageClick = onPageClick;
uexSlidePager.onChangeColor = onChangeColor;
//监听物理返回键回调
uexWindow.onKeyPressed = function(k) {
if (k == 0) {
//uexButton.close('11');
//uexSlidePager.closeSlidePager();
closeSlide();
//appcan.window.close(-1);
}
}
//监听物理返回键
uexWindow.setReportKey(0, 1);
}
function closeSlide() {
//uexButton.close('11');
uexSlidePager.closeSlidePager();
uexWindow.close(-1);
//var id = 1001;
//uexButton.close(id);
}
</script>
</head>
<body id="title" ontouchstart>
<div class="tit ub ub-pc ub-ac c-pa ub-img mar head-p1">
<div class="nav-btn">
<div class="uinn b-gra" style="background: rgba(255,255,255,.3);-webkit-border-radius: 1.5em;border-radius: 1.5em;margin-left:0.5em;" >
<div class="icon-back ub-img4" style="width: 1.4em;height: 1.4em;"></div>
</div>
</div>
<div class="ub ub-f1 ub-ac font3 pad1 ub-ac ub-pc">
案例锦集
</div>
<div class="ub ub-ac umw4 ub-pc" ontouchstart="zy_touch('btn-act')" onclick="uexSlidePager.setCurrentPage(0);">
<img src="wgtRes/img/return.png" class="marl ub ub-pc rewh ub-img uinn3"/>
</div>
</div>
</body>
<script>
appcan.button(".nav-btn", "btn-act", function() {
closeSlide();
})
</script>
</html>