forked from smogon/pokemon-showdown-client
-
Notifications
You must be signed in to change notification settings - Fork 2
/
testclient.html
130 lines (122 loc) · 4.36 KB
/
testclient.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Showdown!</title>
<link rel="shortcut icon" href="favicon.ico" id="dynamic-favicon" />
<link rel="stylesheet" href="style/sim.css" />
<link rel="stylesheet" href="style/sim-types.css" />
<link rel="stylesheet" href="style/battle.css" />
<link rel="stylesheet" href="style/replayer.css" /><!-- utilichart -->
<link rel="stylesheet" href="style/font-awesome.css" />
<meta id="viewport" name="viewport" content="width=640"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<script>
var Config = {
testclient: true,
server: {
id: 'showdown',
host: 'sim.smogon.com',
port: 8000,
altport: 80
}
};
(function() {
if (location.search !== '') {
var m = /\?~~(([^:\/]*)(:[0-9]*)?)/.exec(location.search);
if (m) {
Config.server.id = m[1];
Config.server.host = m[2];
if (m[3]) {
Config.server.port = m[3].substr(1);
}
} else {
alert('Unrecognised query string syntax: ' + location.search);
}
}
})();
</script>
<!--[if lte IE 8]><script>
oldie = true;
</script><![endif]-->
</head>
<body>
<!-- Chrome Frame -->
<!--[if lte IE 8]>
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
/*
CSS rules to use for styling the overlay:
.chromeFrameOverlayContent
.chromeFrameOverlayContent iframe
.chromeFrameOverlayCloseBar
.chromeFrameOverlayUnderlay
*/
</style>
<script>
CFInstall.check({mode: "overlay"});
</script>
<![endif]-->
<div id="simheader">
<h1 style="margin-top:2px;margin-right:10em;padding-top:0;"><img src="pokemonshowdownbeta.png" alt="Pokemon Showdown! (beta)" /></h1>
</div>
<div id="leftbarbg"><div><span></span></div></div>
<div id="leftbar">
<div>
<a id="tabtab-lobby" class="cur" href="#" onclick="return selectTab('lobby');">Lobby</a>
</div>
</div>
<div id="main">
<div id="loading-message" style="padding:20px">Initializing... <noscript>Surprise, surprise, this requires JavaScript</noscript></div>
</div>
<div id="lobbychat" class="lobbychat"></div>
<div id="userbar">
<em>Connecting...</em>
</div>
<div id="backbutton">
<div><button onclick="return selectTab('lobby');">« Lobby</button></div>
</div>
<div id="overlay" style="display:none"></div>
<div id="tooltipwrapper"><div class="tooltipinner"></div></div>
<div id="foehint"></div>
<script>
document.getElementById('loading-message').innerHTML += ' DONE<br />Loading libraries...';
</script>
<script src="js/jquery-2.0.0.min.js"></script>
<script src="js/autoresize.jquery.min.js"></script>
<script src="js/jquery-cookie.js"></script>
<script src="js/jquery.json-2.3.min.js"></script>
<script src="js/soundmanager2-nodebug-jsmin.js"></script>
<script>
soundManager.setup({url: 'swf/'});
</script>
<script src="js/html-sanitizer-minified.js"></script>
<script>
document.getElementById('loading-message').innerHTML += ' DONE<br />Loading client...';
document.getElementById('loading-message').innerHTML = 'If the client is taking a long time to load, try refreshing in a few minutes. If it still doesn\'t work, Pokemon Showdown may be down for maintenance. We apologize for the inconvenience.<br /><br />'+document.getElementById('loading-message').innerHTML;
</script>
<script src="http://play.pokemonshowdown.com/js/config.js"></script>
<script src="js/battledata.js?test"></script>
<script src="data/pokedex-mini.js?test"></script>
<script src="js/battle.js?test"></script>
<script src="js/sockjs-0.3.min.js"></script>
<script src="js/teambuilder.js?test"></script>
<script src="js/ladder.js?test"></script>
<script src="js/sim.js?test"></script>
<script src="data/learnsets.js?test"></script>
<script src="data/graphics.js?test"></script>
<script src="data/pokedex.js?test"></script>
<script src="data/formats-data.js?test"></script>
<script src="data/moves.js?test"></script>
<script src="data/items.js?test"></script>
<script src="data/abilities.js?test"></script>
<script src="data/formats.js?test"></script>
<script src="data/typechart.js?test"></script>
<script src="js/utilichart.js?test"></script>
<script src="data/aliases.js?test"></script>
<script>
updateResize();
if (init) init();
</script>
</body>
</html>