-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create pregame.html * Adding pregame and Updating README * Pre-game graphic works Now the pre-game graphic works, you can use this before game start. * Update README.md * Post-game graphic works Now the post-game graphic works, you can use this after the end of the game for sowing the result. * Update update.php Aggiunta contollo delle richieste * Delete gest1.html * cache bug fix Now browser cache fixed. * Update Inning Arrow Now using 0/1/2 for all variable 0=two dash line 1=top 2=bottom * Bugfix Fixed Inning Arrow bug * LIVE SCOREBOARD Now the scoreboard updates live. * Update README.md Update README.md for the new version. * Update postgame.html * Delete of console.log for debugging. * Update of README.md added Installation and Italian translation
- Loading branch information
1 parent
6828724
commit c8708cf
Showing
9 changed files
with
259 additions
and
113 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,3 @@ | ||
|
||
*.json | ||
data.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
var data='{"Away":"PESARO","ScoreA":0,"ColorA":"#ff0000","Home":"FANO","ScoreH":0,"ColorH":"#ff8800","Ball":0,"Strike":0,"Out":0,"Ining":1,"bot":null,"b1":false,"b2":false,"b3":false}' | ||
var data='{"Away":"PESARO","ScoreA":0,"ColorA":"#ff0000","Home":"FANO","ScoreH":0,"ColorH":"#ff8800","Ball":0,"Strike":0,"Out":0,"Ining":0,"bot":0,"b1":false,"b2":false,"b3":false}' |
This file was deleted.
Oops, something went wrong.
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,71 @@ | ||
<html> | ||
<head> | ||
<title>Baseball Scoreboard</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@800&display=swap" rel="stylesheet"> | ||
<meta charset="UTF-8"> | ||
<meta name=viewport content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | ||
</head> | ||
<body style="background-color: rgba(0, 0, 0, 0);"> | ||
<table class="main"> | ||
<tr class="main"> | ||
<table> | ||
<tr> | ||
<td> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="310" height="100"> | ||
<polygon fill="#F3BC23" stroke="#F3BC23" stroke-width="1" points="0,0 250,0 200,50 0,50" id="labelA"/> | ||
<text id="nameA" x="25" y="37.5" text-anchor="start" fill="white" font-size="30">X</text> | ||
<polygon fill="rgb(41,41,41);" stroke="rgb(41,41,41);" stroke-width="1" points="250,0 200,50 260,50 310,0"/> | ||
<text id="scoreA" x="250" y="37.5" text-anchor="middle" fill="white" font-size="30" font-style="italic">10</text> | ||
</svg> | ||
</td> | ||
<td> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="310" height="100"> | ||
<polygon fill="rgb(41,41,41);" stroke="rgb(41,41,41);" stroke-width="1" points="50,0 0,50 60,50 110,0"/> | ||
<text id="scoreH" x="50" y="37.5" text-anchor="middle" fill="white" font-size="30" font-style="italic">10</text> | ||
<polygon fill="#F3BC23" stroke="#F3BC23" stroke-width="1" points="110,0 60,50 310,50 310,0" id="labelH"/> | ||
<text id="nameH" x="285" y="37.5" text-anchor="end" fill="white" font-size="30">X</text> | ||
</svg> | ||
</td> | ||
</tr> | ||
</table> | ||
</tr> | ||
</table> | ||
<!-- SCRIPT VARI--> | ||
<script src="data.json"></script> | ||
<script async=false defer=false> | ||
update() | ||
function load(){ | ||
console.log("load start") | ||
let json = document.createElement('script'); | ||
json.src = './data.json?'+ Math.random(); | ||
json.async = false; | ||
json.defer = false; | ||
document.body.appendChild(json); | ||
console.log("Caricamento terminato") | ||
} | ||
function update(){ | ||
console.log("update start") | ||
obj=JSON.parse(data) | ||
nameA.innerHTML=obj.Away; | ||
labelA.style.fill=obj.ColorA; | ||
labelA.style.stroke=obj.ColorA; | ||
scoreA.innerHTML=obj.ScoreA; | ||
|
||
nameH.innerHTML= obj.Home; | ||
labelH.style.fill=obj.ColorH; | ||
labelH.style.stroke=obj.ColorH; | ||
scoreH.innerHTML=obj.ScoreH; | ||
|
||
console.log("update end") | ||
} | ||
window.setInterval(function(){ | ||
load(); | ||
setTimeout(function afterTwoSeconds() | ||
{ | ||
update() | ||
},500) | ||
}, 10000); | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<html> | ||
<head> | ||
<title>Baseball Scoreboard</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@800&display=swap" rel="stylesheet"> | ||
<meta charset="UTF-8"> | ||
<meta name=viewport content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | ||
</head> | ||
<body style="background-color: rgba(0, 0, 0, 0);"> | ||
<table class="main"> | ||
<tr class="main"> | ||
<table> | ||
<tr> | ||
<td> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100"> | ||
<polygon fill="#F3BC23" stroke="#F3BC23" stroke-width="1" points="0,0 250,0 200,50 0,50" id="labelA"/> | ||
<text id="nameA" x="25" y="37.5" text-anchor="start" fill="white" font-size="30">X</text> | ||
</svg> | ||
</td> | ||
<td> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100"> | ||
<polygon fill="#F3BC23" stroke="#F3BC23" stroke-width="1" points="50,0 0,50 250,50 250,0" id="labelH"/> | ||
<text id="nameH" x="225" y="37.5" text-anchor="end" fill="white" font-size="30">X</text> | ||
</svg> | ||
</td> | ||
</tr> | ||
</table> | ||
</tr> | ||
</table> | ||
<!-- SCRIPT VARI--> | ||
<script src="data.json"></script> | ||
<script async=false defer=false> | ||
update() | ||
function load(){ | ||
console.log("load start") | ||
let json = document.createElement('script'); | ||
json.src = './data.json?'+ Math.random(); | ||
json.async = false; | ||
json.defer = false; | ||
document.body.appendChild(json); | ||
console.log("Caricamento terminato") | ||
} | ||
function update(){ | ||
console.log("update start") | ||
obj=JSON.parse(data) | ||
nameA.innerHTML=obj.Away; | ||
labelA.style.fill=obj.ColorA; | ||
labelA.style.stroke=obj.ColorA; | ||
|
||
nameH.innerHTML= obj.Home; | ||
labelH.style.fill=obj.ColorH; | ||
labelH.style.stroke=obj.ColorH; | ||
|
||
console.log("update end") | ||
} | ||
window.setInterval(function(){ | ||
load(); | ||
setTimeout(function afterTwoSeconds() | ||
{ | ||
update() | ||
},500) | ||
}, 10000); | ||
</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
Oops, something went wrong.