-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (58 loc) · 2.51 KB
/
index.html
File metadata and controls
60 lines (58 loc) · 2.51 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
<html>
<head>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
<script src="https://unpkg.com/vue-chartjs/dist/vue-chartjs.min.js"></script>
<script src="jquery-csv.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="app">
<div id="file-chooser">
<p id="buttons-desc">Choose files for analysis:</p>
<div id="buttons-cont">
<label class="text-reader" id="id-file">IDS
<input type="file" @change="loadSensorIds">
</label>
<label class="text-reader" id="data-file">DATA
<input type="file" @change="loadSensorData">
</label>
</div>
</div>
<div id=sensorTable v-if="isIdsFileLoaded">
<table>
<thead>
<tr id="table-head">
<td>Sensor Id</td>
<td>Sensor Name</td>
<td>Sensor a param</td>
<td>Sensor b param</td>
</tr>
</thead>
<tbody>
<tr is="sensor-comp"
@new-params="updateSensorParams($event)"
v-for="sensor in sensorIds"
v-bind:sensor-prop="sensor"
v-bind:key="sensor.id">
</tr>
</tbody>
</table>
<button id="save-params-button" v-on:click="computeSensorData">SAVE</button>
</div>
<div v-if=isDataComputed id="charts-cont">
<ul>
<li is="line-chart"
v-for="sensor in sensorIds"
v-bind:data="computedSensorData"
v-bind:sensor="sensor"
v-bind:key="sensor.id"
></li>
</ul>
</div>
</div>
<script src="index.js"></script>
</body>
</html>