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,967 +0,0 @@
1
-
2
-
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" class="en-us">
4
- <head xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#">
5
- <title>ClarkeKent - StarCraft II</title>
6
- <meta content="false" http-equiv="imagetoolbar" />
7
- <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
8
- <link rel="shortcut icon" href="/sc2/static/local-common/images/favicons/sc2.ico" type="image/x-icon"/>
9
- <link rel="search" type="application/opensearchdescription+xml" href="http://us.battle.net/en-us/data/opensearch" title="Battle.net Search" />
10
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common.css?v42" />
11
- <!--[if IE]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie.css?v42" />
12
- <![endif]-->
13
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie6.css?v42" />
14
- <![endif]-->
15
- <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/local-common/css/common-ie7.css?v42" />
16
- <![endif]-->
17
- <link title="StarCraft II™ - News" href="/sc2/en/feed/news" type="application/atom+xml" rel="alternate"/>
18
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2.css?v21" />
19
- <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/profile/profile.css?v21" />
20
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/profile/profile-ie6.css?v21" />
21
- <![endif]-->
22
- <!--[if IE]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie.css?v21" />
23
- <![endif]-->
24
- <!--[if IE 6]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie6.css?v21" />
25
- <![endif]-->
26
- <!--[if IE 7]> <link rel="stylesheet" type="text/css" media="all" href="/sc2/static/css/sc2-ie7.css?v21" />
27
- <![endif]-->
28
- <script type="text/javascript" src="/sc2/static/local-common/js/third-party/jquery.js?v42"></script>
29
- <script type="text/javascript" src="/sc2/static/local-common/js/core.js?v42"></script>
30
- <script type="text/javascript" src="/sc2/static/local-common/js/tooltip.js?v42"></script>
31
- <!--[if IE 6]> <script type="text/javascript">
32
- //<![CDATA[
33
- try { document.execCommand('BackgroundImageCache', false, true) } catch(e) {}
34
- //]]>
35
- </script>
36
- <![endif]-->
37
- <script type="text/javascript">
38
- //<![CDATA[
39
- Core.staticUrl = '/sc2/static';
40
- Core.sharedStaticUrl= '/sc2/static/local-common';
41
- Core.baseUrl = '/sc2/en';
42
- Core.projectUrl = '/sc2';
43
- Core.cdnUrl = 'http://us.media.blizzard.com';
44
- Core.supportUrl = 'http://us.battle.net/support/';
45
- Core.secureSupportUrl= 'https://us.battle.net/support/';
46
- Core.project = 'sc2';
47
- Core.locale = 'en-us';
48
- Core.language = 'en';
49
- Core.buildRegion = 'us';
50
- Core.region = 'us';
51
- Core.shortDateFormat= 'MM/dd/yyyy';
52
- Core.dateTimeFormat = 'MM/dd/yyyy hh:mm a';
53
- Core.loggedIn = false;
54
- Flash.videoPlayer = 'http://us.media.blizzard.com/global-video-player/themes/sc2/video-player.swf';
55
- Flash.videoBase = 'http://us.media.blizzard.com/sc2/media/videos';
56
- Flash.ratingImage = 'http://us.media.blizzard.com/global-video-player/ratings/sc2/en-us.jpg';
57
- Flash.expressInstall= 'http://us.media.blizzard.com/global-video-player/expressInstall.swf';
58
- var _gaq = _gaq || [];
59
- _gaq.push(['_setAccount', 'UA-544112-16']);
60
- _gaq.push(['_setDomainName', '.battle.net']);
61
- _gaq.push(['_setAllowLinker', true]);
62
- _gaq.push(['_trackPageview']);
63
- _gaq.push(['_trackPageLoadTime']);
64
- //]]>
65
- </script>
66
- <meta property="og:site_name" content="StarCraft II™" />
67
- <meta property="og:title" content="ClarkeKent - StarCraft II" />
68
- <meta property="og:image" content="http://us.media.blizzard.com/battle.net/logos/og-sc2.png" />
69
- <meta property="og:url" content="http://us.battle.net/sc2/en/profile/3354437/1/ClarkeKent/" />
70
- <meta property="og:type" content="website" />
71
- <meta property="og:locale" content="en_US" />
72
- <meta property="fb:admins" content="470332842321,433163104416"/>
73
- </head>
74
- <body class=""><div id="wrapper">
75
- <div id="header">
76
- <div class="search-bar">
77
- <form action="/sc2/en/search" method="get" autocomplete="off">
78
- <div>
79
- <input type="text" class="search-field input" name="q" id="search-field" maxlength="200" tabindex="40" alt="Search StarCraft II" value="Search StarCraft II" />
80
- <input type="submit" class="search-button" value="" tabindex="41" />
81
- </div>
82
- </form>
83
- </div>
84
- <h1 id="logo"><a href="/sc2/en/">Battle.net</a></h1>
85
- <div id="header-plate">
86
- <ul class="menu" id="menu">
87
- <li class="menu-home">
88
- <a href="/sc2/en/">
89
- <span>Home</span>
90
- </a>
91
- </li>
92
- <li class="menu-game">
93
- <a href="/sc2/en/game/">
94
- <span>Game Guide</span>
95
- </a>
96
- </li>
97
- <li class="menu-esports">
98
- <a href="/sc2/en/esports/">
99
- <span>eSports</span>
100
- </a>
101
- </li>
102
- <li class="menu-media">
103
- <a href="/sc2/en/media/">
104
- <span>Media</span>
105
- </a>
106
- </li>
107
- <li class="menu-forums">
108
- <a href="/sc2/en/forum/">
109
- <span>Forums</span>
110
- </a>
111
- </li>
112
- <li class="menu-buy-now">
113
- <a href="/sc2/en/buy-now/">
114
- <span>Buy Now</span>
115
- </a>
116
- </li>
117
- </ul>
118
- <div id="user-plate" class="ajax-update">
119
- <div id="user-empty">
120
- <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.
121
- </div>
122
- </div>
123
- <ol class="ui-breadcrumb">
124
- <li>
125
- <a href="/sc2/en/" rel="np">
126
- StarCraft II
127
- </a>
128
- <span class="breadcrumb-arrow"></span>
129
- </li>
130
- <li class="last">
131
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/" rel="np">
132
- ClarkeKent
133
- </a>
134
- </li>
135
- </ol>
136
- </div>
137
- </div>
138
- <div id="content">
139
- <div id="content-top">
140
- <div id="content-bot"> <div id="profile-wrapper">
141
- <div id="profile-header">
142
- <div id="portrait" onclick="Core.goTo('/sc2/en/profile/3354437/1/ClarkeKent/');">
143
-
144
-
145
- <span class="icon-frame "
146
- style="background: url('/sc2/static/local-common/images/sc2/portraits/0-90.jpg?v42') 0px 0px no-repeat; width: 90px; height: 90px;">
147
-
148
- </span>
149
-
150
- <div id="portrait-frame">&#160;</div>
151
- </div>
152
-
153
- <div id="current-decals">
154
- <div class="current-decal" data-tooltip="Zerg Decal">
155
-
156
-
157
- <span class="icon-frame "
158
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') -90px -270px no-repeat; width: 45px; height: 45px;">
159
-
160
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/zerg-decals#reward-2359737029" style="height: 45px"> </a>
161
- </span>
162
- </div>
163
-
164
- <div class="current-decal" data-tooltip="Protoss Decal">
165
-
166
-
167
- <span class="icon-frame "
168
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') -45px -135px no-repeat; width: 45px; height: 45px;">
169
-
170
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/protoss-decals#reward-2009110693" style="height: 45px"> </a>
171
- </span>
172
- </div>
173
-
174
- <div class="current-decal" data-tooltip="Terran Decal">
175
-
176
-
177
- <span class="icon-frame "
178
- style="background: url('/sc2/static/local-common/images/sc2/decals/0-45.jpg?v42') 0px 0px no-repeat; width: 45px; height: 45px;">
179
-
180
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/rewards/terran-decals#reward-18730036" style="height: 45px"> </a>
181
- </span>
182
- </div>
183
- </div>
184
-
185
- <h2><a href="/sc2/en/profile/3354437/1/ClarkeKent/">ClarkeKent</a></h2>
186
- <h3>35</h3>
187
- </div>
188
-
189
- <div id="profile-left">
190
- <ul id="profile-menu">
191
- <li class="active">
192
- <a href="/sc2/en/profile/3354437/1/ClarkeKent/">
193
-
194
-
195
- Profile
196
- </a>
197
- </li>
198
- <li>
199
- <a href="achievements/">
200
- <span class="forward"></span>
201
-
202
- Achievements
203
- </a>
204
- </li>
205
- <li>
206
- <a href="matches">
207
-
208
-
209
- Match History
210
- </a>
211
- </li>
212
- <li>
213
- <a href="rewards/">
214
- <span class="forward"></span>
215
-
216
- Rewards
217
- </a>
218
- </li>
219
- <li>
220
- <a href="ladder/">
221
- <span class="forward"></span>
222
-
223
- Leagues &amp; Ladders
224
- </a>
225
- </li>
226
- </ul>
227
-
228
-
229
- </div>
230
-
231
- <div id="profile-right">
232
-
233
- <div class="profile-module">
234
-
235
- <div class="module-top">
236
- <div class="module-bot">
237
- <div class="module-left" id="season-snapshot">
238
- <div class="module-title">
239
- <h3 class="title-globe">Player Stats</h3>
240
- </div>
241
-
242
- <div class="module-body snapshot-terran">
243
-
244
- <div class="stat-block">
245
- <h3>Games Played This Season</h3>
246
- <h2>0</h2>
247
- </div>
248
-
249
- <div class="stat-block">
250
- <h3>Most Played Mode</h3>
251
- <h2>1v1</h2>
252
- </div>
253
-
254
- <div class="stat-block">
255
- <h3>Total Career Games</h3>
256
- <h2>2</h2>
257
- </div>
258
-
259
- <div class="stat-block">
260
- <h3>Most Played Race</h3>
261
- <h2 class="race">Terran</h2>
262
- </div>
263
-
264
- </div>
265
- </div>
266
-
267
- <div class="module-right" id="career-stats">
268
- <div class="module-title"></div>
269
-
270
- <div class="module-body">
271
-
272
-
273
-
274
-
275
- <div class="badge-item" data-tooltip="#best-finish-SOLO">
276
-
277
- <div class="badge">
278
-
279
- <span class="badge badge-none badge-medium-1">
280
- </span>
281
- </div>
282
- <div class="mode">1V1</div>
283
- <div class="league-name">
284
- No Career Finishes
285
- </div>
286
-
287
- <div id="best-finish-SOLO" style="display: none">
288
- Not Yet Ranked
289
- </div>
290
- </div>
291
-
292
-
293
-
294
-
295
-
296
- <div class="badge-item" data-tooltip="#best-finish-TEAM">
297
-
298
- <div class="badge">
299
-
300
- <span class="badge badge-none badge-medium-1">
301
- </span>
302
- </div>
303
- <div class="mode">TEAM</div>
304
- <div class="league-name">
305
- No Career Finishes
306
- </div>
307
-
308
- <div id="best-finish-TEAM" style="display: none">
309
- Not Yet Ranked
310
- </div>
311
- </div>
312
-
313
- <br />
314
-
315
-
316
-
317
- <div class="badge-item campaign">
318
- <div class="badge unearned"></div>
319
- <div class="mode">Wings of Liberty</div>
320
- <div class="rank">Campaign Not Complete</div>
321
- </div>
322
-
323
- <span class="clear"><!-- --></span>
324
- </div>
325
- </div>
326
-
327
- <span class="clear"><!-- --></span>
328
- </div>
329
- </div>
330
- </div>
331
-
332
- <div class="profile-module single">
333
- <div class="module-top">
334
- <div class="module-bot">
335
- <div class="module-left">
336
- <div class="module-title">
337
- <h3 class="title-shield">Achievements</h3>
338
- </div>
339
-
340
- <div class="module-body" id="top-achievements">
341
-
342
-
343
-
344
- <div class="progress-tile">
345
- <a href="achievements/category/3211280" class="progress-link">
346
- <span class="portrait-a">
347
-
348
-
349
-
350
-
351
-
352
-
353
- <span class="icon-frame "
354
- style="background: url('/sc2/static/local-common/images/sc2/achievements/2-75.jpg?v42') -600px -375px no-repeat; width: 75px; height: 75px;">
355
-
356
- </span>
357
-
358
- <span class="clear"><!-- --></span>
359
- </span>
360
-
361
- Liberty Campaign
362
- </a>
363
-
364
-
365
-
366
- <div class="achievements-progress">
367
- <div class="progress-wrapper">
368
- <div class="progress-bar" style="width: 2.2012578616%"></div>
369
- </div>
370
-
371
- <span>35</span>
372
- </div>
373
- </div>
374
-
375
-
376
- <div class="progress-tile">
377
- <a href="achievements/category/4325398" class="progress-link">
378
- <span class="portrait-a">
379
-
380
-
381
-
382
-
383
-
384
-
385
- <span class="icon-frame "
386
- style="background: url('/sc2/static/local-common/images/sc2/achievements/2-75.jpg?v42') -300px -375px no-repeat; width: 75px; height: 75px;">
387
-
388
- </span>
389
-
390
- <span class="clear"><!-- --></span>
391
- </span>
392
-
393
- Exploration
394
- </a>
395
-
396
-
397
-
398
- <div class="achievements-progress">
399
- <div class="progress-wrapper">
400
- <div class="progress-bar" style="width: 0%"></div>
401
- </div>
402
-
403
- <span>0</span>
404
- </div>
405
- </div>
406
-
407
-
408
- <div class="progress-tile">
409
- <a href="achievements/category/4325392" class="progress-link">
410
- <span class="portrait-a">
411
-
412
-
413
-
414
-
415
-
416
-
417
- <span class="icon-frame "
418
- style="background: url('/sc2/static/local-common/images/sc2/achievements/2-75.jpg?v42') -150px -525px no-repeat; width: 75px; height: 75px;">
419
-
420
- </span>
421
-
422
- <span class="clear"><!-- --></span>
423
- </span>
424
-
425
- Custom Game
426
- </a>
427
-
428
-
429
-
430
- <div class="achievements-progress">
431
- <div class="progress-wrapper">
432
- <div class="progress-bar" style="width: 0%"></div>
433
- </div>
434
-
435
- <span>0</span>
436
- </div>
437
- </div>
438
-
439
-
440
- <div class="progress-tile">
441
- <a href="achievements/category/4325386" class="progress-link">
442
- <span class="portrait-a">
443
-
444
-
445
-
446
-
447
-
448
-
449
- <span class="icon-frame "
450
- style="background: url('/sc2/static/local-common/images/sc2/achievements/2-75.jpg?v42') -525px -450px no-repeat; width: 75px; height: 75px;">
451
-
452
- </span>
453
-
454
- <span class="clear"><!-- --></span>
455
- </span>
456
-
457
- Cooperative
458
- </a>
459
-
460
-
461
-
462
- <div class="achievements-progress">
463
- <div class="progress-wrapper">
464
- <div class="progress-bar" style="width: 0%"></div>
465
- </div>
466
-
467
- <span>0</span>
468
- </div>
469
- </div>
470
-
471
-
472
- <div class="progress-tile">
473
- <a href="achievements/category/4325378" class="progress-link">
474
- <span class="portrait-a">
475
-
476
-
477
-
478
-
479
-
480
-
481
- <span class="icon-frame "
482
- style="background: url('/sc2/static/local-common/images/sc2/achievements/2-75.jpg?v42') -225px -450px no-repeat; width: 75px; height: 75px;">
483
-
484
- </span>
485
-
486
- <span class="clear"><!-- --></span>
487
- </span>
488
-
489
- Quick Match
490
- </a>
491
-
492
-
493
-
494
- <div class="achievements-progress">
495
- <div class="progress-wrapper">
496
- <div class="progress-bar" style="width: 0%"></div>
497
- </div>
498
-
499
- <span>0</span>
500
- </div>
501
- </div>
502
-
503
- <span class="clear"><!-- --></span>
504
- </div>
505
- </div>
506
-
507
- <div class="module-right">
508
- <div class="module-title">
509
- <h3 class="title-trophy">Showcase</h3>
510
- </div>
511
-
512
- <div class="module-body" id="achievement-showcase">
513
-
514
- <div class="align-center" style="padding: 75px 15px 0 15px">Showcased achievements can be enabled through the Battle.net client.</div>
515
- </div>
516
- </div>
517
-
518
- <span class="clear"><!-- --></span>
519
-
520
- <div class="module-footer">
521
- <a href="achievements/">More Achievements</a>
522
- </div>
523
- </div>
524
- </div>
525
- </div>
526
-
527
- <span class="clear"><!-- --></span>
528
-
529
- </div>
530
-
531
- <span class="clear"><!-- --></span>
532
- </div>
533
- </div>
534
- </div>
535
- </div>
536
- <div id="footer">
537
- <div id="sitemap" class="promotions">
538
- <div class="column">
539
- <h3 class="bnet">
540
- <a href="http://us.battle.net/" tabindex="100">Battle.net Home</a>
541
- </h3>
542
- <ul>
543
- <li><a href="http://us.battle.net/what-is/">What is Battle.net?</a></li>
544
- <li><a href="https://us.battle.net/account/management/get-a-game.html">Buy Games</a></li>
545
- <li><a href="https://us.battle.net/account/management/">Account</a></li>
546
- <li><a href="http://us.battle.net/support/">Support</a></li>
547
- <li><a href="http://us.battle.net/realid/">Real ID</a></li>
548
- <li><a href="http://us.battle.net/battletag/">BattleTag</a></li>
549
- </ul>
550
- </div>
551
- <div class="column">
552
- <h3 class="games">
553
- <a href="http://us.battle.net/" tabindex="100">Games</a>
554
- </h3>
555
- <ul>
556
- <li><a href="http://us.battle.net/sc2/">StarCraft II™</a></li>
557
- <li><a href="http://us.battle.net/wow/">World of Warcraft™</a></li>
558
- <li><a href="http://us.battle.net/d3/">Diablo III™</a></li>
559
- <li><a href="http://us.battle.net/games/classic">Classic Games</a></li>
560
- <li><a href="https://us.battle.net/account/download/">Game Client Downloads</a></li>
561
- </ul>
562
- </div>
563
- <div class="column">
564
- <h3 class="account">
565
- <a href="https://us.battle.net/account/management/" tabindex="100">Account</a>
566
- </h3>
567
- <ul>
568
- <li><a href="https://us.battle.net/account/support/login-support.html">Can’t log in?</a></li>
569
- <li><a href="https://us.battle.net/account/creation/tos.html">Create Account</a></li>
570
- <li><a href="https://us.battle.net/account/management/">Account Summary</a></li>
571
- <li><a href="https://us.battle.net/account/management/authenticator.html">Account Security</a></li>
572
- <li><a href="https://us.battle.net/account/management/add-game.html">Add a Game</a></li>
573
- <li><a href="https://us.battle.net/account/management/redemption/redeem.html">Redeem Promo Codes</a></li>
574
- </ul>
575
- </div>
576
- <div class="column">
577
- <h3 class="support">
578
- <a href="http://us.battle.net/support/" tabindex="100">Support</a>
579
- </h3>
580
- <ul>
581
- <li><a href="http://us.battle.net/support/">Support Articles</a></li>
582
- <li><a href="https://us.battle.net/account/parental-controls/index.html">Parental Controls</a></li>
583
- <li><a href="http://us.battle.net/security/">Protect Your Account</a></li>
584
- <li><a href="http://us.battle.net/security/help">Help! I got hacked!</a></li>
585
- </ul>
586
- </div>
587
- <div id="footer-promotions">
588
- <div class="sidebar-content"></div>
589
- <div id="sidebar-marketing" class="sidebar-module">
590
- <div class="bnet-offer">
591
- <!-- -->
592
- <div class="bnet-offer-bg">
593
- <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);">
594
- <img src="http://us.media2.battle.net/cms/ad_300x100/ZNB918LXVJ251309281567042.jpg" width="300" height="100" alt=""/>
595
- </a>
596
- </div>
597
- <script type="text/javascript">
598
- //<![CDATA[
599
- if(typeof (BnetAds.addEvent) != "undefined" )
600
- BnetAds.addEvent(window, 'load', function(){ BnetAds.trackEvent('5207109', 'SCIIdig', 'sc2'); } );
601
- else
602
- BnetAds.trackEvent('5207109', 'SCIIdig', 'sc2');
603
- //]]>
604
- </script>
605
- </div>
606
- </div>
607
- </div>
608
- <span class="clear"><!-- --></span>
609
- </div>
610
- <div id="copyright">
611
- <a href="javascript:;" tabindex="100" id="change-language">
612
- <span>Americas - English (US)</span>
613
- </a>
614
- <span>©2012 Blizzard Entertainment, Inc. All rights reserved</span>
615
- <a target="_blank" href="http://us.blizzard.com/company/about/termsofuse.html" tabindex="100">Terms of Use</a>
616
- <a target="_blank" href="http://us.blizzard.com/company/legal/" tabindex="100">Legal</a>
617
- <a target="_blank" href="http://us.blizzard.com/company/about/privacy.html" tabindex="100">Privacy Policy</a>
618
- <a target="_blank" href="http://us.blizzard.com/company/about/infringementnotice.html" tabindex="100">Copyright Infringement</a>
619
- </div>
620
- <div id="international"></div>
621
- <div id="legal">
622
- <div id="legal-ratings" class="png-fix">
623
- <a rel="nofollow" class="truste-link" href="//privacy-policy.truste.com/click-with-confidence/ctv/en/us.battle.net/seal_m" target="_blank">
624
- <img class="legal-image" src="//privacy-policy.truste.com/certified-seal/wps/en/us.battle.net/seal_m.png" alt="Validate TRUSTe privacy certification"/>
625
- </a>
626
- <a rel="nofollow" target="_blank" href="http://www.esrb.org/ratings/ratings_guide.jsp">
627
- <img class="legal-image" alt="" src="/sc2/static/local-common/images/legal/us/esrb-teen-sc2.png" />
628
- </a>
629
- </div>
630
- <div id="blizzard" class="png-fix">
631
- <a href="http://blizzard.com" tabindex="100"><img src="/sc2/static/local-common/images/logos/blizz-sc2.png" alt="" /></a>
632
- </div>
633
- <span class="clear"><!-- --></span>
634
- </div>
635
- </div>
636
- <div id="service">
637
- <ul class="service-bar">
638
- <li class="service-cell service-home"><a href="http://us.battle.net/" tabindex="50" accesskey="1" title="Battle.net Home"> </a></li>
639
- <li class="service-cell service-welcome">
640
- <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>
641
- </li>
642
- <li class="service-cell service-account"><a href="https://us.battle.net/account/management/" class="service-link" tabindex="50" accesskey="3">Account</a></li>
643
- <li class="service-cell service-support service-support-enhanced">
644
- <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>
645
- <div class="support-menu" id="support-menu" style="display:none;">
646
- <div class="support-primary">
647
- <ul class="support-nav">
648
- <li>
649
- <a href="http://us.battle.net/support/" tabindex="55" class="support-category">
650
- <strong class="support-caption">Knowledge Center</strong>
651
- Browse our support articles
652
- </a>
653
- </li>
654
- <li>
655
- <a href="https://us.battle.net/support/ticket/status" tabindex="55" class="support-category">
656
- <strong class="support-caption">Your Support Tickets</strong>
657
- View your active tickets (login required).
658
- </a>
659
- </li>
660
- </ul>
661
- <span class="clear"><!-- --></span>
662
- </div>
663
- <div class="support-secondary"></div>
664
- <!--[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>
665
- <script type="text/javascript">
666
- //<![CDATA[
667
- (function(){
668
- var doc = document;
669
- var shim = doc.getElementById('support-shim');
670
- shim.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
671
- shim.style.display = 'block';
672
- })();
673
- //]]>
674
- </script>
675
- <![endif]-->
676
- </div>
677
- </li>
678
- <li class="service-cell service-explore">
679
- <a href="#explore" tabindex="50" accesskey="5" class="dropdown" id="explore-link" onclick="return false" style="cursor: progress" rel="javascript">Explore</a>
680
- <div class="explore-menu" id="explore-menu" style="display:none;">
681
- <div class="explore-primary">
682
- <ul class="explore-nav">
683
- <li>
684
- <a href="http://us.battle.net/" tabindex="55" data-label="Home">
685
- <strong class="explore-caption">Battle.net Home</strong>
686
- Connect. Play. Unite.
687
- </a>
688
- </li>
689
- <li>
690
- <a href="https://us.battle.net/account/management/" tabindex="55" data-label="Account">
691
- <strong class="explore-caption">Account</strong>
692
- Manage your Account
693
- </a>
694
- </li>
695
- <li>
696
- <a href="http://us.battle.net/support/" tabindex="55" data-label="Support">
697
- <strong class="explore-caption">Support</strong>
698
- Get Support and explore the knowledgebase.
699
- </a>
700
- </li>
701
- <li>
702
- <a href="https://us.battle.net/account/management/get-a-game.html" tabindex="55" data-label="Buy Games">
703
- <strong class="explore-caption">Buy Games</strong>
704
- Digital Games for Download
705
- </a>
706
- </li>
707
- </ul>
708
- <div class="explore-links">
709
- <h2 class="explore-caption">More</h2>
710
- <ul>
711
- <li><a href="http://us.battle.net/what-is/" tabindex="55" data-label="More">What is Battle.net?</a></li>
712
- <li><a href="https://us.battle.net/account/parental-controls/index.html" tabindex="55" data-label="More">Parental Controls</a></li>
713
- <li><a href="http://us.battle.net/security/" tabindex="55" data-label="More">Account Security</a></li>
714
- <li><a href="https://us.battle.net/account/management/add-game.html" tabindex="55" data-label="More">Add a Game</a></li>
715
- <li><a href="https://us.battle.net/account/support/password-reset.html" tabindex="55" data-label="More">Can’t log in?</a></li>
716
- <li><a href="https://us.battle.net/account/download/" tabindex="55" data-label="More">Game Client Downloads</a></li>
717
- <li><a href="https://us.battle.net/account/management/redemption/redeem.html" tabindex="55" data-label="More">Redeem Promo Codes</a></li>
718
- <li><a href="http://us.battle.net/games/classic" tabindex="55" data-label="More">Classic Games</a></li>
719
- </ul>
720
- </div>
721
- <span class="clear"><!-- --></span>
722
- <!--[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>
723
- <script type="text/javascript">
724
- //<![CDATA[
725
- (function(){
726
- var doc = document;
727
- var shim = doc.getElementById('explore-shim');
728
- shim.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
729
- shim.style.display = 'block';
730
- })();
731
- //]]>
732
- </script>
733
- <![endif]-->
734
- </div>
735
- <ul class="explore-secondary">
736
- <li class="explore-game explore-game-sc2">
737
- <a href="http://us.battle.net/sc2/" tabindex="55" data-label="Game - sc2">
738
- <span class="explore-game-inner">
739
- <strong class="explore-caption">StarCraft II™</strong>
740
- <span>News &amp; Forums</span> <span>Beginner’s Guide</span> <span>Player Profiles</span>
741
- </span>
742
- </a>
743
- </li>
744
- <li class="explore-game explore-game-wow">
745
- <a href="http://us.battle.net/wow/" tabindex="55" data-label="Game - wow">
746
- <span class="explore-game-inner">
747
- <strong class="explore-caption">World of Warcraft™</strong>
748
- <span>Character Profiles</span> <span>News &amp; Forums</span> <span>Game Guide</span>
749
- </span>
750
- </a>
751
- </li>
752
- <li class="explore-game explore-game-d3">
753
- <a href="http://us.battle.net/d3/" tabindex="55" data-label="Game - d3">
754
- <span class="explore-game-inner">
755
- <strong class="explore-caption">Diablo III™</strong>
756
- <span>Game Guide</span> <span>News</span> <span>Forums</span>
757
- </span>
758
- </a>
759
- </li>
760
- </ul>
761
- </div>
762
- </li>
763
- </ul>
764
- <div id="warnings-wrapper">
765
- <script type="text/javascript">
766
- //<![CDATA[
767
- $(function() {
768
- App.saveCookie('html5Warning');
769
- App.resetCookie('browserWarning');
770
- });
771
- //]]>
772
- </script>
773
- <!--[if lt IE 8]> <div id="browser-warning" class="warning warning-red">
774
- <div class="warning-inner2">
775
- You are using an outdated web browser.<br />
776
- <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>.
777
- <a href="#close" class="warning-close" onclick="App.closeWarning('#browser-warning', 'browserWarning'); return false;"></a>
778
- </div>
779
- </div>
780
- <![endif]-->
781
- <!--[if lt IE 8]> <script type="text/javascript" src="/sc2/static/local-common/js/third-party/CFInstall.min.js?v42"></script>
782
- <script type="text/javascript">
783
- //<![CDATA[
784
- $(function() {
785
- var age = 365 * 24 * 60 * 60 * 1000;
786
- var src = 'https://www.google.com/chromeframe/?hl=en-US';
787
- if ('http:' == document.location.protocol) {
788
- src = 'http://www.google.com/chromeframe/?hl=en-US';
789
- }
790
- document.cookie = "disableGCFCheck=0;path=/;max-age="+age;
791
- $('#chrome-frame-link').bind({
792
- 'click': function() {
793
- App.closeWarning('#browser-warning');
794
- CFInstall.check({
795
- mode: 'overlay',
796
- url: src
797
- });
798
- return false;
799
- }
800
- });
801
- });
802
- //]]>
803
- </script>
804
- <![endif]-->
805
- <noscript>
806
- <div id="javascript-warning" class="warning warning-red">
807
- <div class="warning-inner2">
808
- JavaScript must be enabled to use this site.
809
- </div>
810
- </div>
811
- </noscript>
812
- </div>
813
- </div>
814
- </div><script type="text/javascript" src="/sc2/static/local-common/js/search.js?v42"></script>
815
- <script type="text/javascript">
816
- //<![CDATA[
817
- var xsToken = '';
818
- var supportToken = '';
819
- var Msg = {
820
- support: {
821
- ticketNew: 'Ticket {0} was created.',
822
- ticketStatus: 'Ticket {0}’s status changed to {1}.',
823
- ticketOpen: 'Open',
824
- ticketAnswered: 'Answered',
825
- ticketResolved: 'Resolved',
826
- ticketCanceled: 'Canceled',
827
- ticketArchived: 'Archived',
828
- ticketInfo: 'Need Info',
829
- ticketAll: 'View All Tickets'
830
- },
831
- cms: {
832
- requestError: 'Your request cannot be completed.',
833
- ignoreNot: 'Not ignoring this user',
834
- ignoreAlready: 'Already ignoring this user',
835
- stickyRequested: 'Sticky requested',
836
- stickyHasBeenRequested: 'You have already sent a sticky request for this topic.',
837
- postAdded: 'Post added to tracker',
838
- postRemoved: 'Post removed from tracker',
839
- userAdded: 'User added to tracker',
840
- userRemoved: 'User removed from tracker',
841
- validationError: 'A required field is incomplete',
842
- characterExceed: 'The post body exceeds XXXXXX characters.',
843
- searchFor: "Search for",
844
- searchTags: "Articles tagged:",
845
- characterAjaxError: "You may have become logged out. Please refresh the page and try again.",
846
- ilvl: "Level {0}",
847
- shortQuery: "Search requests must be at least three characters long."
848
- },
849
- bml: {
850
- bold: 'Bold',
851
- italics: 'Italics',
852
- underline: 'Underline',
853
- list: 'Unordered List',
854
- listItem: 'List Item',
855
- quote: 'Quote',
856
- quoteBy: 'Posted by {0}',
857
- unformat: 'Remove Formating',
858
- cleanup: 'Fix Linebreaks',
859
- code: 'Code Blocks',
860
- item: 'WoW Item',
861
- itemPrompt: 'Item ID:',
862
- url: 'URL',
863
- urlPrompt: 'URL Address:'
864
- },
865
- ui: {
866
- submit: 'Submit',
867
- cancel: 'Cancel',
868
- reset: 'Reset',
869
- viewInGallery: 'View in gallery',
870
- loading: 'Loading…',
871
- unexpectedError: 'An error has occurred',
872
- fansiteFind: 'Find this on…',
873
- fansiteFindType: 'Find {0} on…',
874
- fansiteNone: 'No fansites available.'
875
- },
876
- grammar: {
877
- colon: '{0}:',
878
- first: 'First',
879
- last: 'Last'
880
- },
881
- fansite: {
882
- achievement: 'achievement',
883
- character: 'character',
884
- faction: 'faction',
885
- 'class': 'class',
886
- object: 'object',
887
- talentcalc: 'talents',
888
- skill: 'profession',
889
- quest: 'quest',
890
- spell: 'spell',
891
- event: 'event',
892
- title: 'title',
893
- arena: 'arena team',
894
- guild: 'guild',
895
- zone: 'zone',
896
- item: 'item',
897
- race: 'race',
898
- npc: 'NPC',
899
- pet: 'pet'
900
- },
901
- search: {
902
- kb: 'Support',
903
- post: 'Forums',
904
- article: 'Blog Articles',
905
- static: 'General Content',
906
- wowcharacter: 'Characters',
907
- wowitem: 'Items',
908
- wowguild: 'Guilds',
909
- wowarenateam: 'Arena Teams',
910
- url: 'Suggested Links',
911
- other: 'Other'
912
- }
913
- };
914
- //]]>
915
- </script>
916
- <script type="text/javascript">
917
- //<![CDATA[
918
- Core.load("/sc2/static/local-common/js/third-party/jquery-ui-1.8.6.custom.min.js?v42");
919
- Core.load("/sc2/static/local-common/js/login.js?v42", false, function() {
920
- Login.embeddedUrl = 'https://us.battle.net/login/login.frag';
921
- });
922
- //]]>
923
- </script>
924
- <script type="text/javascript" src="/sc2/static/local-common/js/menu.js?v42"></script>
925
- <script type="text/javascript" src="/sc2/static/js/sc2.js?v21"></script>
926
- <!--[if IE 6]> <script type="text/javascript" src="/sc2/static/local-common/js/third-party/DD_belatedPNG.js?v42"></script>
927
- <script type="text/javascript">
928
- //<![CDATA[
929
- DD_belatedPNG.fix('.icon');
930
- //]]>
931
- </script>
932
- <![endif]-->
933
- <script type="text/javascript">
934
- //<![CDATA[
935
- $(function(){
936
- Menu.initialize('/data/menu.json?v42');
937
- Search.initialize('/sc2/en/search/ta');
938
- Tooltip.options.useTable = true;
939
- });
940
- //]]>
941
- </script>
942
- <!--[if lt IE 8]> <script type="text/javascript" src="/sc2/static/local-common/js/third-party/jquery.pngFix.pack.js?v42"></script>
943
- <script type="text/javascript">
944
- //<![CDATA[
945
- $('.png-fix').pngFix(); //]]>
946
- </script>
947
- <![endif]-->
948
- <script type="text/javascript">
949
- //<![CDATA[
950
- (function() {
951
- var ga = document.createElement('script');
952
- var src = "https://ssl.google-analytics.com/ga.js";
953
- if ('http:' == document.location.protocol) {
954
- src = "http://www.google-analytics.com/ga.js";
955
- }
956
- ga.type = 'text/javascript';
957
- ga.setAttribute('async', 'true');
958
- ga.src = src;
959
- var s = document.getElementsByTagName('script');
960
- s = s[s.length-1];
961
- s.parentNode.insertBefore(ga, s.nextSibling);
962
- })();
963
- //]]>
964
- </script>
965
- </body>
966
- </html>
967
-