-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
187 lines (180 loc) · 7.89 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
<!DOCTYPE html>
<title>.rtml</title>
<head id='head'>
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js" integrity="sha256-xNjb53/rY+WmG+4L6tTl9m6PpqknWZvRt0rO1SRnJzw=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<!-- Bootstrap -->
<!-- normal bootstrap
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-->
<!-- theme -->
<link href="https://bootswatch.com/superhero/bootstrap.min.css" rel="stylesheet">
<link href="css/builder.css" rel="stylesheet">
</head>
<body id='body'>
<div id="content" class="container">
<h1>.rtml</h1>
<div style="float:right">
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#aboutModal">
About
</button>
</div>
<h2>A Pokemon Team Building and Analysis Tool</h2><hr>
<!-- Modal "about" stuff -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">About .rtml</h4>
</div>
<div class="modal-body">
This is .rtml, a Pokemon team builder and analysis tool, by NinjaCaterpie. <p>
Input your team to get an analysis of defensive typing and bulk, offensive typing and power and much more!
(Currently in early alpha).<br>
<a>http://github.com/henry-alakazhang/rtml-team-analyser</a>
<h3>Version History</h3>
Ver 0.4:
<ul>
<li> Added some basic offensive analysis - type combinations (note: nonexistent type combos get counted)
<li> Added some utility analysis - entry hazards
<li> Will extend utility analysis' with suggestions and options
</ul>
Ver 0.3.1:
<ul>
<li> (Most) abilities work defensively now
<li> Fur Coat doesn't work
</ul>
Ver 0.3:
<ul>
<li> Recoded the defensive color-coding and added explanations
<li> Added advanced analysis for defensive typing - nHKOs from different attacks
<li> Temporarily hid moves because they won't be useful until attack analysis
<li> Abilities still do nothing
</ul>
<hr>
Ver 0.2:
<ul>
<li> Basic defensive type analysis with color coding (still looks janky)
<li> Added ability selection (they don't do anything yet though)
</ul>
<hr>
Ver 0.1:
<ul>
<li> Team input with autocompletion, basic webpage format
<li> No actual analysis (sorry!)
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- main body -->
<div class="row">
<center><h3>1. Build Team</h3></center>
</div>
<div class="row team" id="teamBuilder">
<!-- populated programmatically -->
</div>
<div class="row">
<hr>
<center><h3>2. Analyse!</h3><p>
<button class="btn btn-info" onclick="analyse()">Refresh</button>
</center>
</div>
<div class="row">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#defense" aria-controls="home" role="tab" data-toggle="tab">Defense</a></li>
<li role="presentation"><a href="#offense" aria-controls="profile" role="tab" data-toggle="tab">Offense</a></li>
<li role="presentation"><a href="#utility" aria-controls="messages" role="tab" data-toggle="tab">Utility</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="defense">
<div class="checkbox">
<label>
<input type="checkbox" class="checkbox" id="advdef-checkbox">
Toggle advanced analysis
</label>
</div>
<div class="collapse" id="adv-options">
<div class="row">
<div class="col-md-3">
Damage type:
<div class="radio">
<label>
<input type="radio" name="phys-spec" checked id="phys-radio">
Physical
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="phys-spec" id="spec-radio">
Special
</label>
</div>
</div>
<div class="col-md-3">
Attacker strength:
<div class="radio">
<label data-toggle="tootlip" data-placement="right" title="Weak or unevolved attacker (eg. Wailmer using Scald)">
<input type="radio" name="adv-power" id="wimpy-radio">
Wimpy
</label>
</div>
<div class="radio">
<label data-toggle="tootlip" data-placement="right" title="Strong trainer or Gym Leader (eg. Flygon using Earthquake)">
<input type="radio" name="adv-power" checked id="strong-radio">
Strong
</label>
</div>
<div class="radio">
<label data-toggle="tootlip" data-placement="right" title="Competitive sweeper (eg. Heatran using Fire Blast)">
<input type="radio" name="adv-power" id="deadly-radio">
Deadly
</label>
</div>
<div class="radio">
<label data-toggle="tootlip" data-placement="right" title="MEGA RAYQUAZA LEVEL DESTRUCTION! Warning: Not safe for Pokemon!">
<input type="radio" name="adv-power" id="extreme-radio">
EXTREME
</label>
</div>
</div>
</div>
</div>
<table id="typetable-def" class="table table-striped">
<thead id="typetable-head"></thead>
<tbody id="typetable-body"></tbody>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="offense">
<table id="typetable-off" class="table table-striped">
<thead id="typetable-off-head"></thead>
<tbody id="typetable-off-body"></tbody>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="utility">
<h3>Entry Hazards</h3>
<div id="hazards">
</div>
<hr>
</div>
</div>
</div>
</div>
<!-- data -->
<script src="data/abilities.js"></script>
<script src="data/moves.js"></script>
<script src="data/pokedex.js"></script>
<script src="data/types.js"></script>
<script src="data/const.js"></script>
<!-- scripts -->
<script src="js/offense.js"></script>
<script src="js/defense.js"></script>
<script src="js/utility.js"></script>
<script src="js/main.js"></script>
</body>