Repository navigation
Expand file tree
/
Copy pathDatasets.html
More file actions
58 lines (53 loc) · 1.66 KB
/
Copy pathDatasets.html
File metadata and controls
58 lines (53 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dataset Browser</title>
<style>
body {
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
margin-top: 20px;
}
.dataset-list {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
.dataset-item {
padding: 10px 20px;
margin: 5px 0;
background-color: #f0f0f0;
cursor: pointer;
transition: background-color 0.3s;
}
.dataset-item:hover {
background-color: #dcdcdc;
}
</style>
</head>
<body>
<h1>Browse Datasets</h1>
<div class="dataset-list">
<div class="dataset-item" data-url="path/to/dataset1.csv">Dataset 1</div>
<div class="dataset-item" data-url="path/to/dataset2.csv">Dataset 2</div>
<div class="dataset-item" data-url="path/to/dataset3.csv">Dataset 3</div>
<!-- Add more dataset items as needed -->
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const datasetItems = document.querySelectorAll('.dataset-item');
datasetItems.forEach(item => {
item.addEventListener('click', () => {
const datasetUrl = item.getAttribute('data-url');
window.open(datasetUrl, '_blank');
});
});
});
</script>
</body>
</html>