remove dumps and trash
add some new files and services add hwtools that shows the current and last GWs - not yet included the user stats (if any available)
This commit is contained in:
149
hwtools/toe/index.html
Normal file
149
hwtools/toe/index.html
Normal file
@@ -0,0 +1,149 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-baseurl="/hwtools/">
|
||||
|
||||
|
||||
|
||||
<!-- _includes/partials/head.html -->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/hwtools/assets/sass/main.css?1594138456">
|
||||
</head>
|
||||
|
||||
<!-- / _includes/partials/head.html -->
|
||||
|
||||
|
||||
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
|
||||
<div id="toe" class="toe">
|
||||
<div v-if="matches.length">
|
||||
<div class="toe__filters">
|
||||
<label>
|
||||
<input type="radio" name="filter" value="any" v-model="filters" />
|
||||
<span>No Filters</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="filter" value="misses" v-model="filters" />
|
||||
<span>Misses</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="filter" value="only_lords" v-model="filters" />
|
||||
<span>Lords</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="titans__container">
|
||||
<ul class="titans">
|
||||
<li v-for="titan in titans">
|
||||
<label>
|
||||
<input type="checkbox" :value="titan" v-model="selectedTitans" />
|
||||
<span class="thumb--large" :data-titan-thumb="titan" />
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="titans__shortcut">
|
||||
<button title="Select Water Team" v-on:click="setTitans(['4000', '4001', '4002', '4003'])" class="titans__waterteam">💧</button>
|
||||
<button title="Select Fire Team" v-on:click="setTitans(['4010', '4011', '4012', '4013'])" class="titans__fireteam">🔥</button>
|
||||
<button title="Select Earth Team" v-on:click="setTitans(['4020', '4021', '4022', '4023'])" class="titans__earthteam">🍀</button>
|
||||
</div>
|
||||
|
||||
<div class="titans__row">
|
||||
<button v-on:click="setTitans([])" class="titans__clear">Clear Selection</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100">Power</th>
|
||||
<th width="249">Attackers</th>
|
||||
<th width="249">Defenders</th>
|
||||
<th>Defense score</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(match, index) in matches"
|
||||
v-bind:class="{missed : match.defenceScoreEarned < 50}"
|
||||
|
||||
v-if="
|
||||
!selectedTitans.length &&
|
||||
(
|
||||
(filters == 'any' && match.enemypower < 1000000) ||
|
||||
(filters == 'only_lords' && match.enemypower > 1000000) ||
|
||||
(filters == 'misses' && match.enemypower < 1000000 && match.defenceScoreEarned < 50)
|
||||
)
|
||||
|
||||
||
|
||||
|
||||
selectedTitans.length && findInTeam(getEnemyTeam(match.defBattle.attackers), getSelectedTitans()) &&
|
||||
(
|
||||
(filters == 'any' && match.enemypower < 1000000) ||
|
||||
((filters == 'only_lords') && (match.enemypower > 1000000)) ||
|
||||
((filters == 'misses') && match.enemypower < 1000000 && (match.defenceScoreEarned < 50))
|
||||
)"
|
||||
>
|
||||
<td :title="match.defBattle.startTime | humanDate">
|
||||
<strong>{{ match.enemypower }}</strong><br/>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span
|
||||
v-for="(titan, index) in match.defBattle.attackers"
|
||||
:title="'Totem level ' + titan.elementSpiritLevel + ', ' + titan.elementSpiritStar + '*'"
|
||||
:data-titan-thumb="titan.id" /></span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span
|
||||
v-for="titan in match.defBattle.defenders[0]"
|
||||
:data-titan-thumb="titan.id" /></span>
|
||||
</td>
|
||||
|
||||
<td :title="match.defBattle.userId | humanPlayer">
|
||||
<strong>{{ match.defenceScoreEarned }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
Dataset: {{ matches.length }} battles
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<!-- _includes/partials/footer.html -->
|
||||
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
|
||||
<!-- / _includes/partials/footer.html -->
|
||||
|
||||
|
||||
<!-- _includes/partials/scripts.html -->
|
||||
|
||||
|
||||
<script src="/hwtools/assets/js/main.min.js?1594138456"></script>
|
||||
|
||||
|
||||
<!-- / _includes/partials/scripts.html -->
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user