-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from ds306e18/html-overlay
Added more data to current_match.json and added an example html overlay.
- Loading branch information
Showing
11 changed files
with
344 additions
and
50 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,122 @@ | ||
.top { | ||
position: fixed; | ||
top: 0; | ||
left: 50%; | ||
transform: translate(-50%, 0); | ||
} | ||
|
||
.bottom { | ||
position: fixed; | ||
top: 100%; | ||
left: 50%; | ||
transform: translate(-50%, -100%); | ||
} | ||
|
||
.bottom-right { | ||
position: fixed; | ||
top: 100%; | ||
left: 100%; | ||
transform: translate(-100%, -100%); | ||
} | ||
|
||
.team-name { | ||
left: 30%; | ||
font-size: 1.8em; | ||
font-weight: bold; | ||
font-family: "Helvetica", "Verdana", sans-serif; | ||
color: white; | ||
float: left; | ||
text-align: center; | ||
width: 370px; | ||
} | ||
|
||
#ladder-div { | ||
margin-top: 35px; | ||
margin-left: 35px; | ||
display: inline-block; | ||
float: left; | ||
} | ||
|
||
#message { | ||
display: inline-block; | ||
font-size: 1.6em; | ||
font-weight: bold; | ||
font-family: "Consolas", "Courier New", monospace; | ||
width: 1000px; | ||
margin-left: 100px; | ||
margin-top: 100px; | ||
color: white; | ||
text-shadow: 0 0 12px rgb(0, 0, 0) | ||
} | ||
|
||
p.bot { | ||
border: solid 1px gray; | ||
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.51); | ||
padding: 4px; | ||
margin-bottom: 3px; | ||
margin-top: 8px; | ||
width: 200px; | ||
font-family: "Consolas", "Courier New", monospace; | ||
font-weight: bold; | ||
border-top-right-radius: 4px; | ||
border-bottom-right-radius: 4px; | ||
background-color: black; | ||
color: lightgray; | ||
} | ||
|
||
.date { | ||
font-size: 0.8em; | ||
font-weight: normal; | ||
} | ||
|
||
p.bot.round-robin.evaluating { | ||
background-color: #255c47; | ||
} | ||
|
||
p.bot.round-robin.evaluating.playing { | ||
background-color: #255c47; | ||
} | ||
|
||
p.bot.round-robin { | ||
background-color: #1c3d3e; | ||
} | ||
|
||
div.inactive-division { | ||
border: solid 1px rgba(85, 85, 85, 0.52); | ||
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.51); | ||
padding: 4px; | ||
margin-bottom: 3px; | ||
margin-top: 4px; | ||
width: 200px; | ||
font-family: "Consolas", "Courier New", monospace; | ||
font-weight: bold; | ||
border-top-right-radius: 4px; | ||
border-bottom-right-radius: 4px; | ||
background-color: rgba(89, 89, 89, 0.4); | ||
color: lightgray; | ||
} | ||
|
||
div.active-division { | ||
margin-bottom: 30px; | ||
margin-top: 20px; | ||
} | ||
|
||
.division-header { | ||
color: #ffffff; | ||
font-family: "Consolas", "Courier New", monospace; | ||
font-weight: bold; | ||
font-size: 1.5em; | ||
text-shadow: 0 0 6px rgb(0, 0, 0) | ||
} | ||
|
||
.rr_record { | ||
float:right; | ||
} | ||
|
||
.rr_win { | ||
color: #a4cc98; | ||
} | ||
|
||
.rr_loss { | ||
color: #c1846f; | ||
} |
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,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>title</title> | ||
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha384-vk5WoKIaW/vJyUAd9n/wmopsmNhiy+L2Z+SBxGYnUkunIxVxAv/UtMOhba/xskxh" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="overlay.css"/> | ||
</head> | ||
<body> | ||
<div class="top"> | ||
<img src="images/overlaybg.png"/> | ||
</div> | ||
<div class="top" style="top: 3px; display: block; width: 1174px"> | ||
<p id="team-name-blue" class="team-name">TBD</p> | ||
<p id="team-name-orange" class="team-name" style="float:right;">TBD</p> | ||
</div> | ||
<div class="bottom"> | ||
<img src="images/sponsors.png"/> | ||
</div> | ||
|
||
<script> | ||
const blueTeamName = $("#team-name-blue"); | ||
const orangeTeamName = $("#team-name-orange"); | ||
let previousData = null; | ||
let x = 0; | ||
|
||
setInterval(function () { | ||
$.get("current_match.json", function (json) { | ||
if (json !== previousData) { | ||
data = JSON.parse(json); | ||
blueTeamName.text(data.blue_team_name); | ||
orangeTeamName.text(data.orange_team_name); | ||
previousData = json; | ||
} | ||
}); | ||
}, 1000); | ||
</script> | ||
|
||
</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
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
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
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
Oops, something went wrong.