-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtobe.html
More file actions
381 lines (348 loc) · 14.1 KB
/
tobe.html
File metadata and controls
381 lines (348 loc) · 14.1 KB
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html>
<title>Analysis Dashbord</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="tobe.css" type="text/css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="tobe.js"></script>
<style>
html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}
</style>
<body class="w3-light-grey">
<!-- Top container -->
<div class="w3-bar w3-top w3-black w3-large" style="z-index:3;">
<button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fa fa-bars"></i> Menu</button>
<div style="float:left"><span class="w3-bar-item w3-right" >Analyse</span></div>
</div>
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;background-color:blue;" id="mySidebar"><br>
<div class="mycontainer">
<h4 style="margin-left:10px">Plots</h4>
</div>
<div class="w3-bar-block" >
<a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fa fa-remove fa-fw"></i> Close Menu</a>
<button href="#" class="mynav w3-blue"><img src="https://img.icons8.com/android/24/000000/bar-chart.png"> Bar</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/metro/26/000000/pie-chart.png"> Pie</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/ios/24/000000/line-chart.png"> Scatter</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/ios/24/000000/bar-chart-filled.png"> Histogram</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/material-rounded/24/000000/box.png"> BoxPlot </button>
<button href="#" class="mynav "><img src="https://img.icons8.com/material-rounded/24/000000/graph.png"> linear</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/android/24/000000/scatter-plot.png"> Scatter Hist</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/ios-glyphs/30/000000/bar-chart.png"> Bar Horizontal </button>
<button href="#" class="mynav "><img src="https://img.icons8.com/windows/32/000000/stackoverflow.png"> StackPlot</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/ios/24/000000/bar-chart-filled.png"> Stem plot</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/metro/26/000000/cosine.png"> Simple Plot</button>
<button href="#" class="mynav "><img src="https://img.icons8.com/material-two-tone/30/000000/bar-chart.png"> Stacked Bargraph</button>
</div>
</nav>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px;margin-top:43px;">
<h5 style="float:left;margin-left:20px;">Browse Your Dataset Here</h5>
<form action="try.php" action=POST>
<input type="file" name="file" id="file" style = "margin-top:11px;">
<input type="submit" name="files" value="Upload">
</form>
<!-- Header -->
<header class="w3-container" style="padding-top:5px">
<h5><b><i class="fa fa-dashboard"></i> My Plots</b></h5>
</header>
<div class="w3-row-padding w3-margin-bottom">
<div class="w3-quarter" >
<div class="rows" style="border-radius:3px;background: white;box-shadow: 2px 2px 6px grey;">
<div class="w3-left"><img src="https://img.icons8.com/color/70/000000/replicate-rows.png"></div>
<div class="w3-right">
<h3>5000</h3>
</div>
<div class="w3-clear"></div>
<h4 style="margin-left:10px ">Rows</h4>
</div>
</div>
<div class="w3-quarter">
<div class="rows" style="border-radius:3px;background: white;box-shadow: 2px 2px 6px grey;">
<div class="w3-left"><img src="https://img.icons8.com/color/70/000000/add-column.png"></div>
<div class="w3-right">
<h3>12</h3>
</div>
<div class="w3-clear"></div>
<h4 style="margin-left:10px ">Columns</h4>
</div>
</div>
<div class="w3-quarter">
<div class="rows" style="border-radius:3px;background: white;box-shadow: 2px 2px 6px grey;">
<div class="w3-left"><img src="https://img.icons8.com/bubbles/70/000000/gender-neutral-user.png"></div>
<div class="w3-right">
<h3>50</h3>
</div>
<div class="w3-clear" ></div>
<h4 style="margin-left:10px ">Users</h4>
</div>
</div>
<div class="w3-quarter">
<div class="rows" style="border-radius:3px;height:124px;background: white;box-shadow: 2px 2px 6px grey;">
<div class="w3-left"><img src="https://img.icons8.com/flat_round/70/000000/share.png"></div>
<div class="w3-right">
<h3>23</h3>
</div>
<div class="w3-clear"></div>
<h4 style="margin-left:10px ">Shares</h4>
</div>
</div>
</div>
<hr>
<div>
<div class = "myinfer" style="background-color:rgb(165, 170, 231)">
<h1 class ="infer" style="font-size:30px" > My inference</h1>
<ul class="row">
<div><a >X axis:</a>
<div class="custom-select" style="width:200px;">
<select>
<option value="0">Select car:</option>
<option value="1">Audi</option>
<option value="2">BMW</option>
<option value="3">Citroen</option>
<option value="4">Ford</option>
<option value="5">Honda</option>
<option value="6">Jaguar</option>
<option value="7">Land Rover</option>
<option value="8">Mercedes</option>
<option value="9">Mini</option>
<option value="10">Nissan</option>
<option value="11">Toyota</option>
<option value="12">Volvo</option>
</select>
</div>
</div>
<div><a >Y axis:</a>
<div class="custom-select" style="width:200px;">
<select>
<option value="0">Select car:</option>
<option value="1">Audi</option>
<option value="2">BMW</option>
<option value="3">Citroen</option>
<option value="4">Ford</option>
<option value="5">Honda</option>
<option value="6">Jaguar</option>
<option value="7">Land Rover</option>
<option value="8">Mercedes</option>
<option value="9">Mini</option>
<option value="10">Nissan</option>
<option value="11">Toyota</option>
<option value="12">Volvo</option>
</select>
</div>
</div>
<button class="button button2">Submit</button>
</div>
</ul>
<div class="plot"><img src="chart.jpg" width="100%" height="100%" align="center">
</div>
</div>
<div class="w3-container">
<h5>General Stats</h5>
<p>New Visitors</p>
<div class="w3-grey">
<div class="w3-container w3-center w3-padding w3-green" style="width:25%">+25%</div>
</div>
<p>New Users</p>
<div class="w3-grey">
<div class="w3-container w3-center w3-padding w3-orange" style="width:50%">50%</div>
</div>
<p>Bounce Rate</p>
<div class="w3-grey">
<div class="w3-container w3-center w3-padding w3-red" style="width:75%">75%</div>
</div>
</div>
<hr>
<div class="w3-container">
<h5>Countries</h5>
<table class="w3-table w3-striped w3-bordered w3-border w3-hoverable w3-white">
<tr>
<td>United States</td>
<td>65%</td>
</tr>
<tr>
<td>UK</td>
<td>15.7%</td>
</tr>
<tr>
<td>Russia</td>
<td>5.6%</td>
</tr>
<tr>
<td>Spain</td>
<td>2.1%</td>
</tr>
<tr>
<td>India</td>
<td>1.9%</td>
</tr>
<tr>
<td>France</td>
<td>1.5%</td>
</tr>
</table><br>
<button class="w3-button w3-dark-grey">More Countries <i class="fa fa-arrow-right"></i></button>
</div>
<hr>
<div class="w3-container">
<h5>Recent Users</h5>
<ul class="w3-ul w3-card-4 w3-white">
<li class="w3-padding-16">
<img src="/w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Mike</span><br>
</li>
<li class="w3-padding-16">
<img src="/w3images/avatar5.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Jill</span><br>
</li>
<li class="w3-padding-16">
<img src="/w3images/avatar6.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Jane</span><br>
</li>
</ul>
</div>
<hr>
<div class="w3-container">
<h5>Recent Comments</h5>
<div class="w3-row">
<div class="w3-col m2 text-center">
<img class="w3-circle" src="/w3images/avatar3.png" style="width:96px;height:96px">
</div>
<div class="w3-col m10 w3-container">
<h4>John <span class="w3-opacity w3-medium">Sep 29, 2014, 9:12 PM</span></h4>
<p>Keep up the GREAT work! I am cheering for you!! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><br>
</div>
</div>
<div class="w3-row">
<div class="w3-col m2 text-center">
<img class="w3-circle" src="/w3images/avatar1.png" style="width:96px;height:96px">
</div>
<div class="w3-col m10 w3-container">
<h4>Bo <span class="w3-opacity w3-medium">Sep 28, 2014, 10:15 PM</span></h4>
<p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><br>
</div>
</div>
</div>
<br>
<div class="w3-container w3-dark-grey w3-padding-32">
<div class="w3-row">
<div class="w3-container w3-third">
<h5 class="w3-bottombar w3-border-green">Demographic</h5>
</div>
<div class="w3-container w3-third">
<h5 class="w3-bottombar w3-border-red">System</h5>
</div>
<div class="w3-container w3-third">
<h5 class="w3-bottombar w3-border-orange">Target</h5>
</div>
</div>
</div>
<!-- Footer -->
<footer class="w3-container w3-padding-16 w3-light-grey">
<p>Powered by Aiboat</p>
</footer>
<!-- End page content -->
</div>
<script>
// Get the Sidebar
var mySidebar = document.getElementById("mySidebar");
// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");
// Toggle between showing and hiding the sidebar, and add overlay effect
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
overlayBg.style.display = "none";
} else {
mySidebar.style.display = 'block';
overlayBg.style.display = "block";
}
}
// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
overlayBg.style.display = "none";
}
</script>
<script>
var x, i, j, selElmnt, a, b, c;
/* Look for any elements with the class "custom-select": */
x = document.getElementsByClassName("custom-select");
for (i = 0; i < x.length; i++) {
selElmnt = x[i].getElementsByTagName("select")[0];
/* For each element, create a new DIV that will act as the selected item: */
a = document.createElement("DIV");
a.setAttribute("class", "select-selected");
a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
x[i].appendChild(a);
/* For each element, create a new DIV that will contain the option list: */
b = document.createElement("DIV");
b.setAttribute("class", "select-items select-hide");
for (j = 1; j < selElmnt.length; j++) {
/* For each option in the original select element,
create a new DIV that will act as an option item: */
c = document.createElement("DIV");
c.innerHTML = selElmnt.options[j].innerHTML;
c.addEventListener("click", function(e) {
/* When an item is clicked, update the original select box,
and the selected item: */
var y, i, k, s, h;
s = this.parentNode.parentNode.getElementsByTagName("select")[0];
h = this.parentNode.previousSibling;
for (i = 0; i < s.length; i++) {
if (s.options[i].innerHTML == this.innerHTML) {
s.selectedIndex = i;
h.innerHTML = this.innerHTML;
y = this.parentNode.getElementsByClassName("same-as-selected");
for (k = 0; k < y.length; k++) {
y[k].removeAttribute("class");
}
this.setAttribute("class", "same-as-selected");
break;
}
}
h.click();
});
b.appendChild(c);
}
x[i].appendChild(b);
a.addEventListener("click", function(e) {
/* When the select box is clicked, close any other select boxes,
and open/close the current select box: */
e.stopPropagation();
closeAllSelect(this);
this.nextSibling.classList.toggle("select-hide");
this.classList.toggle("select-arrow-active");
});
}
function closeAllSelect(elmnt) {
/* A function that will close all select boxes in the document,
except the current select box: */
var x, y, i, arrNo = [];
x = document.getElementsByClassName("select-items");
y = document.getElementsByClassName("select-selected");
for (i = 0; i < y.length; i++) {
if (elmnt == y[i]) {
arrNo.push(i)
} else {
y[i].classList.remove("select-arrow-active");
}
}
for (i = 0; i < x.length; i++) {
if (arrNo.indexOf(i)) {
x[i].classList.add("select-hide");
}
}
}
/* If the user clicks anywhere outside the select box,
then close all select boxes: */
document.addEventListener("click", closeAllSelect);
</script>
</body>
</html>