-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (140 loc) · 6.94 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/splash.css">
<link rel="stylesheet" type="text/css" href="css/app.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Immersive Data Visualisation</title>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://rawgit.com/mayognaise/aframe-mouse-drag-rotate-component/master/dist/aframe-mouse-drag-rotate-component.min.js"></script>
<script src="https://cdn.rawgit.com/tizzle/aframe-orbit-controls-component/v0.1.14/dist/aframe-orbit-controls-component.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.13/ace.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.13/ext-language_tools.js"></script>
</head>
<body>
<div class="container" style="padding-top: 1px;">
<div class="left">
<!-- <div class="custom-select">
<select id="datasetSelect">
<option value="">Dataset</option>
<option value="option1">Today</option>
<option value="option2">This Week</option>
<option value="option3">This Month</option>
</select>
</div> -->
<form id="uploadForm" enctype="multipart/form-data" method="post" action="php/upload.php">
<label for="fileInput" class="custom-file-upload">
Browse
</label>
<input type="file" id="fileInput" name="file" accept=".json,.csv,.xls,.xlsx" style="display:none;" />
<span id="file-name" style="margin-left: 10px; margin-right: 20px;"></span>
<input type="submit" value="Submit Query">
</form>
<div class="box" id="box1">
<div class="box-content">
<button id="refresh-button">Reload</button>
<div id="table-list">
<div id="tableList">
<!-- The table list will be populated by JavaScript -->
</div>
</div>
</div>
</div>
<!-- <div class="box" id="box2"></div>
<div class="box-content"> -->
<!-- Add the content for box2 here -->
<!-- </div> -->
</div>
<div class="middle">
<div class="dropdown-container">
<div class="actions">
<button id="undo">Undo</button>
<button id="redo">Redo</button>
<select id="statistics">
<option value="">Select Statistic</option>
<option value="mean">Mean</option>
<option value="median">Median</option>
<option value="mode">Mode</option>
<option value="std-dev">Standard Deviation</option>
</select>
<button id="update">Update</button>
</div>
</div>
<div class="box vr" id="box3">
<div id="tooltip" class="tooltip" style="display: none;">
<div class="tooltip-content"></div>
</div>
<a-scene embedded cursor="rayOrigin: mouse">
<a-entity id="helloworld" rotation="0 0 0" position="-0.01 1.6 -0.0" scale="0.1 0.1 0.1" mouse-drag-rotate></a-entity>
<a-entity id="vr-tooltip" visible="false">
<a-plane id="vr-tooltip-background" width="auto" height="auto" color="rgba(0, 0, 0, 0.8)" position="0 0 -0.01"></a-plane>
<a-text id="vr-tooltip-content" color="#ffffff" width="1" height="1" wrap-count="40" align="left"></a-text>
</a-entity>
<a-camera position="0 1.6 1.5"
camera="fov: 80; zoom: 1;"
orbit-controls="autoRotate: false;
target: #helloworld;
enableDamping: true;
dampingFactor: 0.125;
rotateSpeed:0.25;
minDistance:1;
maxDistance:100;"
mouse-cursor>
</a-camera>
</a-scene>
</div>
<div id="selected-table" class="selected-table">
<!-- The table name will be displayed here -->
</div>
<!-- <div class="upload-btn-container" style="display: flex; flex-direction: column; align-items: center;">
<button class="upload-btn" onclick="handleUploadClick()">Upload Files</button>
</div> -->
<!-- <div class="modal hidden" id="confirmModal">
<div id="confirmationModal" class="modal">
<div class="modal-content">
<p>Are you sure you want to upload the selected file?</p>
<div class="modal-buttons">
<button id="confirmUploadBtn">Confirm</button>
<button id="cancelUploadBtn">Cancel</button>
</div>
</div>
</div>
</div> -->
<div class="box small" id="box4">
<div class="box-content">
<!-- Add the content for box4 here -->
</div>
</div>
</div>
<div class="right">
<!-- <div class="custom-select">
<select id="statisticsSelect">
<option value="">Developer Mode</option>
</select>
</div> -->
<button id="applyChanges">Apply Changes</button>
<div class="box" id="box5">
<div class="box-content">
<!-- Add the content for box5 here -->
</div>
</div>
</div>
</div>
<script src="js/appD3v3.js"></script>
<script src="js/fetch_tables.js"></script>
<script>
const dropdowns = document.querySelectorAll('.dropdown');
dropdowns.forEach(dropdown => {
dropdown.addEventListener('focus', () => {
dropdown.style.backgroundColor = 'lightgrey';
});
dropdown.addEventListener('blur', () => {
dropdown.style.backgroundColor = '';
});
});
</script>
</body>
</html>