-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis.html
205 lines (178 loc) · 6.65 KB
/
analysis.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Thermostat Analysis</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/metisMenu.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-timepicker.min.css" rel="stylesheet">
<link href="css/bootstrap-select.css" rel="stylesheet">
<link href="css/bootstrap-touchspin.css" rel="stylesheet">
<link href="analysis.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<ul class="nav navbar-top-links navbar-right pull-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user fa-fw"></i> Username <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="index.html"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
</li>
</ul>
<style>
#titlePage {text-decoration: underline;}
</style>
<a id="titlePage" class="navbar-brand" href="homePage.html">PeakSaver Home</a>
</div>
<!-- / Navigation Header -->
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a href="viewThermostats.html" class="btn">
Thermostats
</a>
</li>
<!-- /.dropdown -->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-calendar fa-fw"></i> Schedules <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user dropdown-menu-left">
<li>
<a href="viewSchedules.html">
<div>
View Schedules
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="schedule-create.html">
<div>
Create Schedule
</div>
</a>
</li>
</ul>
<!-- /.dropdown-alerts -->
</li>
<!-- /.dropdown -->
<li class="dropdown">
<a href="history-thermostat.html">
<i class="fa fa-clock-o fa-fw"></i> History
</a>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
</nav>
<!-- Page Content -->
<!-- div id="page-wrapper"-->
<div style="margin:0.5em">
<div class="title">
Analysis of your schedule: <span id="name">Schedule_1</span>
</div>
<div class="graphSpace">
<div class="frameContainer">
<iframe id="graph" class="graph" src="graph.html" seamless frameborder="0"></iframe>
</div>
<div class="lowerGraphLabels">
<div class="horizontalMarkerContainer">
<div class="horizontalMarker">
Wake Up
</div>
<div class="horizontalMarker">
Leave
</div>
<div class="horizontalMarker">
Return
</div>
<div class="horizontalMarker">
Sleep
</div>
</div>
<div style="text-align:center;font-size:1.2em">
Time Frame
</div>
</div>
<div class="map">
<svg width="1em" height="1em" viewBox="0 0 20 20">
<rect width="20" height="20" style="fill:red;"/>
</svg>
User Schedule
<svg width="1em" height="1em" viewBox="0 0 20 20">
<rect width="20" height="20" style="fill:blue;"/>
</svg>
Recommended Settings
</div>
</div>
<div class="recommendation">
Recommendation for:
<select class="recommendations selectpicker" onchange="changed(this)">
<option>Schedule_1</option>
<option>Tom's Summer Schedule</option>
<option>Tom's Winter Schedule</option>
</select>
</div>
<div class="lowerOptions">
[SCHEDLE WITH > SAVING] Saves you $50
<br>
<br>
Use recommended schedule?
<br>
<br>
<div class="btn-group" role="group">
<button class="btn btn-default btn-lg" onclick="confirmBox()">Use</button>
<button class="btn btn-default btn-lg" onclick="leave()">Cancel</button>
</div>
</div>
<script>
function changed(elem){
document.getElementById('name').innerHTML=elem.value;
document.getElementById("graph").src="graph.html";
}
function confirmBox() {
if (confirm("Are you sure you want to apply these settings?"))
leave();
}
function leave(){
document.location.href = "homePage.html";
}
</script>
</div>
</div>
<!-- /#page-wrapper -->
<!-- /#wrapper -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/metisMenu.min.js"></script>
<script src="js/theme.js"></script>
<script src="js/bootstrap-timepicker.min.js"></script>
<script src="js/bootstrap-touchspin.js"></script>
<script src="js/bootstrap-select.js"></script>
</body>
</html>