Egrigor commited on
Commit
895e15e
·
verified ·
1 Parent(s): 02d9f37

move chat onto the side under the highlights column, make the video display larger.

Browse files
Files changed (1) hide show
  1. index.html +21 -14
index.html CHANGED
@@ -15,15 +15,16 @@
15
  <a href="/logout" class="btn btn-outline-light btn-sm">Logout</a>
16
  </div>
17
  <div class="row">
18
- <!-- Webcam Column -->
19
- <div class="col-md-8 mb-4">
20
  <div class="text-center">
21
  <h5>Live Webcam</h5>
22
- <img src="{{ url_for('video_feed') }}" class="img-fluid rounded" style="max-height: 360px;">
23
  </div>
24
  </div>
25
-
26
- <!-- Detections Column -->
 
27
  <div class="col-md-4 mb-4">
28
  <div class="sticky-top" style="top: 20px;">
29
  <!-- Biome Display -->
@@ -34,20 +35,26 @@
34
  <!-- Detection Timeline -->
35
  <div class="mb-4">
36
  <h5>Detection Highlights</h5>
37
- <div id="categorized-timeline" class="bg-secondary rounded p-3" style="max-height: 500px; overflow-y: auto;">
38
  <p class="text-muted">Loading detection events...</p>
39
  </div>
40
  </div>
 
 
 
 
 
 
 
 
 
 
41
  </div>
42
  </div>
43
- </div>
44
- <!-- Group Chat - Full width below -->
45
- <div class="mb-4">
46
- <h5>Group Chat</h5>
47
- <div id="chatbox" class="bg-secondary rounded p-3 mb-3" style="height: 300px; overflow-y: scroll;"></div>
48
- <div class="input-group">
49
- <input id="message" class="form-control" placeholder="Type a message...">
50
- <button class="btn btn-primary" onclick="sendMessage()">Send</button>
51
  </div>
52
  </div>
53
  </div>
 
15
  <a href="/logout" class="btn btn-outline-light btn-sm">Logout</a>
16
  </div>
17
  <div class="row">
18
+ <!-- Webcam Column - Now full width -->
19
+ <div class="col-12 mb-4">
20
  <div class="text-center">
21
  <h5>Live Webcam</h5>
22
+ <img src="{{ url_for('video_feed') }}" class="img-fluid rounded" style="max-height: 600px; width: auto;">
23
  </div>
24
  </div>
25
+ </div>
26
+ <div class="row">
27
+ <!-- Right Column - Highlights and Chat -->
28
  <div class="col-md-4 mb-4">
29
  <div class="sticky-top" style="top: 20px;">
30
  <!-- Biome Display -->
 
35
  <!-- Detection Timeline -->
36
  <div class="mb-4">
37
  <h5>Detection Highlights</h5>
38
+ <div id="categorized-timeline" class="bg-secondary rounded p-3" style="max-height: 300px; overflow-y: auto;">
39
  <p class="text-muted">Loading detection events...</p>
40
  </div>
41
  </div>
42
+
43
+ <!-- Group Chat - Moved here -->
44
+ <div class="mb-4">
45
+ <h5>Group Chat</h5>
46
+ <div id="chatbox" class="bg-secondary rounded p-3 mb-3" style="height: 200px; overflow-y: scroll;"></div>
47
+ <div class="input-group">
48
+ <input id="message" class="form-control" placeholder="Type a message...">
49
+ <button class="btn btn-primary" onclick="sendMessage()">Send</button>
50
+ </div>
51
+ </div>
52
  </div>
53
  </div>
54
+
55
+ <!-- Main Content Column - Empty for now -->
56
+ <div class="col-md-8">
57
+ <!-- Left empty or can be used for other content -->
 
 
 
 
58
  </div>
59
  </div>
60
  </div>