-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
92 lines (79 loc) · 2.42 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>kfstats</title>
<meta charset="UTF-8" />
<link type="text/css" href="css/smoothness/jquery-ui-1.8.22.custom.css" rel="stylesheet" />
<link type="text/css" href="css/kfstats.css" rel="stylesheet" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript" src="js/query.js"></script>
<script type="text/javascript" src="js/perks.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.perk').hide();
$('#tabs').tabs();
$('#searchform').submit(function() {
// This should go and query the php
getStatsFeed($('#searchname').val());
getAchievements($('#searchname').val());
return false;
});
});
</script>
</head>
<body>
<div id="container">
<header>
<div id="search">
<form id="searchform">
<input id="searchname" type="text" />
<input type="submit" value="Search" />
</form>
</div>
<div id="person">
</div>
<div id="errors">
</div>
</header>
<div id="page">
<div id="tabs">
<ul>
<li><a href="#perks">Perks</a></li>
<li><a href="#stats">Stats</a></li>
<li><a href="#maps">Maps</a></li>
<li><a href="#achievements">Achievements</a></li>
</ul>
<div id="perks" class="content">
<h2>Perks</h2>
<?php
$perks = array('medic' => 'Medic', 'support' => 'Support Specialist', 'sharp' => 'Sharpshooter', 'commando' => 'Commando', 'berzerker' => 'Berzerker', 'firebug' => 'Firebug', 'demo' => 'Demolitions');
foreach ($perks as $p => $n) {
?>
<div id="<?php echo $p; ?>" class="perk">
<h3><?php echo $n; ?></h3>
<span id="<?php echo $p; ?>-level"></span>
<span id="<?php echo $p; ?>-progress"></span>
<div style="width:400px">
<div id="<?php echo $p; ?>-bar" class="perkprogress"></div>
</div>
</div>
<?php
}
?>
</div>
<div id="stats">
<h2>Stats</h2>
</div>
<div id="maps">
<h2>Maps</h2>
</div>
<div id="achievements">
<h2>Achievements</h2>
</div>
</div>
</div>
</div>
<footer>kfstats by cranman</footer>
</body>
</html>