forked from Team254/cheesy-arena
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8224cdc
commit df01a85
Showing
6 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* Global body styles */ | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
padding: 0; | ||
} | ||
|
||
/* Header styling */ | ||
h1 { | ||
text-align: center; | ||
color: #ffffff; | ||
} | ||
|
||
/* Container for all status items */ | ||
.status-container { | ||
margin-top: 20px; | ||
} | ||
|
||
/* Individual status item styling */ | ||
.team-id { | ||
display: flex; | ||
align-items: center; | ||
margin: 10px 0; | ||
padding: 10px; | ||
border-radius: 5px; | ||
color: #333; | ||
} | ||
|
||
/* Color box for each status */ | ||
.status-color-box { | ||
width: 50px; | ||
height: 50px; | ||
margin-right: 20px; | ||
border-radius: 5px; | ||
} | ||
|
||
/* Description area for each status */ | ||
.status-description { | ||
font-size: 16px; | ||
} | ||
|
||
/* Name of the status (bold) */ | ||
.status-name { | ||
font-weight: bold; | ||
} | ||
|
||
/* Color code (italic) */ | ||
.status-code { | ||
font-style: italic; | ||
margin-left: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Team Status Color Legend</title> | ||
<link rel="stylesheet" href="/static/css/Field_monitor_display.css" /> | ||
<link rel="stylesheet" href="/static/css/Field_monitor_display_help.css" /> | ||
</head> | ||
<body> | ||
|
||
<h1>Team Status Color Legend</h1> | ||
|
||
<div class="status-container"> | ||
<div class="team-id" data-status="no-link" > | ||
<div class="status-description"> | ||
<span class="status-name">No Link:</span> | ||
<p>This status indicates that the team is not connected to the system.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="team-id" data-status="ds-linked"> | ||
<div class="status-description"> | ||
<span class="status-name">DS Linked:</span> | ||
<p>This status indicates that the team is linked to the Driver Station (DS).</p> | ||
</div> | ||
</div> | ||
|
||
<div class="team-id" data-status="robot-linked"> | ||
|
||
<div class="status-description"> | ||
<span class="status-name">Robot Linked:</span> | ||
<p>This status indicates that the team's robot is linked and ready to operate.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="team-id" data-status="rio-linked"> | ||
<div class="status-description"> | ||
<span class="status-name">RIO Linked:</span> | ||
<p>This status indicates that the team's Robot Interface (RIO) is linked.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="team-id" data-status="radio-linked"> | ||
<div class="status-description"> | ||
<span class="status-name">Radio Linked:</span> | ||
<p>This status indicates that the team's robot is successfully linked to the radio.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="team-id" data-status="wrong-station"> | ||
<div class="status-description"> | ||
<span class="status-name">Wrong Station:</span> | ||
<p>This status indicates that the team is in the wrong station.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2018 Team 254. All Rights Reserved. | ||
// Author: [email protected] (Patrick Fairbank) | ||
// | ||
// Web handlers for the field monitor display showing robot connection status. | ||
|
||
package web | ||
|
||
import ( | ||
"github.com/Team254/cheesy-arena/game" | ||
"github.com/Team254/cheesy-arena/model" | ||
"net/http" | ||
) | ||
|
||
// Renders the field monitor display. | ||
func (web *Web) fieldMonitorDisplayHelpHandler(w http.ResponseWriter, r *http.Request) { | ||
|
||
|
||
template, err := web.parseFiles("templates/field_monitor_display_help.html") | ||
if err != nil { | ||
handleWebErr(w, err) | ||
return | ||
} | ||
data := struct { | ||
*model.EventSettings | ||
MatchSounds []*game.MatchSound | ||
}{web.arena.EventSettings, game.MatchSounds} | ||
err = template.ExecuteTemplate(w, "field_monitor_display_help.html", data) | ||
if err != nil { | ||
handleWebErr(w, err) | ||
return | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters