-
Notifications
You must be signed in to change notification settings - Fork 2
/
popup.html
executable file
·65 lines (61 loc) · 1.59 KB
/
popup.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/backbone-min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/echarts.min.js"></script>
<style>
body{font-size:14px;}
.table{margin-bottom:0}
.table td{
font-size:12px;
white-space: nowrap;
}
.pile{
background-color: #fff;
border-color: #ddd;
border-width: 1px;
border-radius: 4px 4px 0 0;
box-shadow: none;
padding: 10px;
margin: 10px;
border-style: solid;
min-width:422px;
}
.container{
text-align:center;
}
.chart {
width: 100%;
height:90px;
padding:0px!important;
}
</style>
</head>
<body>
<div class="container"><img src="128.png" width="64"></div>
<div id="stage"></div>
</body>
<script id="pile_info" type="text/x-jquery-tmpl">
<div class="pile col-sm-12">
<table class="table">
<caption>充电桩:<%=name%></caption>
<tbody>
<tr>
<td>状态:<span class="label <%=statusClass%>"><%=runStatus%></span></td>
<td>价格:<span class="label label-warning"><%=currentPrice%></span></td>
<td>进度:<span class="label label-info"><%=chargingProgress%></span></td>
</tr>
<tr>
<td id="<%=id%>" class="chart" colspan="3"></td>
</tr>
</tbody>
</table>
</div>
</script>
<script src="js/controller.js"></script>
</html>