-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 3.14 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
<!doctype html>
<html lang="en">
<head>
<title>PYRGI 580 - Configurator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1,maximum-scale=1">
<meta name="description" content="Boat Visualization">
<meta property="og:url" content="https://aemconsultingsrl.it/">
<meta property="og:type" content="website">
<meta property="og:title" content="ALPHA LYRAE DESIGN">
<meta property="og:description" content="ALPHA LYRAE DESIGN VISUALIZER">
<meta property="og:image" content="assets/images/fb5e7ed993f9fc96.png">
<meta name="author" content="G. Mengucci">
<link href="https://fonts.googleapis.com/css2?family=Karla&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/a07ba4f556b1aa54.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/images/b169d59b59a9186e.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/images/5eef004aea5d2256.png">
<link rel="manifest" href="d02d2788237e48b1.webmanifest">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<script defer="defer" src="bundle.562ff00ec4788e14.js"></script>
<link href="main.css" rel="stylesheet">
</head>
<body>
<div class="sidebar"><img src="assets/images/7359812c6cdf4325.png" alt="Logo" class="logo">
<table id="data-table">
<tr>
<th colspan="3">PYRGI 580</th>
</tr>
</table>
<script>function loadCSV(t) { fetch(t).then((t => t.text())).then((t => { populateTable(t) })).catch((t => console.error("Error fetching the CSV file:", t))) } function parseCSV(t) { return t.split("\n").map((t => t.split(",").map((t => t.trim())))) } function populateTable(t) { const e = parseCSV(t), n = document.getElementById("data-table"); e.forEach(((t, e) => { if (e > 0) { const e = document.createElement("tr"); t.forEach((t => { const n = document.createElement("td"); n.textContent = t, e.appendChild(n) })), n.appendChild(e) } })) } window.onload = function () { loadCSV("table.csv") }</script>
<div class="sidebarbutton slide-in"><button id="toggleButton" class="chevron"><i
class="fas fa-chevron-right"></i></button></div>
</div>
<div id="loading-spinner-container" class="loading"><img src="assets/images/7359812c6cdf4325.png" alt="Logo"
class="logoload">
<div id="loading-spinner"></div>
</div>
<script>document.getElementById("toggleButton").addEventListener("click", (function () { var s = document.querySelector(".sidebar"), e = document.querySelector(".sidebarbutton"); s.classList.contains("slide-out") ? (s.classList.remove("slide-out"), s.classList.add("slide-in"), e.classList.remove("slide-out"), e.classList.add("slide-in"), this.classList.toggle("open", !1)) : (s.classList.remove("slide-in"), s.classList.add("slide-out"), e.classList.remove("slide-in"), e.classList.add("slide-out"), this.classList.toggle("open", !0)) }))</script>
</body>
</html>