-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.html
63 lines (62 loc) · 2.11 KB
/
help.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<!-- <link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
-->
<link href="css/jquery.mobile-1.3.1.css" rel="stylesheet" >
<link href="css/jquery.mobile.structure-1.3.1.css" rel="stylesheet">
<link href="css/jquery.mobile.theme-1.3.1.css" rel="stylesheet"></head>
<body>
<div data-role="page">
<div data-role="header" data-theme="b">
<h3>使用帮助</h3>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-shadow="true">
<li>
<a href="">运营日报</a>
</li>
<li>
<a href="">故障列表</a>
</li>
<li>
<a href="">短信通告</a>
</li>
<li>
<a href="">故障屏蔽</a>
</li>
</ul>
<a data-role='button' data-mini='true' data-inline='true' id='shieldtime_day' >1天</a>
<input type='datetime' data-clear-btn='true' name='datepicker' id='datepicker' placeholder='yy-mm-dd h:i' value=""></div>
<!-- <div data-role="footer"></div>
-->
</div>
</body>
<script src ="js/jquery-1.8.3.js" type="text/javascript"></script>
<script src ="js/jquery.mobile-1.3.1.js" type="text/javascript"></script>
<!-- <script src="js/bootstrap.min.js" type="text/javascript"></script>
-->
<script type="text/javascript">
var timestamp_now=Date.parse(new Date());
var add_day=1*60*60*24*1000;
var add_hour=1*60*60*1000;
var timestamp_plus_day=timestamp_now+add_day;
var timestamp_plus_hour=timestamp_now+add_hour;
var getDateTime=function(timestamp) {
var date=new Date(parseInt(timestamp));
var year=date.getFullYear();
var month=date.getMonth()+1;
var day=date.getDate();
var hours=date.getHours();
var minutes=date.getMinutes();
minutes=String(minutes).length<2?('0'+minutes):minutes;
return year+'-'+month+'-'+day+" "+hours+':'+minutes;
}
$("#shieldtime_day").live("click",function(){
var date_add_day = getDateTime(timestamp_plus_day);
$("#datepicker").val(date_add_day);
})
</script></html>