This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
units.html
142 lines (127 loc) · 4.17 KB
/
units.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
<!doctype html>
<html>
<head>
<title>The Non-Dota Player's Guide to Auto Chess</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/darkly/bulmaswatch.min.css">
<link rel="icon" href="favicon.png" type="image/png" />
<style>
/*
@font-face { font-family: 'BebasNeue', src: url('BebasNeue-Regular.ttf') format('truetype'), url('BebasNeue-Regular.woff') format('woff'); }
html, body, #app, #app > div { margin: 0 auto; background: #000 ; color: #FFF; text-align: center; font-family: 'BebasNeue',sans-serif }
a, a:visited, a:hover { color: #a3a5fb; text-decoration: none; font-weight: bold }
.class, .race { text-transform: capitalize }
#app .autochess-unit:nth-child(odd) { background: #222 }
.autochess-unit strong { color: #DDD }
*/
.race-class, .synergy .big-name { text-transform: capitalize }
.autochess-unit .race,
.autochess-unit .class,
.filter {
cursor: pointer;
}
.filter {
padding: 3px;
filter: grayscale(100%);
}
.filter.active {
padding: 2px;
border: 1px solid white;
filter: none;
}
.autochess-unit {
border-bottom: 1px solid white;
}
.autochess-unit.cost-1 {
background: #323a3a
}
.autochess-unit.cost-2 {
background: #32576d
}
.autochess-unit.cost-3 {
background: #3a3da5
}
.autochess-unit.cost-4 {
background: #733d9c
}
.autochess-unit,cost-5 {
background: #90762f
}
.table {
width: 100%;
margin-left: auto;
margin-right: auto;
}
.table th, .table td, .column, .content table.table th {
text-align: center;
}
.content table.table .desc {
text-align: left;
}
.table td.is-vcentered {
vertical-align: middle;
}
hr {
background: #EEE !important ;
margin: 2px 0 !important ;
}
.big-name {
font-size: 1.5em;
}
.tippy-tooltip {
width: 425px !important;
max-width: 425px !important;
padding: 0;
}
.synergy.card .card-content .media { align-items: center }
</style>
</head>
<body>
<div id="app" class="container">
<div class="notification">
<div class="column is-12">
<img src="images/logo.png" style="width:500px"/>
<h1 class="big-name">Units List</h1>
<h3>Last Updated: 2019/03/15</h3>
<a href="index.html">Back to Basic Rules</a>
</div>
</div>
<div class="columns is-centered is-multiline is-vcentered">
<div class="column is-5">
Filter Classes<br />
<span v-for="synergy in synergies">
<img style="width:32px" class="filter active" onclick="window.vueApp.updateFilters(this)" :src="'images/classes/'+synergy.name+'.png'" :data-class="synergy.name" v-if="synergy.type == 'class'"/>
</span>
</div>
<div class="column is-2">
<span>Sort by</span>
<br />
<a href="#" onclick="window.vueApp.sortBy('name')">▲</a>
<span>Name</span>
<a href="#" onclick="window.vueApp.sortBy('name',true)">▼</a>
<br />
<a href="#" onclick="window.vueApp.sortBy('race')">▲</a>
<span>Race</span>
<a href="#" onclick="window.vueApp.sortBy('race',true)">▼</a>
<br />
<a href="#" onclick="window.vueApp.sortBy('class')">▲</a>
<span>Class</span>
<a href="#" onclick="window.vueApp.sortBy('class',true)">▼</a>
</div>
<div class="column is-5">
Filter Races<br />
<span v-for="synergy in synergies">
<img style="width:32px" class="filter active" onclick="window.vueApp.updateFilters(this)" :src="'images/races/'+synergy.name+'.png'" :data-race="synergy.name" v-if="synergy.type == 'race'"/>
</span>
</div>
</div>
<section class="section">
<autochess-unit v-for="unit in units" v-bind:unit="unit" v-bind:key="unit.name"></autochess-unit>
<autochess-synergy v-for="synergy in synergies" v-bind:synergy="synergy" v-bind:key="synergy.name"></autochess-synergy>
</section>
</div>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>