-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
319 lines (272 loc) · 13.9 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!DOCTYPE html>
<html>
<head>
<title>Minidex</title>
<meta charset="UTF-8"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="google" content="notranslate" />
<meta name="description" content="This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!"/>
<meta name="keywords" content="pokedex,online,pokemon,app,html5,webapp,pwa,minidex,brilliant,diamond,shining,pearl,diamante,brillante,perla,reluciente,sword,shield,espada,escudo,x,y,xy,oras,ruby,omega,rubi,alpha,alfa,zafiro,sapphire,ultra,sol,luna,sun,moon,lets go"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="shortcut icon" href="./core/assets/favicon16.png" type="image/png" sizes="16x16"/>
<link rel="shortcut icon" href="./core/assets/favicon192.png" type="image/png" sizes="192x192"/>
<!-- iOS icons -->
<link rel="apple-touch-icon" sizes="16x16" href="./core/assets/favicon16.png" />
<link rel="apple-touch-icon" href="./core/assets/favicon192.png" />
<!-- social network metatags -->
<meta name="twitter:site" content="@marc_robledo">
<meta name="twitter:creator" content="@marc_robledo">
<meta name="twitter:domain" content="marcrobledo.com">
<meta property="og:title" content="Minidex">
<meta name="twitter:title" content="Minidex">
<meta name="twitter:description" content="This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!">
<meta property="og:image" content="https://www.marcrobledo.com/minidex/core/thumbnail.jpg">
<meta name="twitter:image" content="https://www.marcrobledo.com/minidex/core/thumbnail.jpg">
<meta name="twitter:card" content="photo">
<link type="text/css" rel="stylesheet" href="./core/minidex.css" media="all"/>
<style type="text/css">
.hide{display:none}
main{
text-align:center;
max-width:540px;
margin: -50px auto 0;
color:white;
padding-left:10px;padding-right:10px;
}
ul{
list-style:none;
margin:0;
padding:0;
}
ul a{
display:block;
color:white;
text-decoration:none;
background-color:#1b252f;
border-radius:113px;
margin-bottom:10px;
font-weight:bold;
font-size:120%;
padding: 10px 0;
position:relative;
}
ul a:hover{
background-color:#e63636;
}
ul small{
font-size:80%;
font-weight:normal;
display:block;
color:#505962;
}
.game a:hover small{
color:#f76d6d;
}
.game a{
background-size:cover;
background-position:center center;
background-blend-mode:overlay;
}
.game a:hover{
background-blend-mode:multiply;
}
.game.gen1rby a{background-image:url(./core/assets_home/banner_gen1.jpg)}
.game.gen2gsc a{background-image:url(./core/assets_home/banner_gen2.jpg)}
.game.gen3rse a{background-image:url(./core/assets_home/banner_gen3rse.jpg)}
.game.gen3frlg a{background-image:url(./core/assets_home/banner_gen3frlg.jpg)}
.game.gen4dppt a{background-image:url(./core/assets_home/banner_gen4dppt.jpg)}
.game.gen4hgss a{background-image:url(./core/assets_home/banner_gen2.jpg)}
.game.gen5bw a{background-image:url(./core/assets_home/banner_gen5bw.jpg)}
.game.gen5b2w2 a{background-image:url(./core/assets_home/banner_gen5b2w2.jpg)}
.game.gen6xy a{background-image:url(./core/assets_home/banner_gen6xy.jpg)}
.game.gen6oras a{background-image:url(./core/assets_home/banner_gen6oras.jpg)}
.game.gen7sm a{background-image:url(./core/assets_home/banner_gen7sm.jpg)}
.game.gen7usum a{background-image:url(./core/assets_home/banner_gen7usum.jpg)}
.game.gen7letsgo a{background-image:url(./core/assets_home/banner_gen7letsgo.jpg)}
.game.gen8swsh a{background-image:url(./core/assets_home/banner_gen8swsh.jpg)}
.game.gen8bdsp a{background-image:url(./core/assets_home/banner_gen4dppt.jpg)}
/* .game.gen8legends a{background-image:url(./core/assets_home/banner_gen8legends.jpg)} */
/* RESPONSIVE DESIGN */
@media only screen and (max-width:641px){
main{
margin-top:-10px;
}
}
</style>
<script type="text/javascript"><!--
function el(e){return document.getElementById(e)}
function addEvent(e,v,f){e.addEventListener(v,f,false)}
function stopPropagation(e){if(typeof e.stopPropagation!=='undefined')e.stopPropagation();else e.cancelBubble=true}
const GAMES=[
//['Legends: Arceus','Légendes: Arceus','Legenden: Arceus','Leggende: Arceus','Leyendas: Arceus','LEGENDS アルセウス','寶可夢傳說 阿爾宙斯'],
['Brilliant Diamond / Shining Pearl','Diamant Étincelant / Perle Scintillante','Strahlender Diamant / Leuchtende Perle','Diamante Lucente / Perla Splendente','Diamante Brillante / Perla Reluciente',,'晶灿钻石/明亮珍珠'],
['Sword / Shield','Épée / Bouclier','Schwert / Schild','Spada / Scudo','Espada / Escudo',,'剑/盾'],
['Let\'s go!'],
['Ultra Sun / Ultra Moon','Ultra-Soleil / Ultra-Lune','Ultra Sonne / Ultra Mond','Ultra Sole / Ultra Luna','Ultra Sol / Ultra Luna',,'究极之日/究极之月'],
['Sun / Moon','Soleil / Lune','Sonne / Mond','Sole / Luna','Sol / Luna',,'太阳/月亮'],
['Omega Ruby / Alpha Sapphire','Rubis Oméga / Saphir Alpha','Omega Rubin / Alpha Saphir','Rubino Omega / Zaffiro Alpha','Rubí Omega / Zafiro Alfa',,'欧米伽红宝石/阿尔法蓝宝石'],
['X / Y'],
['Black 2 / White 2','Noir 2 / Blanc 2','Schwarz 2 / Weiß 2','Nero 2 / Bianco 2','Negro 2 / Blanco 2',,'黑 2/白 2'],
['Black / White','Noir / Blanc','Schwarz / Weiß','Nero / Bianco','Negro / Blanco',,'黑/白'],
['HeartGold / SoulSilver',,,,,,'心金/魂银'],
['Diamond / Pearl / Platinum','Diamant / Perle / Platine','Diamant / Perl / Platin','Diamante / Perla / Platino','Diamante / Perla / Platino',,'钻石/珍珠'],
['Fire Red / Leaf Green','Rouge Feu / Vert Feuille','Feuerrot / Blattgrün','Rosso Fuoco / Verde Foglia','Rojo Fuego / Verde Hoja',,'火红/叶绿'],
['Ruby / Sapphire / Emerald','Rubis / Saphir / Émeraude','Rubin / Saphir / Smaragd','Rubino / Zaffiro / Smeraldo','Rubí / Zafiro / Esmeralda',,'红宝石/蓝宝石'],
['Gold / Silver / Crystal','Or / Argent / Cristal','Gold / Silber / Kristall','Oro / Argento / Cristallo','Oro / Plata / Cristal',,'金/银/水晶'],
['Red / Blue / Yellow','Rouge / Bleu / Jaune','Rot / Blau / Gelb','Rosso / Blu / Giallo','Rojo / Azul / Amarillo',,'红/绿/蓝']
];
function showMenu(doNotPush){
document.body.className='menu-open';
document.body.scrollTop=0
}
function hideMenu(click){
document.body.className='';
}
function toggleMenu(){
if(/menu-open/.test(document.body.className))
hideMenu(true);
else
showMenu();
}
function setLanguage(l){
MinidexSettings.lang=l;
var lis=document.getElementById('games').children;
for(var i=0; i<lis.length; i++)
lis[i].children[0].children[1].innerHTML=GAMES[i][l] || GAMES[i][0];
for(var i=0; i<7; i++)
document.getElementById('description-'+i).style.display=l===i?'block':'none';
}
var MinidexSettings=(function(){
var IS_STORAGE_AVAILABLE=typeof(Storage)!=='undefined';
var defaultLanguage=0;
var userLang=(navigator.language || navigator.userLanguage).substr(0,2);
if(userLang==='fr')
defaultLanguage=1;
else if(userLang==='de')
defaultLanguage=2;
else if(userLang==='it')
defaultLanguage=3;
else if(userLang==='es')
defaultLanguage=4;
else if(userLang==='jp')
defaultLanguage=5;
else if(userLang==='zh')
defaultLanguage=6;
return{
/* default settings */
lang:defaultLanguage,
donateWarning:0,
save:function(){
if(IS_STORAGE_AVAILABLE){
localStorage.setItem('minidex', JSON.stringify({lang:this.lang,donateWarning:this.donateWarning}));
}
},
load:function(){
if(IS_STORAGE_AVAILABLE && localStorage.getItem('minidex')){
var loadedSettings=JSON.parse(localStorage.getItem('minidex'));
if(typeof loadedSettings.lang==='number' && loadedSettings.lang>=0 && loadedSettings.lang<=6)
this.lang=loadedSettings.lang;
if(typeof loadedSettings.donateWarning==='number')
this.donateWarning=loadedSettings.donateWarning;
}
},
checkUnknownLanguage:function(){
return IS_STORAGE_AVAILABLE && !localStorage.getItem('minidex') && defaultLanguage===0;
}
}
}());
window.addEventListener('load', function(evt){
/* startup, load settings */
MinidexSettings.load();
el('select-language').value=MinidexSettings.lang;
setLanguage(MinidexSettings.lang);
/* menu events */
addEvent(el('overlay'), 'click', function(evt){
hideMenu(true);
});
addEvent(el('overlay2'), 'click', stopPropagation);
addEvent(el('button-menu'), 'click', toggleMenu);
addEvent(el('select-language'), 'change', function(evt){
setLanguage(this.selectedIndex);
hideMenu(true);
MinidexSettings.save();
});
}, false);
--></script>
</head>
<body>
<div id="overlay">
<div id="overlay2">
<div>
<label><i class="sprite globe"></i> <span data-translate="language">Language</span><select id="select-language" class="clickable" dir="rtl">
<option value="0">English</option>
<option value="1">Français*</option>
<option value="2">Deutsch</option>
<option value="3">Italiano*</option>
<option value="4">Español</option>
<option value="5">日本語*</option>
<option value="6">中文</option>
</select></label>
</div>
</div>
</div>
<div id="home">
<header><div class="text-center"><h1>Minidex</h1></div></header>
<div id="button-menu" class="clickable"><i class="sprite menu"></i></div>
<main>
<p id="description-0" lang="en">
This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!
</p>
<p id="description-1" lang="fr" class="hide">
This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!
<strong>Note: French translation is incomplete.</strong>
</p>
<p id="description-2" lang="de" class="hide">
This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!
<strong>Note: German translation is incomplete.</strong>
</p>
<p id="description-3" lang="it" class="hide">
This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!
<strong>Note: Italian translation is incomplete.</strong>
</p>
<p id="description-4" lang="es" class="hide">
Esta webapp minimalista y ligera recopila todas las localizaciones de todos los Pokémon a lo largo de cada juego de la saga. Encuentra información de los Pokémon rápidamente y mantén un seguimiento del progreso de tu Pokédex. ¡No requiere registro ni instalación!
</p>
<p id="description-5" lang="jp" class="hide">
This lightweight and minimalist webapp compiles all the locations of all Pokémon across every game in the series. Find Pokémon information quickly and keep track of your Pokédex progress. No registration/installation required!
<strong>Note: Japanese translation is incomplete.</strong>
</p>
<p id="description-6" lang="zh" class="hide">
这个轻量级和极简的网页app包含了了该系列中每个游戏中所有宝可梦的所有位置。快速找到宝可梦信息并跟踪你的图鉴进度。无需注册或安装!
<strong>注:中文翻译可能有误请见谅.</strong>
</p>
<ul id="games">
<!-- <li class="game gen8legends"><a href="legends/"><small>Gen VIII</small><span>Legends: Arceus</span></a></li> -->
<li class="game gen8bdsp"><a href="bdsp/"><small>Gen VIII</small><span>Brilliant Diamond Shining Pearl</span></a></li>
<li class="game gen8swsh"><a href="swsh/"><small>Gen VIII</small><span>Sword Shield</span></a></li>
<li class="game gen7letsgo"><a href="letsgo/"><small>Gen VII</small><span>Let's go!</span></a></li>
<li class="game gen7usum"><a href="usum/"><small>Gen VII</small><span>Ultra Sun Ultra Moon</span></a></li>
<li class="game gen7sm"><a href="sm/"><small>Gen VII</small><span>Sun Moon</span></a></li>
<li class="game gen6oras"><a href="oras/"><small>Gen VI</small><span>Omega Ruby Alpha Sapphire</span></a></li>
<li class="game gen6xy"><a href="xy/"><small>Gen VI</small><span>XY</span></a></li>
<li class="game gen5b2w2"><a href="b2w2/"><small>Gen V</small><span>Black 2 White 2</span></a></li>
<li class="game gen5bw"><a href="bw/"><small>Gen V</small><span>Black White</span></a></li>
<li class="game gen4hgss"><a href="hgss/"><small>Gen IV</small><span>HeartGold SoulSilver</span></a></li>
<li class="game gen4dppt"><a href="dppt/"><small>Gen IV</small><span>Diamond Pearl Platinum</span></a></li>
<li class="game gen3frlg"><a href="frlg/"><small>Gen III</small><span>Fire Red Leaf Green</span></a></li>
<li class="game gen3rse"><a href="rse/"><small>Gen III</small><span>Ruby Sapphire Emerald</span></a></li>
<li class="game gen2gsc"><a href="gsc/"><small>Gen II</small><span>Gold Silver Crystal</span></a></li>
<li class="game gen1rby"><a href="rby/"><small>Gen I</small><span>Red Blue Yellow</span></a></li>
</ul>
</main>
<footer>
<span data-translate="developed_by">Developed and designed by</span> <a href="https://www.marcrobledo.com">Marc Robledo</a><br/>
<a href="https://github.com/marcrobledo/minidex/" target="_blank" data-translate="view_on_github">View on GitHub</a><br/><br/>
<small>
This is a fan created site, no copyright or trademark infringement is intended.<br/>
Pokémon and all respective names are trademark & © of Nintendo/Creatures Inc./GAME FREAK inc. TM 1996-2022
</small>
</footer>
</div>
</body>
</html>