-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (84 loc) · 2.7 KB
/
index.html
File metadata and controls
92 lines (84 loc) · 2.7 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RDF Visualizer</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flexsearch@next/dist/flexsearch.bundle.js"></script>
<style>
.main-layout {
display: flex;
flex-direction: row;
align-items: flex-start;
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
.hierarchy-container {
flex-shrink: 0;
}
.card {
width: calc(33.33% - 40px);
height: 350px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
border: 1px solid #ccc;
margin: 10px;
padding: 10px;
border-radius: 8px;
background-color: #fff;
}
#app {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.card img {
width: 100%;
height: 200px;
object-fit: cover;
flex-shrink: 0;
}
.card h2 {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 10px;
box-sizing: border-box;
font-size: 16px;
}
</style>
</head>
<body>
<div class="upload-container">
<label for="rdf-upload">Upload an RDF file:</label>
<input type="file" id="rdf-upload" accept=".rdf" />
</div>
<div class="search-container">
<input type="text" id="search-input" placeholder="Search..." />
</div>
<div id="toggle-container" style="text-align: center; margin: 10px 0;">
<button id="map-view-btn">Map View</button>
</div>
<div class="main-layout">
<div id="app" class="app-container" style="flex-grow: 1;"></div>
<div id="hierarchy-container" class="hierarchy-container" style="width: 300px; overflow-y: auto; padding-left: 20px;"></div>
</div>
<div id="modal" class="modal">
<div class="modal-content">
<span class="close-btn" onclick="closeModal()">×</span>
<h2 id="modal-title"></h2>
<div id="modal-description"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>