-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
141 lines (130 loc) · 3.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<title>OpenLayers Benchmark</title>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
crossorigin="anonymous"
/>
<link rel="stylesheet" type="text/css" href="/node_modules/ol/ol.css" />
<link rel="stylesheet" type="text/css" href="/theme/site.css" />
<link
rel="icon"
type="image/svg+xml"
href="/theme/img/logo-light.svg"
media="(prefers-color-scheme: light)"
/>
<link
rel="icon"
type="image/svg+xml"
href="/theme/img/logo-dark.svg"
media="(prefers-color-scheme: dark)"
/>
<style>
.cases {
display: block;
padding: 0.65rem;
height: 140px;
margin: 0.65rem 0;
overflow: auto;
}
.cases p.description {
font-size: smaller;
margin: 5px 0;
}
a.cases {
text-decoration: none;
}
a.cases:hover :first-child {
text-decoration: underline;
}
</style>
</head>
<body>
<header
class="navbar navbar-expand-md navbar-dark mb-3 px-3 py-0 fixed-top"
>
<a class="navbar-brand" href="/">
<img src="/theme/img/logo-dark.svg" width="70" height="70" alt="Logo" />
OpenLayers Benchmark
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#olmenu"
aria-controls="olmenu"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
</header>
<div id="app" class="container-fluid"></div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const cases = [
{
title: "Polygon Rendering",
link: "cases/polygon-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering polygon geometries.",
},
{
title: "Point Rendering",
link: "cases/point-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering point data.",
},
{
title: "Line Rendering",
link: "cases/line-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering line geometries.",
},
{
title: "Vector Tiles Rendering",
link: "cases/vector-tiles-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering vector tiles.",
},
{
title: "Filtering Shapes",
link: "cases/filtering-shapes/",
shortdesc:
"Performance comparison of Canvas and WebGL for filtering shapes.",
},
];
const app = document.getElementById("app");
const row = document.createElement("div");
row.className = "row mt-3";
cases.forEach((caseItem) => {
const col = document.createElement("div");
col.className = "col-md-4 col-sm-6";
const a = document.createElement("a");
a.href = caseItem.link;
a.className = "cases bg-light border rounded";
const strong = document.createElement("strong");
strong.textContent = caseItem.title;
const small = document.createElement("small");
small.textContent = `(${caseItem.link})`;
const p = document.createElement("p");
p.className = "description";
p.textContent = caseItem.shortdesc;
a.appendChild(strong);
a.appendChild(document.createElement("br"));
a.appendChild(small);
a.appendChild(p);
col.appendChild(a);
row.appendChild(col);
});
app.appendChild(row);
});
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>