bnet_scraper 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/CHANGELOG.md +9 -0
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/README.md +51 -31
  5. data/bnet_scraper.gemspec +3 -1
  6. data/fixtures/vcr_cassettes/demon_achievements.yml +246 -0
  7. data/fixtures/vcr_cassettes/demon_leagues.yml +359 -0
  8. data/fixtures/vcr_cassettes/demon_match_history.yml +241 -0
  9. data/fixtures/vcr_cassettes/demon_matches.yml +240 -0
  10. data/fixtures/vcr_cassettes/demon_profile.yml +1428 -0
  11. data/fixtures/vcr_cassettes/demon_profile_leagues.yml +1291 -0
  12. data/fixtures/vcr_cassettes/full_demon_scrape.yml +5449 -0
  13. data/fixtures/vcr_cassettes/invalid_achievement.yml +199 -0
  14. data/fixtures/vcr_cassettes/invalid_leagues.yml +199 -0
  15. data/fixtures/vcr_cassettes/invalid_matches.yml +199 -0
  16. data/fixtures/vcr_cassettes/invalid_profile.yml +199 -0
  17. data/fixtures/vcr_cassettes/new_league.yml +595 -0
  18. data/fixtures/vcr_cassettes/profile_invalid.yml +199 -0
  19. data/fixtures/vcr_cassettes/profile_not_laddered.yml +443 -0
  20. data/fixtures/vcr_cassettes/realm_status.yml +578 -0
  21. data/lib/bnet_scraper/starcraft2.rb +7 -8
  22. data/lib/bnet_scraper/starcraft2/achievement_scraper.rb +5 -5
  23. data/lib/bnet_scraper/starcraft2/league.rb +54 -0
  24. data/lib/bnet_scraper/starcraft2/league_scraper.rb +3 -1
  25. data/lib/bnet_scraper/starcraft2/match.rb +15 -0
  26. data/lib/bnet_scraper/starcraft2/match_history_scraper.rb +9 -18
  27. data/lib/bnet_scraper/starcraft2/profile.rb +45 -0
  28. data/lib/bnet_scraper/starcraft2/profile_scraper.rb +68 -44
  29. data/spec/spec_helper.rb +14 -0
  30. data/spec/starcraft2/achievement_scraper_spec.rb +67 -83
  31. data/spec/starcraft2/league_scraper_spec.rb +25 -59
  32. data/spec/starcraft2/league_spec.rb +43 -0
  33. data/spec/starcraft2/match_history_scraper_spec.rb +19 -39
  34. data/spec/starcraft2/profile_scraper_spec.rb +36 -141
  35. data/spec/starcraft2/profile_spec.rb +46 -0
  36. data/spec/starcraft2/status_scraper_spec.rb +12 -5
  37. data/spec/starcraft2_spec.rb +19 -36
  38. data/spec/support/shared/sc2_scraper.rb +28 -13
  39. metadata +57 -42
  40. data/spec/support/achievements.html +0 -1156
  41. data/spec/support/failure.html +0 -565
  42. data/spec/support/initial_league.html +0 -1082
  43. data/spec/support/initial_leagues.html +0 -3598
  44. data/spec/support/league.html +0 -8310
  45. data/spec/support/leagues.html +0 -3810
  46. data/spec/support/load_fakeweb.rb +0 -42
  47. data/spec/support/matches.html +0 -1228
  48. data/spec/support/no_ladder.html +0 -967
  49. data/spec/support/no_ladder_leagues.html +0 -664
  50. data/spec/support/profile.html +0 -1074
  51. data/spec/support/status.html +0 -1
