-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutfit_page.html
155 lines (132 loc) · 10.2 KB
/
outfit_page.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
{% if outfit['fetches_so_far'] > 0 %}
<meta http-equiv="refresh" content="0" >
{% endif %}
</head>
<body bgcolor=#202020 style="background-image:url('{{ faction_images[faction] }}');background-repeat:no-repeat;background-attachment:fixed;background-position:center;">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41352458-1', 'x8-decisive-sylph-m.appspot.com');
ga('send', 'pageview');
</script>
{% set highlight="color:red" %}
{% if outfit['fetches_so_far'] > 0 %}
<H1 style="color:white"> {{ outfit['alias'] }} Outfit Data Loading, please wait loading {{ outfit['member_count'] }} outfit members {{ outfit['loaded_member_count'] }} so far</H1>
{% else %}
<H1 style="color:white">Outfit Summary : {{ outfit['alias'] }}</H1>
<H4 style="color:white"> {{ outfit['name'] }} </H4>
<H4 style="color:white"> Outfit Leader : {{ outfit['leader_name'] }} </H4>
<h2 style="color:white"> {{ outfit['alias'] }} : {{ outfit['member_count'] }} Members {{ outfit['members_online'] }} Online Now.</h2>
<table border='0' width=100% style="color:white" valign="middle">
<tr >
<td> Rank </td>
<td> Total Members </td>
<td> Total Score </td>
<td> Total Kills </td>
</tr>
{% for rank in rank_stats_order: %}
<tr >
<td >{{ rank }}</td>
<td >{{ rank_stats[rank]['members'] }}</td>
<td >{{ rank_stats[rank]['score'] }}</td>
<td >{{ rank_stats[rank]['kills'] }}</td>
</tr>
{% endfor %}
</table>
{% if focus_character != None %}
<H1 style="color:white">Focus Character Rankings : {{ focus_character['outfit_rank_name'] }}, {{ focus_character['name'] }}</H1>
<table border='0' width=100% style="color:white" valign="middle">
<tr >
<td></td>
<td> Ranking </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=battle_rank&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> BR </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=outfit_rank&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Outfit Rank </a>, Name </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=score_per_min&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Score/Min </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=weapon_score&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Score </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=kills_per_death&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> K/D ratio </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=weapon_kills&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Kills </a> </td>
<td> Classes by <a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=score_per_min">score/min</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=score"> score </a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=play_time"> playtime</a>
</td>
</tr>
{% for time in ['daily','weekly','monthly','forever']: %}
{% set member = sorts[time][focus_character_sort_position[time]] %}
<tr >
<td >{{ time }}</td>
<td >{{ focus_character_sort_position[time] + 1 }}</td>
<td style="{% if sort == "battle_rank" %} {{highlight}} {% endif %}">{{ member['battle_rank']['forever'] }}</td>
<td style="{% if sort == "outfit_rank" %} {{highlight}} {% endif %}">{{ member['outfit_rank_name'] }}, {{ member['name'] }}</td>
<td style="{% if sort == "score_per_min" %} {{highlight}} {% endif %}">{{ "%10.2f" % member['score_per_min'][time] }}</td>
<td style="{% if sort == "weapon_score" %} {{highlight}} {% endif %}">{{ member['weapon_score'][time] }}</td>
<td style="{% if sort == "kills_per_death" %} {{highlight}} {% endif %}">{{ "%10.2f" % member['kills_per_death'][time] }}</td>
<td style="{% if sort == "weapon_kills" %} {{highlight}} {% endif %}">{{ member['weapon_kills'][time] }}</td>
<td >
{% set opacity = 100 %}
{% set opacity_float = 1.0 %}
{% for clazz in member['class_sort'][time] %}
{% if clazz['score_per_min'][time] > 0.01 %}
<img src="{{ class_images[clazz['class']] }}" width=32 style="opacity:{{opacity_float}};filter:alpha(opacity={{opacity}});"> </img>
{% set opacity = opacity - 15 %}
{% set opacity_float = opacity_float - 0.15 %}
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing=daily&focus_character={{focus_character['name']}}&class_sort={{class_sort}}">Daily Statistics</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing=weekly&focus_character={{focus_character['name']}}&class_sort={{class_sort}}">Weekly Statistics</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing=monthly&focus_character={{focus_character['name']}}&class_sort={{class_sort}}">Monthly Statistics</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing=forever&focus_character={{focus_character['name']}}&class_sort={{class_sort}}">All Time Statistics</a>
<br>
<h3 style="color:white"> {{ times[time] }} statistics </h3>
<table border='0' width=100% style="color:white" valign="middle">
<tr >
<td> Place </td>
<td width='32'> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=battle_rank&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> BR </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=outfit_rank&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Outfit Rank </a>, Name </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=score_per_min&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Score/Min </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=weapon_score&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Score </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=kills_per_death&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> K/D ratio </a> </td>
<td> <a href="./new?outfit={{ outfit['alias'] }}&sort=weapon_kills&timing={{time}}&focus_character={{focus_character['name']}}&class_sort={{class_sort}}"> Kills </a> </td>
<td> Classes by <a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=score_per_min">score/min</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=score">score</a>
<a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{focus_character['name']}}&class_sort=play_time">playtime</a>
</td>
</tr>
{% set position = 0 %}
{% for member in sorts[time] %}
{% set position = position + 1 %}
<tr >
<td >{{ position }}</td>
<td width='32'><img src="https://census.soe.com/files/ps2/images/static/{{ offsets[faction] + member['battle_rank']['forever'] }}.png" width=32> </img> </td>
<td style="{% if sort == "battle_rank" %} {{highlight}} {% endif %}">{{ member['battle_rank']['forever'] }}</td>
<td style="{% if sort == "outfit_rank" %} {{highlight}} {% endif %}">{{ member['outfit_rank_name'] }}, <a href="./new?outfit={{ outfit['alias'] }}&sort={{sort}}&timing={{time}}&focus_character={{member['name']}}&class_sort={{class_sort}}">{{ member['name'] }}</a></td>
<td style="{% if sort == "score_per_min" %} {{highlight}} {% endif %}">{{ "%10.2f" % member['score_per_min'][time] }}</td>
<td style="{% if sort == "weapon_score" %} {{highlight}} {% endif %}">{{ member['weapon_score'][time] }}</td>
<td style="{% if sort == "kills_per_death" %} {{highlight}} {% endif %}">{{ "%10.2f" % member['kills_per_death'][time] }}</td>
<td style="{% if sort == "weapon_kills" %} {{highlight}} {% endif %}">{{ member['weapon_kills'][time] }}</td>
<td >
{% set opacity = 100 %}
{% set opacity_float = 1.0 %}
{% for clazz in member['class_sort'][time] %}
{% if clazz['score_per_min'][time] > 0.01 %}
<img src="{{ class_images[clazz['class']] }}" width=32 style="opacity:{{opacity_float}};filter:alpha(opacity={{opacity}});"> </img>
{% set opacity = opacity - 15 %}
{% set opacity_float = opacity_float - 0.15 %}
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
</body>
</html>