-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.html
114 lines (105 loc) · 4.2 KB
/
post.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta 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" href="css/ui-tab.css">
<link rel="stylesheet" href="css/ui-base.css">
<link rel="stylesheet" href="css/ui-box.css">
<link rel="stylesheet" href="css/ui-color.css">
<link rel="stylesheet" href="css/ui-res.css">
<link rel="stylesheet" href="css/ui-365.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/beihai365_comman.js"></script>
<script src="js/zepto.min.js"></script>
</head>
<body class="um-vp c-wh" ontouchstart>
<div id="page_0" class="up ub ub-ver" tabindex="0">
<div id="header" class="uh c-m15 t-wh ub head_top_home">
<div class="list_quxiao" ontouchstart="fanhui();"></div>
<h1 id="form_name" class="ub-f1 ulev5 ut-s tx-c" tabindex="0">发帖</h1>
<div class="list_re_btn tx-c list_re_btn_hui" id="list_re_btn_hui" >
<span class="f14">发布</span>
</div>
<div class="list_re_btn tx-c" id="list_re_btn" ontouchstart="post()" style="display:none;">
<span class="f14">发布</span>
</div>
</div>
<!--header结束-->
<!--content开始-->
<div id="content" class="ub-f1 tx-l t-bla ub-img6" style=""></div>
<!--content结束-->
</div>
</body>
<script>
zy_init();
window.uexOnload = function(type) {
if (!type) {
uexWindow.setBounce("0");
//alert('应用是否为iOS7风格:' + );
if (uexWidgetOne.iOS7Style) {
//alert("")
document.getElementById("header").style.paddingTop = "1.125rem";
}
uexWindow.onKeyPressed = onKeyPressed;
//设置拦截back键
uexWindow.setReportKey('0', '1');
zy_con("content", "post_content.html", 0, $$("header").offsetHeight);
$("#form_name").html("发帖(" + localStorage.username + ")")
}
window.onorientationchange = window.onresize = function() {
zy_resize("content", 0, $$("header").offsetHeight);
}
}
//弹出提示框
function openBC() {
var value = "保存;不保存";
uexWindow.cbActionSheet = actionSheetSuccess;
var mycars = value.split(";");
uexWindow.actionSheet("", "取消", mycars);
}
function actionSheetSuccess(opId, dataType, data) {
if (data == '0') {
localStorage.tmp_read_switch = "yes";
close_window();
} else if (data == '1') {
localStorage.tmp_read_switch = "no";
close_window();
} else {
}
}
//提示框结束
function post() {
uexWindow.evaluatePopoverScript("post", "content", "xmlHttpPost()");
}
function onKeyPressed(keyCode) {
fanhui();
}
function fanhui(obj) {
if (obj == 'go') {
//发现是程序触发的直接关闭
close_window();
} else {
if (localStorage.takekey_post_one == "none") {
close_window();
} else {
openBC();
}
}
}
function takekey(obj) {
localStorage.takekey_post_one = obj;
}
function PostBtnShow(obj) {
if (obj == 'ok') {
$("#list_re_btn").hide();
$("#list_re_btn_hui").show();
} else {
$("#list_re_btn").show();
$("#list_re_btn_hui").hide();
}
}
</script>
</html>