-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
403 lines (384 loc) · 22.2 KB
/
index.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html>
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F869CLWZY4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-F869CLWZY4');
</script>
<title>Overwatch 2 Battle Pass Calculator</title>
<meta property="og:title" content="Overwatch 2 Battle Pass Calculator"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://sophice.github.io/ow2-battle-pass-calculator/"/>
<meta property="og:image" content="https://sophice.github.io/ow2-battle-pass-calculator/logo.webp"/>
<meta property="og:description"
content="The Overwatch 2 battle pass calculator is a tool to help you oversee and plan your battle pass, prestige and coin earning progress."/>
<meta name="description"
content="The Overwatch 2 battle pass calculator is a tool to help you oversee and plan your battle pass, prestige and coin earning progress."/>
<meta name="keywords" content="Overwatch 2, battle pass, prestige, calculator, Blizzard, Overwatch"/>
<meta name="author" content="sophice"/>
<meta name="viewport" content="width=device-width; initial-scale=1.0;"/>
<script defer src="https://unpkg.com/@alpinejs/persist@3.x.x/dist/cdn.min.js"></script>
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
<link rel="stylesheet" href="./style.css?rev=6">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<div x-data="app">
<h1>
<img src="logo.webp" style="max-width:260px; position: relative; top:3px;" alt="Overwatch 2"/>
Battle Pass Calculator
</h1>
<h2 id="season_title">Season 1</h2>
<div class="form">
<form>
<h2>Past Progress</h2>
<p title="The current tier you are working on">
<label for="current_tier">Current tier</label>
<input id="current_tier" type="text" x-model="current_tier" inputmode="numeric"/> (max 200)
</p>
<p title="How much XP you have already earned towards the current tier">
<label for="current_tier_xp">XP in current tier</label>
<input id="current_tier_xp" type="text" x-model="current_tier_xp" inputmode="numeric"/>
</p>
<p title="How many days you've missed so far, either from a late start in the season, vacation time, etc...">
<label for="days_missed">Days missed</label>
<input id="days_missed" type="text" x-model="days_missed" inputmode="numeric"/>
</p>
<h2>Future Plans</h2>
<p title="How many weekly challenges you will complete each week">
<label for="expected_weeklies">Weeklies per week</label>
<input id="expected_weeklies" type="text" x-model="expected_weeklies" inputmode="numeric"/> (max 11)
</p>
<p title="How many days you will play each week">
<label for="expected_play_days">Days played per week</label>
<input id="expected_play_days" type="text" x-model="expected_play_days" inputmode="numeric"/>
</p>
<p title="Each day you play, how many daily challenges will you complete">
<label for="expected_dailies">Dailies per day played</label>
<input id="expected_dailies" type="text" x-model="expected_dailies" inputmode="numeric"/>
</p>
<p title="Each day you play, how many matches will you complete">
<label for="expected_daily_matches">Matches per day played</label>
<input id="expected_daily_matches" type="text" x-model="expected_daily_matches" inputmode="numeric"/>
</p>
<p title="How much XP do you earn on average per match">
<label for="expected_match_xp">Average match XP</label>
<input id="expected_match_xp" type="text" x-model="expected_match_xp" inputmode="numeric"/>
</p>
<!--
<p title="How many days you plan to miss, due to vacation time, work, etc...">
<label for="days_to_be_missed">Days you will miss</label>
<input id="days_to_be_missed" type="text" x-model="days_to_be_missed" inputmode="numeric"/>
</p>
-->
<br/>
<button type="button" class="highlight" @click="share()">Share</button>
<button type="button" class="dark" @click="reset()" style="margin-left:15px;">Reset</button>
</form>
</div>
<br/>
<br/>
<div class="tabs">
<span @click="selectTab('all')" :class="{'selected':tabSelected('all')}">All</span> |
<span @click="selectTab('progress')" :class="{'selected':tabSelected('progress')}">Progress</span> |
<span @click="selectTab('goals')" :class="{'selected':tabSelected('goals')}">Goals</span> |
<span @click="selectTab('projected')" :class="{'selected':tabSelected('projected')}">Projected</span> |
<span @click="selectTab('expected')" :class="{'selected':tabSelected('expected')}">Expected</span> |
<span @click="selectTab('coins')" :class="{'selected':tabSelected('coins')}">Coins</span>
</div>
<div class="section" x-show="tabSelected('all', 'progress')">
<h2>Your progress so far</h2>
<div class="progress">
<span class="base" :style="{width:currentPercentBar()+'%'}"
x-text="currentPercentBar() < 11 ? '' : currentPercent().$floor()+'%'"
title="Battle pass completion"></span>
<span class="prestige" :style="{width:currentPrestigePercentBar()+'%'}"
x-text="currentPrestigePercentBar() < 11 ? '' : currentPrestigePercent().$floor()+'%'"
title="Prestige completion"></span>
</div>
<ul>
<li x-show="currentCompletedTier() < 200">
<span title="Your current progress">
Progress:
<span class="highlight" x-text="currentDay().$floor().$localize()+' days'">0 days</span>,
<span class="highlight" x-text="currentCompletedTier()+' tiers'">0 tiers</span>,
<span class="highlight" x-text="currentXp().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="currentPercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingTiers() > 0">
<span title="Your remaining effort">
Remaining:
<span class="highlight" x-text="remainingDays().$ceil()+' days'">0 days</span>,
<span class="highlight" x-text="remainingTiers()+' tiers'">0 tiers</span>,
<span class="highlight" x-text="remainingXp().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="remainingPercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingTiers() <= 0">
<span class="highlight" title="Finished!">
Congratulations, you've completed the battle pass!
</span>
</li>
<li x-show="currentCompletedTier() >= 80 && currentCompletedTier() < 200">
<span title="Your current prestige progress">
Prestige progress:
<span class="prestige" x-text="currentCompletedPrestigeTier()+' tiers'">0 tiers</span>,
<span class="prestige" x-text="currentPrestigeXp().$localize()+' XP'">0 XP</span>,
<span class="prestige" x-text="currentPrestigePercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingPrestigeTiers() > 0">
<span title="Your remaining effort to max prestige">
Remaining for prestige:
<span class="prestige" x-text="remainingPrestigeTiers()+' tiers'">0 tiers</span>,
<span class="prestige" x-text="remainingPrestigeXp().$localize()+' XP'">0 XP</span>,
<span class="prestige" x-text="remainingPrestigePercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingPrestigeTiers() <= 0">
<span class="prestige" title="Finished!">
Congratulations, you've completed the prestige tiers!
</span>
</li>
</ul>
</div>
<div class="section" x-show="tabSelected('all', 'goals')">
<h2>Minimum needed to finish</h2>
<p>The minimum you need to do to finish all tiers.</p>
<ul>
<li x-show="currentCompletedTier() < 80">
<span title="Minimum daily effort to finish tier 80">
Daily goal:
<span class="highlight" x-text="minimumDailyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="minimumDailyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="minimumDailyPercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="currentCompletedTier() < 80">
<span title="Minimum weekly effort to finish tier 80">
Weekly goal:
<span class="highlight" x-text="minimumWeeklyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="minimumWeeklyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="minimumWeeklyPercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingTiers() <= 0">
<span class="highlight" title="Finished!">
Congratulations, you've completed the battle pass!
</span>
</li>
<li x-show="currentCompletedTier() < 200">
<span title="Minimum daily effort to finish tier 200">
Daily goal for prestige:
<span class="prestige" x-text="minimumDailyPrestigeTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="prestige" x-text="minimumDailyPrestigeXp().$round().$localize()+' XP'">0 XP</span>,
<span class="prestige" x-text="minimumDailyPrestigePercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="currentCompletedTier() < 200">
<span title="Minimum weekly effort to finish tier 200">
Weekly goal for prestige:
<span class="prestige" x-text="minimumWeeklyPrestigeTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="prestige" x-text="minimumWeeklyPrestigeXp().$round().$localize()+' XP'">0 XP</span>,
<span class="prestige" x-text="minimumWeeklyPrestigePercent().$round(1)+'%'">0%</span>
</span>
</li>
<li x-show="remainingPrestigeTiers() <= 0">
<span class="prestige" title="Finished!">
Congratulations, you've completed the prestige tiers!
</span>
</li>
</ul>
</div>
<div class="section" x-show="tabSelected('all', 'projected')">
<h2>Projected finish</h2>
<p>Based on your pace up to now.</p>
<div class="progress">
<span class="base" :style="{width:projectedPercentBar()+'%'}"
x-text="projectedPercentBar() < 11 ? '' : projectedPercent().$floor()+'%'"
title="Battle pass completion"></span>
<span class="prestige" :style="{width:projectedPrestigePercentBar()+'%'}"
x-text="projectedPrestigePercentBar() < 11 ? '' : projectedPrestigePercent().$floor()+'%'"
title="Prestige completion"></span>
</div>
<ul>
<li x-show="projectedWillFinish() && remainingTiers() > 0" title="How many tiers you would earn">
Tiers earned: <span class="highlight" x-text="projectedTiers().$floor()+' tiers'">0 tiers</span>
</li>
<li title="Your daily pace up to now">
Daily pace:
<span class="highlight" x-text="projectedDailyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="projectedDailyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="projectedDailyPercent().$round(1)+'%'">0%</span>
</li>
<li title="Your weekly pace up to now">
Weekly pace:
<span class="highlight" x-text="projectedWeeklyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="projectedWeeklyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="projectedWeeklyPercent().$round(1)+'%'">0%</span>
</li>
<li x-show="daysMissed() > 0" title="Missed progress">
Missed:
<span class="highlight" x-text="daysMissed()+' days'">0 days</span>,
<span class="highlight" x-text="projectedTiersMissed().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="projectedXpMissed().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="projectedPercentMissed().$round(1)+'%'">0%</span>
</li>
<li x-show="projectedWillFinish() && remainingTiers() > 0" title="When you would finish">
Finished in: <span class="highlight" x-text="projectedDays().$ceil()+' more days'">0 more days</span>
with <span class="highlight" x-text="projectedSpareDays().$floor()+' days'">0 days</span> to spare
</li>
<li x-show="remainingTiers() <= 0">
<span class="highlight" title="Finished!">
Congratulations, you've completed the battle pass!
</span>
</li>
<li x-show="projectedWillPrestige() && !projectedWillFinishPrestige()" title="What prestige you would earn">
Prestige earned:
<span class="prestige" x-text="projectedPrestigeTiers().$floor()+' prestige tiers'">
0 prestige tiers
</span>,
<span class="prestige" x-text="projectedPrestigeTitles()+' prestige titles'">0 prestige titles</span>
</li>
<li x-show="projectedWillPrestige() && !projectedWillFinishPrestige()" title="What prestige you would miss">
Prestige missed:
<span class="prestige" x-text="projectedPrestigeTiersMissed().$ceil()+' prestige tiers'">
0 prestige tiers
</span>,
<span class="prestige" x-text="projectedPrestigeTitlesMissed()+' prestige titles'">
0 prestige titles
</span>
</li>
<li x-show="projectedWillFinishPrestige()" title="When you will finish prestige">
Prestige finished in:
<span class="prestige" x-text="projectedPrestigeDays().$ceil()+' more days'">0 more days</span>
with <span class="prestige" x-text="projectedPrestigeSpareDays().$floor()+' days'">0 days</span> to
spare
</li>
<li x-show="projectedWillFail()" title="How many tiers you would earn, and miss">
Tiers earned: <span class="highlight" x-text="projectedTiers().$floor()+' tiers'">0 tiers</span>,
<span class="highlight" x-text="projectedSpareTiers().$floor(1)+' tiers'">0 tiers</span> missed
</li>
<li x-show="projectedWillFail()" title="What it would cost to buy the rest">
Cost to finish:
<span class="coins" x-text="projectedSpareTiersCoins().$ceil().$localize()+' coins'">0 coins</span>,
<span class="coins" x-text="'$'+projectedSpareTiersDollars().$currency()+' USD'">$0 USD</span>
</li>
</ul>
</div>
<div class="section" x-show="tabSelected('all', 'expected')">
<h2>Expected finish</h2>
<p>Based on how many challenges and matches you plan on doing from now on.</p>
<div class="progress">
<span class="base" :style="{width:expectedPercentBar()+'%'}"
x-text="expectedPercentBar() < 11 ? '' : expectedPercent().$floor()+'%'"
title="Battle pass completion"></span>
<span class="prestige" :style="{width:expectedPrestigePercentBar()+'%'}"
x-text="expectedPrestigePercentBar() < 11 ? '' : expectedPrestigePercent().$floor()+'%'"
title="Prestige completion"></span>
</div>
<ul>
<li title="Your daily pace going forward">
Daily pace:
<span class="highlight" x-text="expectedDailyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="expectedDailyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="expectedDailyPercent().$round(1)+'%'">0%</span>
</li>
<li title="Your weekly pace going forward">
Weekly pace:
<span class="highlight" x-text="expectedWeeklyTiers().$round(1)+' tiers'">0 tiers</span>,
<span class="highlight" x-text="expectedWeeklyXp().$round().$localize()+' XP'">0 XP</span>,
<span class="highlight" x-text="expectedWeeklyPercent().$round(1)+'%'">0%</span>
</li>
<li x-show="expectedWillFinish() && remainingTiers() > 0" title="How many tiers you would earn">
Tiers earned: <span class="highlight" x-text="expectedTiers().$round(1)+' tiers'">0 tiers</span>
</li>
<li x-show="expectedWillFinish() && remainingTiers() > 0" title="When you would finish">
Finished in: <span class="highlight" x-text="expectedDays().$ceil()+' more days'">0 more days</span>
with <span class="highlight" x-text="expectedSpareDays().$floor()+' days'">0 days</span> to spare
</li>
<li x-show="remainingTiers() <= 0">
<span class="highlight" title="Finished!">
Congratulations, you've completed the battle pass!
</span>
</li>
<li x-show="expectedWillPrestige() && !expectedWillFinishPrestige()" title="What prestige you would earn">
Prestige earned:
<span class="prestige" x-text="expectedPrestigeTiers().$floor()+' prestige tiers'">
0 prestige tiers
</span>,
<span class="prestige" x-text="expectedPrestigeTitles().$floor()+' prestige titles'">
0 prestige titles
</span>
</li>
<li x-show="expectedWillPrestige() && !expectedWillFinishPrestige()" title="What prestige you would miss">
Prestige missed:
<span class="prestige" x-text="expectedPrestigeTiersMissed().$ceil()+' prestige tiers'">
0 prestige tiers
</span>,
<span class="prestige"
x-text="expectedPrestigeTitlesMissed()+' prestige titles'">0 prestige titles</span>
</li>
<li x-show="expectedWillFinishPrestige()" title="When you will finish prestige">
Prestige finished in:
<span class="prestige" x-text="expectedPrestigeDays().$ceil()+' more days'">0 more days</span> with
<span class="prestige" x-text="expectedPrestigeSpareDays().$floor()+' days'">0 days</span> to spare
</li>
<li x-show="expectedWillFail()" title="How many tiers you would earn, and miss">
Tiers earned: <span class="highlight" x-text="expectedTiers()+' tiers'">0 tiers</span>,
<span class="highlight" x-text="expectedSpareTiers().$floor(1)+' tiers'">0 tiers</span> missed
</li>
<li x-show="expectedWillFail()">
Cost to finish:
<span class="coins" x-text="expectedSpareTiersCoins().$localize()+' coins'">0 coins</span>,
<span class="coins" x-text="'$'+expectedSpareTiersUsd().$currency()+' USD'">$0 USD</span>
</li>
</ul>
</div>
<div class="section" x-show="tabSelected('all', 'coins')">
<h2>Expected coins</h2>
<p>Based on how many weeklies you plan on doing from now on.</p>
<ul>
<li title="How many coins you will still earn this season">
This season:
<span class="coins" x-text="expectedCoins().$floor().$localize()+' more coins'">0 more coins</span>
</li>
<li title="Your coin earning pace">
Pace:
<span class="coins" x-text="expectedSeasonalCoins().$floor().$localize()+' coins'">0 coins</span>
per season,
<span class="coins" x-text="expectedDailyCoins().$floor()+' coins'">0 coins</span> daily,
<span class="coins" x-text="expectedWeeklyCoins().$floor()+' coins'">0 coins</span> weekly
</li>
<li title="How frequently you will be able to buy a battle pass">
1,000 coins for a battle pass:
<span class="coins" x-text="expectedBattlePassDays().$ceil()+' days'">0 days</span>
</li>
<li title="How frequently you will be able to buy a legendary skin">
2,000 coins for a legendary skin:
<span class="coins" x-text="expectedLegendaryDays().$ceil()+' days'">0 days</span>
</li>
</ul>
</div>
<div class="about">
<h2>About</h2>
<p>
This is a free tool I made for fun. Contribute feedback, bugs, ideas, code to
<a href="https://github.com/sophice/ow2-battle-pass-calculator">sophice/ow2-battle-pass-calculator</a>!
</p>
<p>
<span class="highlight">Note</span>: If you have any issues, try a full reresh of the page (Ctrl+F5) to be
sure you have the latest version.
</p>
</div>
</div>
<script src="./prototypes.js?rev=8"></script>
<script src="./app.js?rev=8"></script>
</body>
</html>