-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjudge.html
124 lines (113 loc) · 2.68 KB
/
judge.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>hoge</title>
<style>
body {
background-color: rgba(0, 0, 50, 0.8);
margin: 5px;
padding: 10px;
overflow: hidden;
font-family:"Mochiy Pop P One Regular";
color:#2196F3;
font-size: 64px;
color: #fff;
text-shadow:
3px 3px 3px #000, -3px -3px 3px #000,
-3px 3px 3px #000, 3px -3px 3px #000,
3px 0px 3px #000, -3px -0px 3px #000,
0px 3px 3px #000, 0px -3px 3px #000;
}
title-pg {color: #00e4ff;}
title-gr {color: #fffe4b;}
title-gd {color: #f98700;}
title-bd {color: #ff9b00;}
title-pr {color: #ec2610;}
title-cb {color: #ffffff;
text-shadow:
3px 3px 3px #f00, -3px -3px 3px #f00,
-3px 3px 3px #f00, 3px -3px 3px #f00,
3px 0px 3px #f00, -3px -0px 3px #f00,
0px 3px 3px #f00, 0px -3px 3px #f00;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
function loadXml()
{
var pg = "";
var gr = "";
var gd = "";
var bd = "";
var pr = "";
var cb = "";
var getxml = $.ajax({
url: "data.xml",
type: 'GET',
dataType: 'xml',
cache: false
});
getxml.done(function(xml){
pg = Number($(xml).find('pg').text());
gr = Number($(xml).find('gr').text());
gd = Number($(xml).find('gd').text());
bd = Number($(xml).find('bd').text());
pr = Number($(xml).find('pr').text());
cb = Number($(xml).find('cb').text());
$('pg').text(pg.toLocaleString());
$('gr').text(gr.toLocaleString());
$('gd').text(gd.toLocaleString());
$('bd').text(bd.toLocaleString());
$('pr').text(pr.toLocaleString());
$('cb').text(cb.toLocaleString());
});
getxml.fail(function(error){
//alert("読み込み失敗");
});
}
window.addEventListener('DOMContentLoaded', function() {
var roopTimer = setInterval(loadXml, 2000);
});
</script>
</head>
<body>
<table>
<tr>
<td><title-pg>PG</title-pg></td>
<td width="100pt"> </td>
<td align="right"><pg></pg></td>
</tr>
<tr>
<td><title-gr>GR</title-gr></td>
<td width="100pt"> </td>
<td align="right"><gr></gr></td>
</tr>
<tr>
<td><title-gd>GD</title-gd></td>
<td width="100pt"> </td>
<td align="right"><gd></gd></td>
</tr>
<tr>
<td><title-bd>BD</title-bd></td>
<td width="100pt"> </td>
<td align="right"><bd></bd></td>
</tr>
<tr>
<td><title-pr>PR</title-pr></td>
<td width="100pt"> </td>
<td align="right"><pr></pr></td>
</tr>
<tr>
<td><title-cb>CB</title-cb></td>
<td width="100pt"> </td>
<td align="right"><cb></cb></td>
</tr>
<tr>
<td><title-cb>--</title-cb></td>
<td width="100pt"> </td>
<td align="right"><dummy>000000</dummy></td>
</tr>
</table>
</body>
</html>