Spaces:
Running
Running
Update index.html
Browse files- index.html +39 -18
index.html
CHANGED
|
@@ -1,19 +1,40 @@
|
|
| 1 |
-
<!
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Bonn ESTW Sim</title>
|
| 5 |
+
<style>
|
| 6 |
+
body { background: #000; color: #00ff41; font-family: monospace; }
|
| 7 |
+
#stw-grid {
|
| 8 |
+
display: grid;
|
| 9 |
+
grid-template-columns: repeat(20, 30px);
|
| 10 |
+
gap: 2px;
|
| 11 |
+
padding: 20px;
|
| 12 |
+
}
|
| 13 |
+
.cell {
|
| 14 |
+
width: 30px; height: 30px; background: #111;
|
| 15 |
+
border: 1px solid #222; display: flex; align-items: center; justify-content: center;
|
| 16 |
+
cursor: pointer;
|
| 17 |
+
}
|
| 18 |
+
.gleis { border-bottom: 2px solid #555; }
|
| 19 |
+
.occupied { border-bottom: 2px solid #ff0000 !important; }
|
| 20 |
+
.weiche-gerade::after { content: '─'; }
|
| 21 |
+
.weiche-abzweig::after { content: '╮'; }
|
| 22 |
+
</style>
|
| 23 |
+
</head>
|
| 24 |
+
<body>
|
| 25 |
+
<h1>STW BONN [WEST - HBF]</h1>
|
| 26 |
+
<div id="stw-grid"></div>
|
| 27 |
+
|
| 28 |
+
<script>
|
| 29 |
+
const grid = document.getElementById('stw-grid');
|
| 30 |
+
// Erzeuge ein einfaches Test-Raster
|
| 31 |
+
for(let i=0; i<200; i++) {
|
| 32 |
+
const cell = document.createElement('div');
|
| 33 |
+
cell.className = 'cell';
|
| 34 |
+
if(i > 40 && i < 60) cell.classList.add('gleis');
|
| 35 |
+
cell.onclick = () => cell.classList.toggle('occupied');
|
| 36 |
+
grid.appendChild(cell);
|
| 37 |
+
}
|
| 38 |
+
</script>
|
| 39 |
+
</body>
|
| 40 |
+
</html>
|