-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (76 loc) · 2.69 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
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
<!DOCTYPE html>
<html>
<head lang="en">
<script src="LeCalcView.js"></script>
<script src="LeCalcResult.js"></script>
<script src="LeCalcBtn.js"></script>
<script src="LeRelationshipApi.js"></script>
<script src="LeFeedbackView.js"></script>
<script src="LeFrameTitlebar.js"></script>
<script src="Jndroid-min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>亲戚计算器</title>
</head>
<meta charset="UTF-8">
<body>
<script>
function setStatusbarColor() {
if (window.rh != undefined) {
rh._rsetStatusbarColor({color:0xff272727});
rh._rsetTranslucentStatus({status:true});
}
}
setStatusbarColor();
setTimeout(setStatusbarColor, 200);
setTimeout(setStatusbarColor, 400);
var mUnitWidth = document.body.clientWidth / 4;
var mUnitHeight = mUnitWidth;
var mRootView = new FrameLayout();
mRootView.setBackgroundColor(0xffffffff);
setContentView(mRootView);
var mCalView = new LeCalcView();
mRootView.addView(mCalView);
var mFeatureView = new FrameLayout();
mRootView.addView(mFeatureView);
mFeatureView.setVisibility(View.GONE);
function showFullscreen(view, animationEndFunc) {
var state = {title : "·´À¡", url : "feedback"};
history.pushState(state, "·´À¡", "index.html");
mFeatureView.addView(view);
mFeatureView.setVisibility(View.VISIBLE);
var translate = new TranslateAnimation(screen.width, 0, 0, 0);
translate.setDuration(300);
translate.setInterpolator(Interpolator.EASE_IN);
translate.setAnimationEndListener(animationEndFunc);
mFeatureView.startAnimation(translate);
}
function exitFullscreen() {
var translate = new TranslateAnimation(0, screen.width, 0, 0);
translate.setDuration(300);
mFeatureView.setAnimation(translate);
translate.setAnimationEndListener(function() {
mFeatureView.removeAllViews();
mFeatureView.setVisibility(View.GONE);
});
translate.start();
}
window.onpopstate = function (e) {
if (e.state == null) {
if (mFeatureView.getVisibility() == View.VISIBLE) {
exitFullscreen();
}
}
};
</script>
<script type='text/javascript'>
(function() {
var c = document.createElement('script');
c.type = 'text/javascript';
c.async = true;
c.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.clicki.cn/boot/51903';
var h = document.getElementsByTagName('script')[0];
h.parentNode.insertBefore(c, h);
})();
</script>
</body>
</html>