-
Notifications
You must be signed in to change notification settings - Fork 0
/
miniboard.html
134 lines (116 loc) · 4.95 KB
/
miniboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<script language="JavaScript" type="text/javascript">
function boardRefresh() {
document.getElementById("homeTO1").style.visibility=opener.ht1;
document.getElementById("homeTO2").style.visibility=opener.ht2;
document.getElementById("homeTO3").style.visibility=opener.ht3;
document.getElementById("homeRO1").style.visibility=opener.hr1;
document.getElementById("guestTO1").style.visibility=opener.gt1;
document.getElementById("guestTO2").style.visibility=opener.gt2;
document.getElementById("guestTO3").style.visibility=opener.gt3;
document.getElementById("guestRO1").style.visibility=opener.gr1;
document.getElementById('homeJamScore').innerHTML = opener.homejamscore;
document.getElementById('guestJamScore').innerHTML = opener.guestjamscore;
document.getElementById('periodHeader').innerHTML = "PERIOD " + opener.period;
}
function clockRefresh(psec,pmin,jsec,jmin,jam,jClockLabel,JCColor,PCColor) {
document.getElementById('periodTime').innerHTML = pmin + ":" + ((psec<=9) ? "0" + psec : psec);
document.getElementById('jamTime').innerHTML = jmin + ":" + ((jsec<=9) ? "0" + jsec : jsec);
document.getElementById('jamHeader').innerHTML = jClockLabel;
document.getElementById('jamNumber').innerHTML = ((jam<=9) ? "0" + jam : jam)
document.getElementById('periodTime').style.color = PCColor;
document.getElementById('jamTime').style.color = JCColor;
return true;
}
function showAd(url){
document.getElementById('ad').src = url;
return true;
}
function toggle(div_id) {
var el = document.getElementById(div_id);
if ( el.style.display == 'none' ) { el.style.display = 'block';}
else {el.style.display = 'none';}
}
function blanket_size(popUpDivVar) {
if (typeof window.innerWidth != 'undefined') {
viewportheight = window.innerHeight;
} else {
viewportheight = document.documentElement.clientHeight;
}
if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
blanket_height = viewportheight;
} else {
if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
blanket_height = document.body.parentNode.clientHeight;
} else {
blanket_height = document.body.parentNode.scrollHeight;
}
}
var blanket = document.getElementById('blanket');
blanket.style.height = blanket_height + 'px';
var popUpDiv = document.getElementById(popUpDivVar);
popUpDiv_height=blanket_height/2-150;//150 is half popup's height
popUpDiv.style.top = popUpDiv_height + 'px';
}
function window_pos(popUpDivVar) {
if (typeof window.innerWidth != 'undefined') {
viewportwidth = window.innerHeight;
} else {
viewportwidth = document.documentElement.clientHeight;
}
if ((viewportwidth > document.body.parentNode.scrollWidth) && (viewportwidth > document.body.parentNode.clientWidth)) {
window_width = viewportwidth;
} else {
if (document.body.parentNode.clientWidth > document.body.parentNode.scrollWidth) {
window_width = document.body.parentNode.clientWidth;
} else {
window_width = document.body.parentNode.scrollWidth;
}
}
var popUpDiv = document.getElementById(popUpDivVar);
window_width=window_width/2-150;//150 is half popup's width
popUpDiv.style.left = window_width + 'px';
}
function popup(windowname) {
// blanket_size(windowname);
// window_pos(windowname);
toggle('blanket');
toggle(windowname);
}
</script>
<link rel="stylesheet" type="text/css" href="miniboard.css" />
<title></title>
</head><body onload="boardRefresh();">
<div id="master">
<div id="scoreboardFrame">
<div id="allClocksFrame">
<div class="clock" id="period">
<div class="clockHeaders" id="periodHeader">PERIOD 1</div>
<div class="clockTimes" id="periodTime">30:00</div>
</div>
<div class="clock" id="jam">
<div class="clockHeaders" id="jamHeader">JAM CLOCK</div>
<div class="clockTimes" id="jamTime">2:00</div>
</div>
<div class="clock" id="timeOut">
<div class="clockTimes" id="timeoutCount">
<img class="toHIcons" id="homeTO1" src="icons/timeout.jpg">
<img class="toHIcons" id="homeTO2" src="icons/timeout.jpg">
<img class="toHIcons" id="homeTO3" src="icons/timeout.jpg">
<img class="toHIcons" id="homeRO1" src="icons/review.jpg">
<img class="toGIcons" id="guestTO1" src="icons/timeout.jpg">
<img class="toGIcons" id="guestTO2" src="icons/timeout.jpg">
<img class="toGIcons" id="guestTO3" src="icons/timeout.jpg">
<img class="toGIcons" id="guestRO1" src="icons/review.jpg">
</div>
</div>
</div>
<div id="jamScoreFrame">
<span class="jamScores" id="homeJamScore" >00</span>
<span id="jamScoreTitle">JAM <span id="jamNumber">00</span> POINTS</span>
<span class="jamScores" id="guestJamScore">00</span>
</div>
</div>
</div>
</body></html>