-
Notifications
You must be signed in to change notification settings - Fork 0
/
shame.html
186 lines (169 loc) · 6.65 KB
/
shame.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
---
layout: page
title: Telovadnice
permalink: /telovadnice/
---
<br>
<h1> Število trenerjev po ekipah</h1>
<div id="userChart">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row big template">
<div class="label">
PlaceHolder
</div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Število telovadnic po ekipah </h1>
<div id="teamChart">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row big template">
<div class="label">
PlaceHolder
</div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Zid Sramu <small> od 1. Novembra ob 00:20 </small><a style="float:right; cursor: pointer;" onclick="$('#gym-description').slideToggle();">?</a></h1>
<div id="gym-description">
<a href="https://www.youtube.com/watch?v=uZ7vkmUNTPA"><img alt="shame" src="https://media.giphy.com/media/cMVQTH5yYus12/giphy.gif" style="width: 150px; float: right; margin-left: 10px;"/></a>
<p>
This section has to do with <b>players that have problems with
early evacuation</b> of enemy gyms.
</p>
<p>
In the current version of the game a player gets the maximum
reward from a gym (50 coins) after their Pokemon is in the gym
for a minimum of 500 minutes (8h 20min).
</p>
<p>
It is therefore understood that honourable trainers take down
enemy gyms no sooner than 500 minutes after the first Pokemon
has been placed to defend it.
</p>
<p>
Those who break the rule are worthy of shame. The graph shows
the number of times that player has been caught doing foul play.
</p>
<p>
If you know the team colour of any of the grey players you can
contact me via <a href="https://www.facebook.com/messages/t/maks.kolman">
Facebook messenger</a> to fix the error.
</p>
<p>
<b>Disclaimer:</b> Gym reporting is not instant and can
therefore be incorrect. For example, if you take a gym and are
beaten in a couple of minutes your ownership of the gym may not
have been recorded, therefore whoever beat you will get no
shame.
</p>
<p>
<a href="https://facebook.com/groups/1641595316167745?view=permalink&id=1899516627042278"> Pokemon GO Slovenija </a>
</p>
</div>
Čas do <a href="/pravila/#2-bojevanje-v-telovadnicah">tretje sobote</a>: <span id="countdown"></span> <br/>
<input type="text" placeholder="Search" onkeyup="highlight_trainers('#searchShame', '#shameChart', '#searchShameResult');" class="search" id="searchShame"/>
<span id="searchShameResult" class="searchResult"></span>
<div id="shameChart" class="enumerate hide expandable">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row template">
<div class="label"></div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Število telovadnic po trenerjih</h1>
<input type="text" placeholder="Search" onkeyup="highlight_trainers('#search', '#trnrChart', '#searchResult');" class="search" id="search"/>
<span id="searchResult" class="searchResult"></span>
<div id="trnrChart" class="enumerate hide expandable">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row template">
<div class="label"></div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Trenerji po levelu</h1>
<input type="text" placeholder="Search" onkeyup="highlight_trainers('#searchLvl', '#lvlChart', '#searchLvlResult');" class="search" id="searchLvl"/>
<span id="searchLvlResult" class="searchResult"></span>
<div id="lvlChart" class="enumerate hide">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row template">
<div class="label"></div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Najhitrejše padajoče telovadnice </h1>
<div id="gymBadChart" class="enumerate hide expandable">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row template">
<div class="label"></div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<br>
<h1> Najdalj stoječe telovadnice </h1>
<div id="gymChart" class="enumerate hide expandable">
<div class="loading"><img alt="loading" src="/assets/img/loading.gif"/></div>
<div class="row template">
<div class="label"></div>
<div class="bar">
<div class="value" title="N/A"></div>
</div>
</div>
</div>
<script type="text/javascript" src="/assets/js/pokemon.js"></script>
<script type="text/javascript" src="/assets/js/utils.js"></script>
<script type="text/javascript" src="/assets/js/shame.js"></script>
<script type="text/javascript" src="/assets/js/gomap.js"></script>
<script>
function getCountDownDate() {
var current = new Date();
current.setHours(0);
current.setMinutes(0);
current.setSeconds(0);
current.setMilliseconds(0);
var three_weeks = new Date(current.getTime()), two_weeks = new Date(current.getTime());
three_weeks.setDate(three_weeks.getDate()-21);
two_weeks.setDate(two_weeks.getDate()-14);
while (current.getDay() != 6 || two_weeks.getMonth() == three_weeks.getMonth()) {
three_weeks.setDate(three_weeks.getDate()+1);
two_weeks.setDate(two_weeks.getDate()+1);
current.setDate(current.getDate()+1);
}
return current;
}
var countdownDate = getCountDownDate().getTime();
var countdownEl = $("#countdown");
setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countdownDate - now;
distance = Math.max(0, distance);
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
countdownEl.html(days + "d " + hours + "h " + minutes + "m " + seconds + "s ");
}, 1000);
draw_gomap();
draw_shame();
</script>