-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (75 loc) · 2.03 KB
/
Copy pathindex.html
File metadata and controls
82 lines (75 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CalSim3 Schematic</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
overflow: hidden;
}
h1 {
text-align: center;
margin: 10px 0;
padding: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 10;
background-color: rgba(255, 255, 255, 0.8);
}
#network-container {
width: 100vw;
height: 100vh;
}
.status-message {
position: absolute;
bottom: 20px;
left: 20px;
background-color: rgba(255, 255, 255, 0.8);
padding: 10px;
border-radius: 5px;
font-size: 14px;
}
.error-message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 0, 0, 0.2);
color: darkred;
padding: 20px;
border-radius: 5px;
font-size: 16px;
max-width: 80%;
}
.zoom-controls {
position: absolute;
top: 20px;
left: 20px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 10;
}
.zoom-controls button {
padding: 10px;
font-size: 14px;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
}
</style>
</head>
<body>
<!-- <h1>CalSim3 Schematic</h1> -->
<div id="network-container"></div>
<!-- Import scripts with type="module" for Vite -->
<script type="module" src="/networkDiagram.js"></script>
</body>
</html>