-
Notifications
You must be signed in to change notification settings - Fork 5
/
jolteabilites.html
134 lines (123 loc) · 8.08 KB
/
jolteabilites.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
<html>
<head>
<title>Pokedex-Abilities Distributor Template</title>
<style>
body, table {
font-size: 24px;
}
button {
background-color: black;
color: aqua;
border: solid 4px aqua;
font-size:28px;
cursor: url(http://www.pokestadium.com/assets/img/sprites/misc/icons/charizard-mega-x.png), auto;
}
.code {
background-color: black;
color:lime;
}
h1 {
font-family: Jokerman;
color:Aqua;
background-color:black;
width: 40%;
border: 4px solid Aqua;
text-align: center;
}
p {
background-color: black;
color: aqua;
}
.mod {
background-color: black;
color: #FFA000;
}
textarea {
height: 200px;
width: 500px;
}
</style>
</head>
<body>
<center><h1>Pokedex-Abilities Distributor</h1></center>
<table>
<tr>
<td>Ability: <input id="ability" onInput="post()" list="allmoves"></input></td>
</tr>
<tr>
<td>Pokemon</td>
</tr>
<tr>
<td><textarea id="pokemon" onInput="post()" list="allmons"></textarea></td>
</tr>
</table>
<center>
</center>
<textarea id="pokemoncode" style="width:500px;height:2400px;"></textarea>
</body>
<script>
function post ()
{
let ability = document.getElementById("ability").value;
let pokemon = document.getElementById("pokemon").value;
pokemon = pokemon.trim().toLowerCase();
for (let i = 0; i < 80; i++) {
pokemon = pokemon.replace(" ", "");;
pokemon = pokemon.replace("-", "");;
}
let pokemonz = pokemon.split(",");
let pokemon1 = pokemonz[0];
let pokemon2 = pokemonz[1];
let pokemon3 = pokemonz[2];
let pokemon4 = pokemonz[3];
let pokemon5 = pokemonz[4];
let pokemon6 = pokemonz[5];
let pokemon7 = pokemonz[6];
let pokemon8 = pokemonz[7];
let pokemon9 = pokemonz[8];
let pokemon10 = pokemonz[9];
let pokemon11 = pokemonz[10];
let pokemon12 = pokemonz[11];
let pokemon13 = pokemonz[12];
let pokemon14 = pokemonz[13];
let pokemon15 = pokemonz[14];
let pokemon16 = pokemonz[15];
let pokemon17 = pokemonz[16];
let pokemon18 = pokemonz[17];
let pokemon19 = pokemonz[18];
let pokemon20 = pokemonz[19];
let pokemon21 = pokemonz[20];
let pokemon22 = pokemonz[21];
let pokemon23 = pokemonz[22];
let pokemon24 = pokemonz[23];
let pokemon25 = pokemonz[24];
let pokemon26 = pokemonz[25];
let pokemon27 = pokemonz[26];
let pokemon28 = pokemonz[27];
let pokemon29 = pokemonz[28];
let pokemon30 = pokemonz[29];
let pokemon31 = pokemonz[30];
let pokemon32 = pokemonz[31];
let pokemon33 = pokemonz[32];
let pokemon34 = pokemonz[33];
let pokemon35 = pokemonz[34];
let pokemon36 = pokemonz[35];
let pokemon37 = pokemonz[36];
let pokemon38 = pokemonz[37];
let pokemon39 = pokemonz[38];
let pokemon40 = pokemonz[39];
let pokemon41 = pokemonz[40];
let pokemon42 = pokemonz[41];
let pokemon43 = pokemonz[42];
let pokemon44 = pokemonz[43];
let pokemon45 = pokemonz[44];
let pokemon46 = pokemonz[45];
let pokemon47 = pokemonz[46];
let pokemon48 = pokemonz[47];
let pokemon49 = pokemonz[48];
let pokemon50 = pokemonz[49];
//document.getElementById("pokemoncode").innerHTML = `${pokemon1}`;
document.getElementById("pokemoncode").innerHTML = "// "+ability+"\n\n"+pokemon1+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon2+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon3+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon4+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon5+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon6+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon7+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon8+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon9+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon10+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon11+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon12+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon13+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon14+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon15+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon16+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon17+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon18+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon19+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon20+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon21+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon22+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon23+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon24+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon25+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon26+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon27+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon28+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon29+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon30+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon31+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon32+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon33+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon34+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n"+pokemon35+": {\n inherit: true,\n abilities: {0: "", 1: "", H: ""},\n},\n";
}
</script>
</html>