@@ -1,664 +0,0 @@
1
-
2
-
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" class="en-us">
5
- <head xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#">
6
- <title>My Leagues - ClarkeKent - StarCraft II</title>
7
- <meta content="false" http-equiv="imagetoolbar" />
8
- <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
9
- <link rel="shortcut icon" href="/sc2/static/local-common/images/favicons/sc2.ico" type="image/x-icon"/>
10
- <link rel="search" type="application/opensearchdescription+xml" href="http://us.battle.net/en-us/data/opensearch" title="Battle.net Search" />
11
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common.css?v42" />
12
- <!--[if IE]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie.css?v42" />
13
- <![endif]-->
14
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie6.css?v42" />
15
- <![endif]-->
16
- <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie7.css?v42" />
17
- <![endif]-->
18
- <link title="StarCraft II™ - News" href="/sc2/en/feed/news" type="application/atom+xml" rel="alternate"/>
19
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2.css?v21" />
20
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/profile/profile.css?v21" />
21
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/profile/profile-ie6.css?v21" />
22
- <![endif]-->
23
- <!--[if IE]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie.css?v21" />
24
- <![endif]-->
25
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie6.css?v21" />
26
- <![endif]-->
27
- <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie7.css?v21" />
28
- <![endif]-->
29
- <script type="text/javascript" src="/sc2/static/local-common/js/third-party/jquery.js?v42"></script>
30
- <script type="text/javascript" src="/sc2/static/local-common/js/core.js?v42"></script>
31
- <script type="text/javascript" src="/sc2/static/local-common/js/tooltip.js?v42"></script>
32
- <!--[if IE 6]> <script type="text/javascript">
33
- //<![CDATA[
34
- try { document.execCommand('BackgroundImageCache', false, true) } catch(e) {}
35
- //]]>
36
- </script>
37
- <![endif]-->
38
- <script type="text/javascript">
39
- //<![CDATA[
40
- Core.staticUrl = '/sc2/static';
41
- Core.sharedStaticUrl= '/sc2/static/local-common';
42
- Core.baseUrl = '/sc2/en';
43
- Core.projectUrl = '/sc2';
44
- Core.cdnUrl = 'http://us.media.blizzard.com';
45
- Core.supportUrl = 'http://us.battle.net/support/';
46
- Core.secureSupportUrl= 'https://us.battle.net/support/';
47
- Core.project = 'sc2';
48
- Core.locale = 'en-us';
49
- Core.language = 'en';
50
- Core.buildRegion = 'us';
51
- Core.region = 'us';
52
- Core.shortDateFormat= 'MM/dd/yyyy';
53
- Core.dateTimeFormat = 'MM/dd/yyyy hh:mm a';
54
- Core.loggedIn = false;
55
- Flash.videoPlayer = 'http://us.media.blizzard.com/global-video-player/themes/sc2/video-player.swf';
56
- Flash.videoBase = 'http://us.media.blizzard.com/sc2/media/videos';
57
- Flash.ratingImage = 'http://us.media.blizzard.com/global-video-player/ratings/sc2/en-us.jpg';
58
- Flash.expressInstall= 'http://us.media.blizzard.com/global-video-player/expressInstall.swf';
59
- var _gaq = _gaq || [];
60
- _gaq.push(['_setAccount', 'UA-544112-16']);
61
- _gaq.push(['_setDomainName', '.battle.net']);
62
- _gaq.push(['_setAllowLinker', true]);
63
- _gaq.push(['_trackPageview']);
64
- _gaq.push(['_trackPageLoadTime']);
65
- //]]>
66
- </script>
67
- <meta property="og:site_name" content="StarCraft II™" />
68
- <meta property="og:title" content="My Leagues - ClarkeKent - StarCraft II" />
69
- <meta property="og:image" content="http://us.media.blizzard.com/battle.net/logos/og-sc2.png" />
70
- <meta property="og:url" content="http://us.battle.net/sc2/en/profile/3354437/1/ClarkeKent/ladder/leagues" />
71
- <meta property="og:type" content="website" />
72
- <meta property="og:locale" content="en_US" />
73
- <meta property="fb:admins" content="470332842321,433163104416"/>
74
- </head>
75
- <body class=""><div id="wrapper">
76
- <div id="header">
77
- <div class="search-bar">
78
- <form action="/sc2/en/search" method="get" autocomplete="off">
79
- <div>
80
- <input type="text" class="search-field input" name="q" id="search-field" maxlength="200" tabindex="40" alt="Search StarCraft II" value="Search StarCraft II" />
81
- <input type="submit" class="search-button" value="" tabindex="41" />
82
- </div>
83
- </form>
84
- </div>
85
- <h1 id="logo"><a href="/sc2/en/">Battle.net</a></h1>
86
- <div id="header-plate">
87
- <ul class="menu" id="menu">
88
- <li class="menu-home">
89
- <a href="/sc2/en/">
90
- <span>Home</span>
91
- </a>
92
- </li>
93
- <li class="menu-game">
94
- <a href="/sc2/en/game/">
95
- <span>Game Guide</span>
96
- </a>
97
- </li>
98
- <li class="menu-esports">
99
- <a href="/sc2/en/esports/">
100
- <span>eSports</span>
101
- </a>
102
- </li>
103
- <li class="menu-media">
104
- <a href="/sc2/en/media/">
105
- <span>Media</span>
106
- </a>
107
- </li>
108
- <li class="menu-forums">
109
- <a href="/sc2/en/forum/">
110
- <span>Forums</span>
111
- </a>
112
- </li>
113
- <li class="menu-buy-now">
114
- <a href="/sc2/en/buy-now/">
115
- <span>Buy Now</span>
116
- </a>
117
- </li>
118
- </ul>
119
- <div id="user-plate" class="ajax-update">
120
- <div id="user-empty">
121
- <a href="?login" onclick="return Login.open('https://us.battle.net/login/login.frag')"><strong>Log in</strong></a> with your Battle.net account to post comments and personalize your site content.
122
- </div>
123
- </div>
124
- <ol class="ui-breadcrumb">
125
- <li>
126
- <a href="/sc2/en/" rel="np">
127
- StarCraft II
128
- </a>
129
- </li>
130
- <li>
131
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/" rel="np">
132
- ClarkeKent
133
- </a>
134
- </li>
135
- <li>
136
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/ladder/" rel="np">
137
- Leagues &amp; Ladders
138
- </a>
139
- </li>
140
- <li class="last">
141
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/ladder/leagues" rel="np">
142
- My Leagues
143
- </a>
144
- </li>
145
- </ol>
146
- </div>
147
- </div>
148
- <div id="content">
149
- <div id="content-top">
150
- <div id="content-bot"> <div id="profile-wrapper">
151
- <div id="profile-header">
152
- <div id="portrait" onclick="Core.goTo('/sc2/en/profile/3354437/1/ClarkeKent/');">
153
-
154
-
155
- <span class="icon-frame "
156
- style="background: url('/sc2/static/local-common/images/sc2/portraits/0-90.jpg?v42') 0px 0px no-repeat; width: 90px; height: 90px;">
157
-
158
- </span>
159
-
160
- <div id="portrait-frame">&#160;</div>
161
- </div>
162
-
163
- <div id="current-decals">
164
- <div class="current-decal" data-tooltip="Zerg Decal">
165
-
166
-
167
- <span class="icon-frame "
168
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') -90px -270px no-repeat; width: 45px; height: 45px;">
169
-
170
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/zerg-decals#reward-2359737029" style="height: 45px"> </a>
171
- </span>
172
- </div>
173
-
174
- <div class="current-decal" data-tooltip="Protoss Decal">
175
-
176
-
177
- <span class="icon-frame "
178
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') -45px -135px no-repeat; width: 45px; height: 45px;">
179
-
180
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/protoss-decals#reward-2009110693" style="height: 45px"> </a>
181
- </span>
182
- </div>
183
-
184
- <div class="current-decal" data-tooltip="Terran Decal">
185
-
186
-
187
- <span class="icon-frame "
188
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') 0px 0px no-repeat; width: 45px; height: 45px;">
189
-
190
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/terran-decals#reward-18730036" style="height: 45px"> </a>
191
- </span>
192
- </div>
193
- </div>
194
-
195
- <h2><a href="/sc2/en/profile/3354437/1/ClarkeKent/">ClarkeKent</a></h2>
196
- <h3>35</h3>
197
- </div>
198
-
199
- <div id="profile-left">
200
- <ul id="profile-menu">
201
- <li>
202
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/">
203
-
204
-
205
- <span class="back"></span>
206
- Back <span>Profile</span>
207
- </a>
208
- </li>
209
- <li>
210
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/ladder/">
211
-
212
-
213
- <span class="back"></span>
214
- Back <span>Leagues &amp; Ladde...</span>
215
- </a>
216
- </li>
217
- </ul>
218
-
219
-
220
- </div>
221
-
222
- <div id="profile-right">
223
-
224
-
225
- <div class="data-title">
226
- <div class="data-label">
227
- <h3 class="title-ladder">Leagues &amp; Ladders</h3>
228
- </div>
229
- </div>
230
-
231
- <div class="data-empty">
232
- This player has not been ranked as part of the listed season and ladder.
233
- </div>
234
-
235
- </div>
236
-
237
- <span class="clear"><!-- --></span>
238
- </div>
239
- </div>
240
- </div>
241
- </div>
242
- <div id="footer">
243
- <div id="sitemap" class="promotions">
244
- <div class="column">
245
- <h3 class="bnet">
246
- <a href="http://us.battle.net/" tabindex="100">Battle.net Home</a>
247
- </h3>
248
- <ul>
249
- <li><a href="http://us.battle.net/what-is/">What is Battle.net?</a></li>
250
- <li><a href="https://us.battle.net/account/management/get-a-game.html">Buy Games</a></li>
251
- <li><a href="https://us.battle.net/account/management/">Account</a></li>
252
- <li><a href="http://us.battle.net/support/">Support</a></li>
253
- <li><a href="http://us.battle.net/realid/">Real ID</a></li>
254
- <li><a href="http://us.battle.net/battletag/">BattleTag</a></li>
255
- </ul>
256
- </div>
257
- <div class="column">
258
- <h3 class="games">
259
- <a href="http://us.battle.net/" tabindex="100">Games</a>
260
- </h3>
261
- <ul>
262
- <li><a href="http://us.battle.net/sc2/">StarCraft II™</a></li>
263
- <li><a href="http://us.battle.net/wow/">World of Warcraft™</a></li>
264
- <li><a href="http://us.battle.net/d3/">Diablo III™</a></li>
265
- <li><a href="http://us.battle.net/games/classic">Classic Games</a></li>
266
- <li><a href="https://us.battle.net/account/download/">Game Client Downloads</a></li>
267
- </ul>
268
- </div>
269
- <div class="column">
270
- <h3 class="account">
271
- <a href="https://us.battle.net/account/management/" tabindex="100">Account</a>
272
- </h3>
273
- <ul>
274
- <li><a href="https://us.battle.net/account/support/login-support.html">Can’t log in?</a></li>
275
- <li><a href="https://us.battle.net/account/creation/tos.html">Create Account</a></li>
276
- <li><a href="https://us.battle.net/account/management/">Account Summary</a></li>
277
- <li><a href="https://us.battle.net/account/management/authenticator.html">Account Security</a></li>
278
- <li><a href="https://us.battle.net/account/management/add-game.html">Add a Game</a></li>
279
- <li><a href="https://us.battle.net/account/management/redemption/redeem.html">Redeem Promo Codes</a></li>
280
- </ul>
281
- </div>
282
- <div class="column">
283
- <h3 class="support">
284
- <a href="http://us.battle.net/support/" tabindex="100">Support</a>
285
- </h3>
286
- <ul>
287
- <li><a href="http://us.battle.net/support/">Support Articles</a></li>
288
- <li><a href="https://us.battle.net/account/parental-controls/index.html">Parental Controls</a></li>
289
- <li><a href="http://us.battle.net/security/">Protect Your Account</a></li>
290
- <li><a href="http://us.battle.net/security/help">Help! I got hacked!</a></li>
291
- </ul>
292
- </div>
293
- <div id="footer-promotions">
294
- <div class="sidebar-content"></div>
295
- <div id="sidebar-marketing" class="sidebar-module">
296
- <div class="bnet-offer">
297
- <!-- -->
298
- <div class="bnet-offer-bg">
299
- <a href="https://us.battle.net/account/activation/landing.html?product=S2&amp;key&amp;purchase" target="_blank" id="ad5207109" class="bnet-offer-image" onclick="BnetAds.trackEvent('5207109', 'SCIIdig', 'sc2', true);">
300
- <img src="http://us.media2.battle.net/cms/ad_300x100/ZNB918LXVJ251309281567042.jpg" width="300" height="100" alt=""/>
301
- </a>
302
- </div>
303
- <script type="text/javascript">
304
- //<![CDATA[
305
- if(typeof (BnetAds.addEvent) != "undefined" )
306
- BnetAds.addEvent(window, 'load', function(){ BnetAds.trackEvent('5207109', 'SCIIdig', 'sc2'); } );
307
- else
308
- BnetAds.trackEvent('5207109', 'SCIIdig', 'sc2');
309
- //]]>
310
- </script>
311
- </div>
312
- </div>
313
- </div>
314
- <span class="clear"><!-- --></span>
315
- </div>
316
- <div id="copyright">
317
- <a href="javascript:;" tabindex="100" id="change-language">
318
- <span>Americas - English (US)</span>
319
- </a>
320
- <span>©2012 Blizzard Entertainment, Inc. All rights reserved</span>
321
- <a target="_blank" href="http://us.blizzard.com/company/about/termsofuse.html" tabindex="100">Terms of Use</a>
322
- <a target="_blank" href="http://us.blizzard.com/company/legal/" tabindex="100">Legal</a>
323
- <a target="_blank" href="http://us.blizzard.com/company/about/privacy.html" tabindex="100">Privacy Policy</a>
324
- <a target="_blank" href="http://us.blizzard.com/company/about/infringementnotice.html" tabindex="100">Copyright Infringement</a>
325
- </div>
326
- <div id="international"></div>
327
- <div id="legal">
328
- <div id="legal-ratings" class="png-fix">
329
- <a rel="nofollow" class="truste-link" href="//privacy-policy.truste.com/click-with-confidence/ctv/en/us.battle.net/seal_m" target="_blank">
330
- <img class="legal-image" src="//privacy-policy.truste.com/certified-seal/wps/en/us.battle.net/seal_m.png" alt="Validate TRUSTe privacy certification"/>
331
- </a>
332
- <a rel="nofollow" target="_blank" href="http://www.esrb.org/ratings/ratings_guide.jsp">
333
- <img class="legal-image" alt="" src="/sc2/static/local-common/images/legal/us/esrb-teen-sc2.png" />
334
- </a>
335
- </div>
336
- <div id="blizzard" class="png-fix">
337
- <a href="http://blizzard.com" tabindex="100"><img src="/sc2/static/local-common/images/logos/blizz-sc2.png" alt="" /></a>
338
- </div>
339
- <span class="clear"><!-- --></span>
340
- </div>
341
- </div>
342
- <div id="service">
343
- <ul class="service-bar">
344
- <li class="service-cell service-home"><a href="http://us.battle.net/" tabindex="50" accesskey="1" title="Battle.net Home"> </a></li>
345
- <li class="service-cell service-welcome">
346
- <a href="?login" onclick="return Login.open()">Log in</a> or <a href="https://us.battle.net/account/creation/tos.html">Create an Account</a>
347
- </li>
348
- <li class="service-cell service-account"><a href="https://us.battle.net/account/management/" class="service-link" tabindex="50" accesskey="3">Account</a></li>
349
- <li class="service-cell service-support service-support-enhanced">
350
- <a href="#support" class="service-link service-link-dropdown" tabindex="50" accesskey="4" id="support-link" onclick="return false" style="cursor: progress" rel="javascript">Support<span class="no-support-tickets" id="support-ticket-count"></span></a>
351
- <div class="support-menu" id="support-menu" style="display:none;">
352
- <div class="support-primary">
353
- <ul class="support-nav">
354
- <li>
355
- <a href="http://us.battle.net/support/" tabindex="55" class="support-category">
356
- <strong class="support-caption">Knowledge Center</strong>
357
- Browse our support articles
358
- </a>
359
- </li>
360
- <li>
361
- <a href="https://us.battle.net/support/ticket/status" tabindex="55" class="support-category">
362
- <strong class="support-caption">Your Support Tickets</strong>
363
- View your active tickets (login required).
364
- </a>
365
- </li>
366
- </ul>
367
- <span class="clear"><!-- --></span>
368
- </div>
369
- <div class="support-secondary"></div>
370
- <!--[if IE 6]> <iframe id="support-shim" src="javascript:false;" frameborder="0" scrolling="no" style="display: block; position: absolute; top: 0; left: 9px; width: 297px; height: 400px; z-index: -1;"></iframe>
371
- <script type="text/javascript">
372
- //<![CDATA[
373
- (function(){
374
- var doc = document;
375
- var shim = doc.getElementById('support-shim');
376
- shim.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
377
- shim.style.display = 'block';
378
- })();
379
- //]]>
380
- </script>
381
- <![endif]-->
382
- </div>
383
- </li>
384
- <li class="service-cell service-explore">
385
- <a href="#explore" tabindex="50" accesskey="5" class="dropdown" id="explore-link" onclick="return false" style="cursor: progress" rel="javascript">Explore</a>
386
- <div class="explore-menu" id="explore-menu" style="display:none;">
387
- <div class="explore-primary">
388
- <ul class="explore-nav">
389
- <li>
390
- <a href="http://us.battle.net/" tabindex="55" data-label="Home">
391
- <strong class="explore-caption">Battle.net Home</strong>
392
- Connect. Play. Unite.
393
- </a>
394
- </li>
395
- <li>
396
- <a href="https://us.battle.net/account/management/" tabindex="55" data-label="Account">
397
- <strong class="explore-caption">Account</strong>
398
- Manage your Account
399
- </a>
400
- </li>
401
- <li>
402
- <a href="http://us.battle.net/support/" tabindex="55" data-label="Support">
403
- <strong class="explore-caption">Support</strong>
404
- Get Support and explore the knowledgebase.
405
- </a>
406
- </li>
407
- <li>
408
- <a href="https://us.battle.net/account/management/get-a-game.html" tabindex="55" data-label="Buy Games">
409
- <strong class="explore-caption">Buy Games</strong>
410
- Digital Games for Download
411
- </a>
412
- </li>
413
- </ul>
414
- <div class="explore-links">
415
- <h2 class="explore-caption">More</h2>
416
- <ul>
417
- <li><a href="http://us.battle.net/what-is/" tabindex="55" data-label="More">What is Battle.net?</a></li>
418
- <li><a href="https://us.battle.net/account/parental-controls/index.html" tabindex="55" data-label="More">Parental Controls</a></li>
419
- <li><a href="http://us.battle.net/security/" tabindex="55" data-label="More">Account Security</a></li>
420
- <li><a href="https://us.battle.net/account/management/add-game.html" tabindex="55" data-label="More">Add a Game</a></li>
421
- <li><a href="https://us.battle.net/account/support/password-reset.html" tabindex="55" data-label="More">Can’t log in?</a></li>
422
- <li><a href="https://us.battle.net/account/download/" tabindex="55" data-label="More">Game Client Downloads</a></li>
423
- <li><a href="https://us.battle.net/account/management/redemption/redeem.html" tabindex="55" data-label="More">Redeem Promo Codes</a></li>
424
- <li><a href="http://us.battle.net/games/classic" tabindex="55" data-label="More">Classic Games</a></li>
425
- </ul>
426
- </div>
427
- <span class="clear"><!-- --></span>
428
- <!--[if IE 6]> <iframe id="explore-shim" src="javascript:false;" frameborder="0" scrolling="no" style="display: block; position: absolute; top: 0; left: 9px; width: 409px; height: 400px; z-index: -1;"></iframe>
429
- <script type="text/javascript">
430
- //<![CDATA[
431
- (function(){
432
- var doc = document;
433
- var shim = doc.getElementById('explore-shim');
434
- shim.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
435
- shim.style.display = 'block';
436
- })();
437
- //]]>
438
- </script>
439
- <![endif]-->
440
- </div>
441
- <ul class="explore-secondary">
442
- <li class="explore-game explore-game-sc2">
443
- <a href="http://us.battle.net/sc2/" tabindex="55" data-label="Game - sc2">
444
- <span class="explore-game-inner">
445
- <strong class="explore-caption">StarCraft II™</strong>
446
- <span>News &amp; Forums</span> <span>Beginner’s Guide</span> <span>Player Profiles</span>
447
- </span>
448
- </a>
449
- </li>
450
- <li class="explore-game explore-game-wow">
451
- <a href="http://us.battle.net/wow/" tabindex="55" data-label="Game - wow">
452
- <span class="explore-game-inner">
453
- <strong class="explore-caption">World of Warcraft™</strong>
454
- <span>Character Profiles</span> <span>News &amp; Forums</span> <span>Game Guide</span>
455
- </span>
456
- </a>
457
- </li>
458
- <li class="explore-game explore-game-d3">
459
- <a href="http://us.battle.net/d3/" tabindex="55" data-label="Game - d3">
460
- <span class="explore-game-inner">
461
- <strong class="explore-caption">Diablo III™</strong>
462
- <span>Game Guide</span> <span>News</span> <span>Forums</span>
463
- </span>
464
- </a>
465
- </li>
466
- </ul>
467
- </div>
468
- </li>
469
- </ul>
470
- <div id="warnings-wrapper">
471
- <script type="text/javascript">
472
- //<![CDATA[
473
- $(function() {
474
- App.saveCookie('html5Warning');
475
- App.resetCookie('browserWarning');
476
- });
477
- //]]>
478
- </script>
479
- <!--[if lt IE 8]> <div id="browser-warning" class="warning warning-red">
480
- <div class="warning-inner2">
481
- You are using an outdated web browser.<br />
482
- <a href="http://us.blizzard.com/support/article/browserupdate">Upgrade</a> or <a href="http://www.google.com/chromeframe/?hl=en-US" id="chrome-frame-link">install Google Chrome Frame</a>.
483
- <a href="#close" class="warning-close" onclick="App.closeWarning('#browser-warning', 'browserWarning'); return false;"></a>
484
- </div>
485
- </div>
486
- <![endif]-->
487
- <!--[if lt IE 8]> <script type="text/javascript" src="/sc2/static/local-common/js/third-party/CFInstall.min.js?v42"></script>
488
- <script type="text/javascript">
489
- //<![CDATA[
490
- $(function() {
491
- var age = 365 * 24 * 60 * 60 * 1000;
492
- var src = 'https://www.google.com/chromeframe/?hl=en-US';
493
- if ('http:' == document.location.protocol) {
494
- src = 'http://www.google.com/chromeframe/?hl=en-US';
495
- }
496
- document.cookie = "disableGCFCheck=0;path=/;max-age="+age;
497
- $('#chrome-frame-link').bind({
498
- 'click': function() {
499
- App.closeWarning('#browser-warning');
500
- CFInstall.check({
501
- mode: 'overlay',
502
- url: src
503
- });
504
- return false;
505
- }
506
- });
507
- });
508
- //]]>
509
- </script>
510
- <![endif]-->
511
- <noscript>
512
- <div id="javascript-warning" class="warning warning-red">
513
- <div class="warning-inner2">
514
- JavaScript must be enabled to use this site.
515
- </div>
516
- </div>
517
- </noscript>
518
- </div>
519
- </div>
520
- </div><script type="text/javascript" src="/sc2/static/local-common/js/search.js?v42"></script>
521
- <script type="text/javascript">
522
- //<![CDATA[
523
- var xsToken = '';
524
- var supportToken = '';
525
- var Msg = {
526
- support: {
527
- ticketNew: 'Ticket {0} was created.',
528
- ticketStatus: 'Ticket {0}’s status changed to {1}.',
529
- ticketOpen: 'Open',
530
- ticketAnswered: 'Answered',
531
- ticketResolved: 'Resolved',
532
- ticketCanceled: 'Canceled',
533
- ticketArchived: 'Archived',
534
- ticketInfo: 'Need Info',
535
- ticketAll: 'View All Tickets'
536
- },
537
- cms: {
538
- requestError: 'Your request cannot be completed.',
539
- ignoreNot: 'Not ignoring this user',
540
- ignoreAlready: 'Already ignoring this user',
541
- stickyRequested: 'Sticky requested',
542
- stickyHasBeenRequested: 'You have already sent a sticky request for this topic.',
543
- postAdded: 'Post added to tracker',
544
- postRemoved: 'Post removed from tracker',
545
- userAdded: 'User added to tracker',
546
- userRemoved: 'User removed from tracker',
547
- validationError: 'A required field is incomplete',
548
- characterExceed: 'The post body exceeds XXXXXX characters.',
549
- searchFor: "Search for",
550
- searchTags: "Articles tagged:",
551
- characterAjaxError: "You may have become logged out. Please refresh the page and try again.",
552
- ilvl: "Level {0}",
553
- shortQuery: "Search requests must be at least three characters long."
554
- },
555
- bml: {
556
- bold: 'Bold',
557
- italics: 'Italics',
558
- underline: 'Underline',
559
- list: 'Unordered List',
560
- listItem: 'List Item',
561
- quote: 'Quote',
562
- quoteBy: 'Posted by {0}',
563
- unformat: 'Remove Formating',
564
- cleanup: 'Fix Linebreaks',
565
- code: 'Code Blocks',
566
- item: 'WoW Item',
567
- itemPrompt: 'Item ID:',
568
- url: 'URL',
569
- urlPrompt: 'URL Address:'
570
- },
571
- ui: {
572
- submit: 'Submit',
573
- cancel: 'Cancel',
574
- reset: 'Reset',
575
- viewInGallery: 'View in gallery',
576
- loading: 'Loading…',
577
- unexpectedError: 'An error has occurred',
578
- fansiteFind: 'Find this on…',
579
- fansiteFindType: 'Find {0} on…',
580
- fansiteNone: 'No fansites available.'
581
- },
582
- grammar: {
583
- colon: '{0}:',
584
- first: 'First',
585
- last: 'Last'
586
- },
587
- fansite: {
588
- achievement: 'achievement',
589
- character: 'character',
590
- faction: 'faction',
591
- 'class': 'class',
592
- object: 'object',
593
- talentcalc: 'talents',
594
- skill: 'profession',
595
- quest: 'quest',
596
- spell: 'spell',
597
- event: 'event',
598
- title: 'title',
599
- arena: 'arena team',
600
- guild: 'guild',
601
- zone: 'zone',
602
- item: 'item',
603
- race: 'race',
604
- npc: 'NPC',
605
- pet: 'pet'
606
- },
607
- search: {
608
- kb: 'Support',
609
- post: 'Forums',
610
- article: 'Blog Articles',
611
- static: 'General Content',
612
- wowcharacter: 'Characters',
613
- wowitem: 'Items',
614
- wowguild: 'Guilds',
615
- wowarenateam: 'Arena Teams',
616
- url: 'Suggested Links',
617
- other: 'Other'
618
- }
619
- };
620
- //]]>
621
- </script>
622
- <script type="text/javascript">
623
- //<![CDATA[
624
- Core.load("/sc2/static/local-common/js/third-party/jquery-ui-1.8.6.custom.min.js?v42");
625
- Core.load("/sc2/static/local-common/js/login.js?v42", false, function() {
626
- Login.embeddedUrl = 'https://us.battle.net/login/login.frag';
627
- });
628
- //]]>
629
- </script>
630
- <script type="text/javascript" src="/sc2/static/local-common/js/menu.js?v42"></script>
631
- <script type="text/javascript" src="/sc2/static/js/sc2.js?v21"></script>
632
- <script type="text/javascript">
633
- //<![CDATA[
634
- $(function(){
635
- Menu.initialize('/data/menu.json?v42');
636
- Tooltip.options.useTable = true;
637
- });
638
- //]]>
639
- </script>
640
- <!--[if lt IE 8]> <script type="text/javascript" src="/sc2/static/local-common/js/third-party/jquery.pngFix.pack.js?v42"></script>
641
- <script type="text/javascript">
642
- //<![CDATA[
643
- $('.png-fix').pngFix(); //]]>
644
- </script>
645
- <![endif]-->
646
- <script type="text/javascript">
647
- //<![CDATA[
648
- (function() {
649
- var ga = document.createElement('script');
650
- var src = "https://ssl.google-analytics.com/ga.js";
651
- if ('http:' == document.location.protocol) {
652
- src = "http://www.google-analytics.com/ga.js";
653
- }
654
- ga.type = 'text/javascript';
655
- ga.setAttribute('async', 'true');
656
- ga.src = src;
657
- var s = document.getElementsByTagName('script');
658
- s = s[s.length-1];
659
- s.parentNode.insertBefore(ga, s.nextSibling);
660
- })();
661
- //]]>
662
- </script>
663
- </body>
664
- </html>