-
Notifications
You must be signed in to change notification settings - Fork 1
/
排行榜.html
130 lines (121 loc) · 5.98 KB
/
排行榜.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
<!DOCTYPE html>
<html>
<head>
<title>排行榜</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<link href="resources/css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
<link href="data/styles.css" type="text/css" rel="stylesheet"/>
<link href="files/排行榜/styles.css" type="text/css" rel="stylesheet"/>
<script src="resources/scripts/jquery-3.2.1.min.js"></script>
<script src="resources/scripts/axure/axQuery.js"></script>
<script src="resources/scripts/axure/globals.js"></script>
<script src="resources/scripts/axutils.js"></script>
<script src="resources/scripts/axure/annotation.js"></script>
<script src="resources/scripts/axure/axQuery.std.js"></script>
<script src="resources/scripts/axure/doc.js"></script>
<script src="resources/scripts/messagecenter.js"></script>
<script src="resources/scripts/axure/events.js"></script>
<script src="resources/scripts/axure/recording.js"></script>
<script src="resources/scripts/axure/action.js"></script>
<script src="resources/scripts/axure/expr.js"></script>
<script src="resources/scripts/axure/geometry.js"></script>
<script src="resources/scripts/axure/flyout.js"></script>
<script src="resources/scripts/axure/model.js"></script>
<script src="resources/scripts/axure/repeater.js"></script>
<script src="resources/scripts/axure/sto.js"></script>
<script src="resources/scripts/axure/utils.temp.js"></script>
<script src="resources/scripts/axure/variables.js"></script>
<script src="resources/scripts/axure/drag.js"></script>
<script src="resources/scripts/axure/move.js"></script>
<script src="resources/scripts/axure/visibility.js"></script>
<script src="resources/scripts/axure/style.js"></script>
<script src="resources/scripts/axure/adaptive.js"></script>
<script src="resources/scripts/axure/tree.js"></script>
<script src="resources/scripts/axure/init.temp.js"></script>
<script src="resources/scripts/axure/legacy.js"></script>
<script src="resources/scripts/axure/viewer.js"></script>
<script src="resources/scripts/axure/math.js"></script>
<script src="resources/scripts/axure/jquery.nicescroll.min.js"></script>
<script src="data/document.js"></script>
<script src="files/排行榜/data.js"></script>
<script type="text/javascript">
$axure.utils.getTransparentGifPath = function() { return 'resources/images/transparent.gif'; };
$axure.utils.getOtherPath = function() { return 'resources/Other.html'; };
$axure.utils.getReloadPath = function() { return 'resources/reload.html'; };
function rank()
{
console.log("begin");
var data = null;
var obj;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange=function(){
if(xhr.readyState==4 && xhr.status==200){
obj=JSON.parse(xhr.responseText);
var json=xhr.responseText;
var jsonlen=0;
function getJsonLength(json)
{
for (var x in json)
{
var y=jsonlen;
var z=y+1;
document.getElementById("table1").innerHTML+="<tr>"+"<td style='text-align:center;border:solid 2px #FFC0CB;'>"+obj[y].player_id+ "</td><td style='text-align:center;border:solid 2px #FFC0CB;'>"+obj[y].name+"</td><td style='text-align:center;border:solid 2px #FFC0CB;'>"+obj[y].score+"</td>"+"</tr>";
jsonlen++;
}
}
getJsonLength(json);
}
}
xhr.open("GET", "http://api.revth.com/rank",true);
xhr.send(data);
};
</script>
</head>
<body onload="rank()">
<div id="base" class="">
<!-- Unnamed (图片 ) -->
<div id="u0" class="ax_default image">
<img id="u0_img" class="img " src="images/排行榜/regen/u0.jpg"/>
<div id="u0_text" class="text " style="display:none; visibility: hidden">
<p></p>
</div>
</div>
<!-- Unnamed (矩形) -->
<div id="u1" class="ax_default label">
<div id="u1_div" class=""></div>
<div id="u1_text" class="text ">
<p><span>排行榜</span></p>
</div>
</div>
<!-- Unnamed (表格) -->
<div width="638" style="margin-left: 400px; margin-top: 220px; overflow-x: auto;;overflow-y: scroll; height: 540px; width: 660px; border: solid 6px #FFC0CB; position: absolute; z-index: 1">
<table width="638" border="1" id="table1" style="border: solid 0px #FFC0CB;position: absolute; z-index: 2 ">
<tr>
<td width=200px height=30px style="text-align:center;border:solid 6px #FFC0CB;color: hotpink;font-weight:bold">玩家ID</td>
<td width=200px height=30px style="text-align:center;border:solid 6px #FFC0CB;color: hotpink;font-weight:bold" >玩家名</td>
<td width=200px height=30px style="text-align:center;border:solid 6px #FFC0CB;color: hotpink;font-weight:bold">分数</td>
</tr>
</table>
</div>
<!-- 退回大厅按钮 (组合) -->
<div id="u2" class="ax_default" data-label="退回大厅按钮" data-left="13" data-top="914" data-width="238" data-height="94">
<!-- Unnamed (图片 ) -->
<div id="u3" class="ax_default image">
<img id="u3_img" class="img " src="images/排行榜/regen/u3.png"/>
<div id="u3_text" class="text " style="display:none; visibility: hidden">
<p></p>
</div>
</div>
<!-- Unnamed (矩形) -->
<div id="u4" class="ax_default label">
<div id="u4_div" class=""></div>
<div id="u4_text" class="text ">
<p><span>退回大厅</span></p>
</div>
</div>
</div>
</div>
<script src="resources/scripts/axure/ios.js"></script>
</body>
</html>