-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·153 lines (143 loc) · 8.12 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
<!DOCTYPE html>
<!-- License: MIT License -->
<html lang="en" ng-app="teamGenerator">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Random Pokémon Team Generator</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="third-party/css/bootstrap.min.css">
<link rel="stylesheet" href="third-party/css/bootstrap_ms.css">
<link rel="stylesheet" href="third-party/css/nya-bs-select.min.css">
<link rel="stylesheet" href="css/generator.css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80866040-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body ng-controller="GeneratorController">
<div class="text-center">
<h3>Random Pokémon Team Generator<br /><small>created by Honko</small></h3>
<p>
<ol class="nya-bs-select" ng-model="gen" ng-selected="sm" ng-change="updateGen()">
<li nya-bs-option="gen in validGens"><a>{{genDisplayName(gen)}}</a></li>
</ol>
<ol class="nya-bs-select" ng-model="meta" ng-selected="ou" ng-change="generateNewTeam()">
<li nya-bs-option="meta in validMetas"><a>{{metaDisplayName(meta)}}</a></li>
</ol>
</p>
<p>
<ol class="nya-bs-select" ng-model="viability" ng-selected="+" ng-change="generateTeam()">
<li class="nya-bs-option" data-value="++" title="++"><a>Strong weighting in favor of the most standard Pokemon (++)</a></li>
<li class="nya-bs-option" data-value="+" title="+"><a>Slight weighting in favor of standard Pokemon (+)</a></li>
<li class="nya-bs-option" data-value="=" title="="><a>No weighting (=)</a></li>
<li class="nya-bs-option" data-value="-" title="-"><a>Slight weighting in favor of non-standard Pokemon (-)</a></li>
</ol>
</p>
<p>
<div class="btn-group">
<button type="button" class="btn btn-primary" ng-click="generateTeam()">Shake it up!</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exportModal" ng-click="exportTeam()">Export!</button>
</div>
</p>
</div>
<div class="container">
<div class="row">
<div class="well col-md-4 col-sm-6 col-ms-6 col-xs-12" ng-repeat="pokemon in team">
<div class="text-center">
<button type="button" class="btn btn-default" ng-click="toggleLock(pokemon)">
<span class="glyphicon glyphicon-lock"></span>
</button>
</div>
<br />
<div class="row">
<div class="col-xs-6 sprite-container">
<img class="img-responsive center-block sprite" ng-src="https://play.pokemonshowdown.com/sprites/xyani/{{spriteName(pokemon)}}.gif" />
</div>
<div class="col-xs-6 no-pad-left">
<input class="form-control" type="text" ng-model="pokemon.name" uib-typeahead="pkmn for pkmn in availablePokemon() | filter:$viewValue | limitTo:8" typeahead-editable="false" ng-disabled="pokemon.locked || pokemon.speciesLocked" />
<br />
<div ng-show="gen !== 'rby'">
<div><input class="form-control" type="text" ng-model="pokemon.item" uib-typeahead="item for item in availableItems() | filter:$viewValue | limitTo:8" typeahead-editable="false" ng-disabled="pokemon.locked" /></div>
<div ng-show="gen !== 'gsc'"><input class="form-control" type="text" ng-model="pokemon.ability" ng-disabled="pokemon.locked" /></div>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-xs-6 no-pad-right"><input class="form-control" type="text" ng-model="pokemon.moves[0]" ng-disabled="pokemon.locked" /></div>
<div class="col-xs-6 no-pad-left"><input class="form-control" type="text" ng-model="pokemon.moves[1]" ng-disabled="pokemon.locked" /></div>
</div>
<div class="row">
<div class="col-xs-6 no-pad-right"><input class="form-control" type="text" ng-model="pokemon.moves[2]" ng-disabled="pokemon.locked" /></div>
<div class="col-xs-6 no-pad-left"><input class="form-control" type="text" ng-model="pokemon.moves[3]" ng-disabled="pokemon.locked" /></div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="exportModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal"><span>×</span></button>
<h4 class="modal-title text-center">Export</h4>
</div>
<div class="modal-body">
<textarea rows="30" cols="60" ng-model="teamExport" ng-readonly="teamExportReadOnly"></textarea>
</div>
</div>
</div>
</div>
<script src="third-party/js/angular.min.js"></script>
<script src="third-party/js/jquery-2.2.2.min.js"></script>
<script src="third-party/js/bootstrap.min.js"></script>
<script src="third-party/js/nya-bs-select.min.js"></script>
<script src="third-party/js/ui-bootstrap-custom-tpls-1.2.5.min.js"></script>
<script src="js/generator.js"></script>
<script src="js/roles.js"></script>
<script src="js/data/pokedex.js"></script>
<script src="js/data/itemdex.js"></script>
<script src="js/data/viability.js"></script>
<script src="js/data/smogon-sets/sm_uber.js"></script>
<script src="js/data/smogon-sets/sm_ou.js"></script>
<script src="js/data/smogon-sets/sm_uu.js"></script>
<script src="js/data/smogon-sets/sm_lc.js"></script>
<script src="js/data/smogon-sets/sm_doubles.js"></script>
<script src="js/data/smogon-sets/xy_uber.js"></script>
<script src="js/data/smogon-sets/xy_ou.js"></script>
<script src="js/data/smogon-sets/xy_uu.js"></script>
<script src="js/data/smogon-sets/xy_ru.js"></script>
<script src="js/data/smogon-sets/xy_nu.js"></script>
<script src="js/data/smogon-sets/xy_pu.js"></script>
<script src="js/data/smogon-sets/xy_lc.js"></script>
<script src="js/data/smogon-sets/xy_doubles.js"></script>
<script src="js/data/smogon-sets/bw_uber.js"></script>
<script src="js/data/smogon-sets/bw_ou.js"></script>
<script src="js/data/smogon-sets/bw_uu.js"></script>
<script src="js/data/smogon-sets/bw_ru.js"></script>
<script src="js/data/smogon-sets/bw_nu.js"></script>
<script src="js/data/smogon-sets/bw_lc.js"></script>
<script src="js/data/smogon-sets/dpp_uber.js"></script>
<script src="js/data/smogon-sets/dpp_ou.js"></script>
<script src="js/data/smogon-sets/dpp_uu.js"></script>
<script src="js/data/smogon-sets/dpp_nu.js"></script>
<script src="js/data/smogon-sets/dpp_lc.js"></script>
<script src="js/data/smogon-sets/adv_uber.js"></script>
<script src="js/data/smogon-sets/adv_ou.js"></script>
<script src="js/data/smogon-sets/adv_uu.js"></script>
<script src="js/data/smogon-sets/adv_nu.js"></script>
<script src="js/data/smogon-sets/gsc_uber.js"></script>
<script src="js/data/smogon-sets/gsc_ou.js"></script>
<script src="js/data/smogon-sets/gsc_uu.js"></script>
<script src="js/data/smogon-sets/rby_uber.js"></script>
<script src="js/data/smogon-sets/rby_ou.js"></script>
<script src="js/data/smogon-sets/rby_uu.js"></script>
</body>
</html>