DBFahrerKaterchen3 commited on
Commit
7d8e685
·
verified ·
1 Parent(s): a7f131b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +39 -18
index.html CHANGED
@@ -1,19 +1,40 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>