govkit-ca 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +4 -0
  3. data/README.md +1 -1
  4. data/govkit-ca.gemspec +4 -2
  5. data/lib/gov_kit-ca/postal_code/strategy/cbc_ca.rb +1 -1
  6. data/lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb +3 -4
  7. data/lib/gov_kit-ca/postal_code/strategy/elections_ca.rb +4 -6
  8. data/lib/gov_kit-ca/postal_code/strategy/liberal_ca.rb +0 -1
  9. data/lib/gov_kit-ca/postal_code/strategy/parl_gc_ca.rb +5 -1
  10. data/lib/gov_kit-ca/postal_code.rb +19 -7
  11. data/lib/gov_kit-ca/represent.rb +108 -0
  12. data/lib/gov_kit-ca/version.rb +1 -1
  13. data/lib/gov_kit-ca.rb +2 -1
  14. data/spec/cbc_ca_spec.rb +14 -25
  15. data/spec/conservative_ca_spec.rb +1 -10
  16. data/spec/digital-copyright_ca_spec.rb +0 -9
  17. data/spec/elections_ca_spec.rb +0 -9
  18. data/spec/greenparty_ca_spec.rb +0 -9
  19. data/spec/liberal_ca_spec.rb +1 -10
  20. data/spec/ndp_ca_spec.rb +0 -9
  21. data/spec/parl_gc_ca_spec.rb +8 -0
  22. data/spec/postal_code_spec.rb +69 -87
  23. data/spec/represent_spec.rb +279 -0
  24. data/spec/spec_helper.rb +1 -4
  25. data/spec/strategy_set_spec.rb +55 -2
  26. data/tasks/tasks.rb +0 -28
  27. metadata +47 -133
  28. data/spec/fixtures/cbc_ca/A1A1A1.response +0 -11
  29. data/spec/fixtures/cbc_ca/G0C2Y0.response +0 -11
  30. data/spec/fixtures/cbc_ca/H0H0H0.response +0 -11
  31. data/spec/fixtures/cbc_ca/K0A1K0.response +0 -11
  32. data/spec/fixtures/cbc_ca/T5S2B9.response +0 -11
  33. data/spec/fixtures/cbc_ca/X1B1B1.response +0 -11
  34. data/spec/fixtures/conservative_ca/A1A1A1.response +0 -452
  35. data/spec/fixtures/conservative_ca/G0C2Y0.response +0 -452
  36. data/spec/fixtures/conservative_ca/H0H0H0.response +0 -452
  37. data/spec/fixtures/conservative_ca/K0A1K0.response +0 -455
  38. data/spec/fixtures/conservative_ca/T5S2B9.response +0 -453
  39. data/spec/fixtures/conservative_ca/X1B1B1.response +0 -452
  40. data/spec/fixtures/digital-copyright_ca/A1A1A1.response +0 -227
  41. data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +0 -229
  42. data/spec/fixtures/digital-copyright_ca/H0H0H0.response +0 -243
  43. data/spec/fixtures/digital-copyright_ca/K0A1K0.response +0 -230
  44. data/spec/fixtures/digital-copyright_ca/T5S2B9.response +0 -233
  45. data/spec/fixtures/digital-copyright_ca/X1B1B1.response +0 -243
  46. data/spec/fixtures/elections_ca/A1A1A1.response +0 -10
  47. data/spec/fixtures/elections_ca/G0C2Y0.response +0 -11
  48. data/spec/fixtures/elections_ca/H0H0H0.response +0 -10
  49. data/spec/fixtures/elections_ca/K0A1K0.response +0 -10
  50. data/spec/fixtures/elections_ca/T5S2B9.response +0 -10
  51. data/spec/fixtures/elections_ca/X1B1B1.response +0 -10
  52. data/spec/fixtures/greenparty_ca/A1A1A1.response +0 -13
  53. data/spec/fixtures/greenparty_ca/G0C2Y0.response +0 -13
  54. data/spec/fixtures/greenparty_ca/H0H0H0.response +0 -13
  55. data/spec/fixtures/greenparty_ca/K0A1K0.response +0 -13
  56. data/spec/fixtures/greenparty_ca/T5S2B9.response +0 -13
  57. data/spec/fixtures/greenparty_ca/X1B1B1.response +0 -13
  58. data/spec/fixtures/liberal_ca/A1A1A1.response +0 -702
  59. data/spec/fixtures/liberal_ca/G0C2Y0.response +0 -570
  60. data/spec/fixtures/liberal_ca/H0H0H0.response +0 -649
  61. data/spec/fixtures/liberal_ca/K0A1K0.response +0 -650
  62. data/spec/fixtures/liberal_ca/T5S2B9.response +0 -570
  63. data/spec/fixtures/liberal_ca/X1B1B1.response +0 -649
  64. data/spec/fixtures/ndp_ca/A1A1A1.response +0 -610
  65. data/spec/fixtures/ndp_ca/G0C2Y0.response +0 -610
  66. data/spec/fixtures/ndp_ca/H0H0H0.response +0 -593
  67. data/spec/fixtures/ndp_ca/K0A1K0.response +0 -641
  68. data/spec/fixtures/ndp_ca/T5S2B9.response +0 -605
  69. data/spec/fixtures/ndp_ca/X1B1B1.response +0 -593
@@ -1,593 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Date: Tue, 05 Mar 2013 03:51:51 GMT
3
- Server: Apache/2.2.3 (CentOS)
4
- X-Powered-By: PHP/5.3.10, PleskLin
5
- Expires: Sun, 19 Nov 1978 05:00:00 GMT
6
- Last-Modified: Tue, 05 Mar 2013 03:51:51 +0000
7
- Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
8
- Etag: "1362455511"
9
- Content-Language: en
10
- Link: <http://www.ndp.ca/node/9700>; rel="shortlink",<http://www.ndp.ca/your-riding>; rel="canonical"
11
- X-Generator: Drupal 7 (http://drupal.org)
12
- Set-Cookie: shields:logged-in=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=www.ndp.ca
13
- Connection: close
14
- Transfer-Encoding: chunked
15
- Content-Type: text/html; charset=utf-8
16
-
17
- <!DOCTYPE html>
18
- <html lang="en">
19
- <head>
20
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
21
- <link rel="shortcut icon" href="http://www.ndp.ca/sites/all/themes/tom2012/imgs/favicon.ico" type="image/vnd.microsoft.icon" />
22
- <link rel="shortlink" href="http://www.ndp.ca/node/9700" />
23
- <link rel="canonical" href="http://www.ndp.ca/your-riding" />
24
- <meta name="Generator" content="Drupal 7 (http://drupal.org)" />
25
- <title>Your Riding | Canada&#039;s NDP / NPD du Canada</title>
26
- <!--[if lt IE 7]>
27
- <script>window.location = (window.location+"").replace("http://www.","http://lite.");</script>
28
- <![endif]-->
29
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css__9zsakYbWSOTLroLLtWO9P7zLJXhXtSJo2OgXN4wIrU.css" media="all" />
30
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_hFC-VOe0wdKw2fEoLiDmBwN2H2GfvZABVolycsXSAMw.css" media="all" />
31
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_bYxVGgWE7bYgKhbXEpAc8jA2Q6Uyb7G-1zs03PwEfBY.css" media="all" />
32
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_yssam9B3GHMU6Ht8jDumsUwnh0F5A9Tt5ZG9uHZlziY.css" media="all" />
33
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_TCvcUjHilIyZ_ctJGkOsMzJHZXiUC1vkjGXuCr7tUBM.css" media="screen and (max-width: 657px)" />
34
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_Q9hq-mID6g8pTo5KHiH5yXFBEgjVKiYhgl3WBlVePOY.css" media="screen and (min-width: 658px)" />
35
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_-Ga8h1RYZw8-4JOqb6atB6nv6kQ30vJyZ0y0Tbd1ut8.css" media="screen and (min-width: 974px)" />
36
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_Pg9fU5tPfs4byk05dl9jAKEdB_9d9x0jwO6t1Gr_kTc.css" media="screen and (min-width: 1136px)" />
37
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_iOYzWhRAGtwsQIcnghr3Bw8k9PhNOMoxxvSbL7cxTAc.css" media="screen and (min-width: 1390px) and (max-aspect-ratio: 5/3)" />
38
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_8DaXZm41v90V_BK6oEA21bchaUJTUIdKF6YbLAZK1es.css" media="screen and (min-width: 1390px) and (min-aspect-ratio: 5/3)" />
39
- <link type="text/css" rel="stylesheet" href="http://www.ndp.ca/sites/default/files/css/css_KVl6OArlsFTcbavhG3tU-405-lVCIW62cF7bsRoDKgs.css" media="screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min--moz-device-pixel-ratio: 1.5), screen and (-o-min-device-pixel-ratio: 1.5/1), screen and (min-device-pixel-ratio: 1.5)" />
40
- <script type="text/javascript" src="http://www.ndp.ca/misc/jquery.js?v=1.4.4"></script>
41
- <script type="text/javascript" src="http://www.ndp.ca/misc/jquery.once.js?v=1.2"></script>
42
- <script type="text/javascript" src="http://www.ndp.ca/misc/drupal.js?mihb0q"></script>
43
- <script type="text/javascript" src="http://www.ndp.ca/sites/all/modules/tricks/js_new_window/js/js-new-window.js?mihb0q"></script>
44
- <script type="text/javascript" src="http://www.ndp.ca/sites/all/modules/tricks/js_save_key/js/js-save-key.js?mihb0q"></script>
45
- <script type="text/javascript" src="http://www.ndp.ca/sites/all/modules/tricks/livevalidation/js/validation.js?mihb0q"></script>
46
- <script type="text/javascript" src="http://www.ndp.ca/sites/all/modules/treats/your_riding_page/js/your-riding-page.js?mihb0q"></script>
47
- <script type="text/javascript">
48
- <!--//--><![CDATA[//><!--
49
- jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"tom2012","theme_token":"lcK2hab4s6GYHarIjx9TfCKIhce2x4fgz4tJaBvb6Ng","js":{"misc\/jquery.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/tricks\/js_new_window\/js\/js-new-window.js":1,"sites\/all\/modules\/tricks\/js_save_key\/js\/js-save-key.js":1,"sites\/all\/modules\/tricks\/livevalidation\/js\/validation.js":1,"sites\/all\/modules\/treats\/your_riding_page\/js\/your-riding-page.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"sites\/all\/modules\/downloaded\/date\/date_api\/date.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/downloaded\/views\/css\/views.css":1,"sites\/all\/modules\/downloaded\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/treats\/health_nav\/css\/health-nav.css":1,"sites\/all\/modules\/treats\/tbc_nav\/css\/tbc-nav.css":1,"sites\/all\/modules\/treats\/your_riding_page\/css\/your-riding-page.css":1,"sites\/all\/modules\/treats\/share_links\/css\/share_links.css":1,"sites\/all\/themes\/tom2012\/layout-core.css":1,"sites\/all\/themes\/tom2012\/layout-mobile.css":1,"sites\/all\/themes\/tom2012\/layout-desktop.css":1,"sites\/all\/themes\/tom2012\/layout-desktop-wide.css":1,"sites\/all\/themes\/tom2012\/layout-desktop-wide-offset.css":1,"sites\/all\/themes\/tom2012\/layout-desktop-wide-limit-width.css":1,"sites\/all\/themes\/tom2012\/layout-desktop-wide-limit-height.css":1,"sites\/all\/themes\/tom2012\/layout-highres.css":1}}});
50
- //--><!]]>
51
- </script>
52
-
53
- <!-- http://t.co/dKP3o1e -->
54
- <meta name="HandheldFriendly" content="True">
55
- <meta name="MobileOptimized" content="320">
56
- <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1.0">
57
- <meta name="format-detection" content="telephone=no">
58
- <meta name="title" content="Your Riding" />
59
- <meta name="description" content="Find your MP or riding association with the NDP’s easy-to-use interactive map." />
60
- <meta name="keywords" content="Thomas Mulcair Canada's New Democrats." />
61
- <link rel="image_src" href="http://www.ndp.ca/sites/all/modules/treats/share_links/images/fb-bilingual-thumb.jpg" />
62
- <meta property="og:image" content="http://www.ndp.ca/sites/all/modules/treats/share_links/images/fb-bilingual-thumb.jpg" />
63
- <meta property="og:url" content="http://www.ndp.ca/your-riding" />
64
- <meta property="og:title" content="Your Riding" />
65
- <meta property="og:description" content="Find your MP or riding association with the NDP’s easy-to-use interactive map." />
66
- <meta property="og:locale" content="en_US" />
67
- <meta name="tweet" content="Find your MP or riding association with the NDP’s easy-to-use interactive map. #NDP http://ndp.ca/your-riding" />
68
- <!--[if IE]>
69
- <link rel="stylesheet" type="text/css" href="../sites/all/themes/tom2012/layout-ie-only.css" />
70
- <![endif]-->
71
- <!--[if IE 6]>
72
- <link rel="stylesheet" type="text/css" href="../sites/all/themes/tom2012/layout-ie6-only.css" />
73
- <![endif]-->
74
- <script type="text/javascript" src="/sites/all/themes/tom2012/scripts/respond.min.js"></script>
75
- <script type="text/javascript" src="/sites/all/themes/tom2012/scripts/syze.min.js"></script>
76
- <script type="text/javascript" src="/sites/all/themes/tom2012/scripts/tinynav.min.js"></script>
77
- <script type="text/javascript" src="/sites/all/themes/tom2012/scripts/cssua.min.js"></script>
78
- <script type="text/javascript" src="/sites/all/themes/tom2012/scripts/pixelratio.js"></script>
79
- <script type="text/javascript">
80
- // Some browsers subtract scrollbar width when calculating viewport size
81
- // This causes Syze dependent CSS to trigger at a different width than media query dependent CSS
82
- // We address this on a per-browser basis below
83
- if (jQuery('html').hasClass('ua-ie-9')) { // scrollbar width = 17px
84
- syze.sizes(303, 641, 957).names({ 303:'Mobile', 641:'Desktop', 957:'Desktop-wide' });
85
- } else if (jQuery('html').hasClass('ua-firefox')) { // scrollbar width = 15px
86
- syze.sizes(305, 643, 959).names({ 305:'Mobile', 643:'Desktop', 959:'Desktop-wide' });
87
- } else {
88
- syze.sizes(320, 658, 974).names({ 320:'Mobile', 658:'Desktop', 974:'Desktop-wide' });
89
- }
90
- </script>
91
-
92
- <script type="text/javascript">
93
-
94
- var _gaq = _gaq || [];
95
- _gaq.push(['_setAccount', 'UA-30109525-1']); // Entire Webserver Tracking
96
- _gaq.push(['_setDomainName', 'none']);
97
- _gaq.push(['_setAllowLinker', true]);
98
- _gaq.push(['_trackPageview']);
99
-
100
- (function() {
101
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
102
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
103
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
104
- })();
105
-
106
- </script><script type="text/javascript">
107
- var _gaq = _gaq || [];
108
- _gaq.push(['_setAccount', 'UA-10510140-3']); // NDP Main Site Tracking
109
- _gaq.push(['_setDomainName', 'ndp.ca']);
110
- _gaq.push(['_setAllowLinker', true]);
111
- _gaq.push(['_trackPageview']);
112
-
113
- (function() {
114
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
115
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
116
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
117
- })();
118
- </script>
119
-
120
- </head>
121
- <body class="html not-front not-logged-in no-sidebars page-node page-node- page-node-9700 node-type-page i18n-en theme-hide-sidebar -html-tpl isEnglish" >
122
- <div id="skip-link">
123
- <a href="#main-content" class="element-invisible element-focusable">Skip to main content</a>
124
- </div>
125
- <div id="page-wrapper" class="-page-tpl"><div id="page">
126
-
127
- <div id="nav" class="-region--navbar-tpl clearfix hideNav">
128
-
129
-
130
- <ul class="clearfix">
131
- <li class="menu-Home">
132
- <a class="gradient" href="http://www.ndp.ca/">Home</a>
133
-
134
- </li>
135
- <li class="menu-Tom Mulcair">
136
- <a class="gradient" href="http://www.ndp.ca/tommulcair">Tom Mulcair</a>
137
-
138
- </li>
139
- <li class="menu-Party">
140
- <a class="gradient" href="http://www.ndp.ca/your-riding">Party</a>
141
- <ul class="submenu">
142
- <li><a class="" href="http://www.ndp.ca/history"><span class="nav-arrow">&#9658;</span> History</a></li>
143
- <li><a class="" href="http://www.ndp.ca/ourcaucus"><span class="nav-arrow">&#9658;</span> Our Caucus</a></li>
144
- <li><a class="" href="http://www.ndp.ca/shadow-cabinet"><span class="nav-arrow">&#9658;</span> Shadow Cabinet</a></li>
145
- <li><a class="" href="http://www.ndp.ca/commissions"><span class="nav-arrow">&#9658;</span> Commissions</a></li>
146
- <li><a class="" href="http://www.ndp.ca/constitution"><span class="nav-arrow">&#9658;</span> Constitution</a></li>
147
- <li><a class="" href="http://www.ndp.ca/policy-book"><span class="nav-arrow">&#9658;</span> Policy Book</a></li>
148
- <li><a class="" href="http://www.ndp.ca/federal-council"><span class="nav-arrow">&#9658;</span> Federal Council</a></li>
149
- <li><a class="" href="http://www.ndp.ca/jobs"><span class="nav-arrow">&#9658;</span> Jobs</a></li>
150
- <li><a class="" href="http://www.ndp.ca/contact"><span class="nav-arrow">&#9658;</span> Contact</a></li>
151
- <li><a class="" href="http://www.ndp.ca/your-riding"><span class="nav-arrow">&#9658;</span> Your Riding</a></li>
152
- <li><a class="js-new-window" href="http://qc.ndp.ca"><span class="nav-arrow">&#9658;</span> NDP Quebec</a></li>
153
- <li><a class="js-new-window" href="http://montreal2013.ndp.ca"><span class="nav-arrow">&#9658;</span> NDP Convention</a></li>
154
- </ul>
155
-
156
- </li>
157
- <li class="menu-News">
158
- <a class="gradient" href="http://www.ndp.ca/news/recent/">News</a>
159
- <ul class="submenu">
160
- <li><a class="" href="http://www.ndp.ca/news/recent/press-release"><span class="nav-arrow">&#9658;</span> Press Releases</a></li>
161
- <li><a class="" href="http://www.ndp.ca/news/recent/statement"><span class="nav-arrow">&#9658;</span> Statements</a></li>
162
- <li><a class="" href="http://www.ndp.ca/news/recent/reality-check"><span class="nav-arrow">&#9658;</span> Reality Checks</a></li>
163
- </ul>
164
-
165
- </li>
166
- <li class="menu-Photos and Video">
167
- <a class="gradient" href="http://www.ndp.ca/videos">Photos and Video</a>
168
- <ul class="submenu">
169
- <li><a class="" href="http://www.ndp.ca/videos"><span class="nav-arrow">&#9658;</span> Video Gallery</a></li>
170
- <li><a class="" href="http://www.ndp.ca/photos"><span class="nav-arrow">&#9658;</span> Photo Gallery</a></li>
171
- <li><a class="" href="http://www.ndp.ca/logos"><span class="nav-arrow">&#9658;</span> Logos</a></li>
172
- </ul>
173
-
174
- </li>
175
- <li class="menu-Take Action">
176
- <a class="gradient" href="http://www.ndp.ca/join">Take Action</a>
177
- <ul class="submenu">
178
- <li><a class="" href="http://www.ndp.ca/join"><span class="nav-arrow">&#9658;</span> Join</a></li>
179
- <li><a class="" href="http://www.ndp.ca/donate"><span class="nav-arrow">&#9658;</span> Donate</a></li>
180
- <li><a class="" href="http://www.ndp.ca/volunteer"><span class="nav-arrow">&#9658;</span> Volunteer</a></li>
181
- <li><a class="" href="http://www.ndp.ca/endp-subscribe"><span class="nav-arrow">&#9658;</span> Get Email Updates</a></li>
182
- <li><a class="" href="http://www.ndp.ca/online-tools"><span class="nav-arrow">&#9658;</span> Online Tools</a></li>
183
- <li><a class="" href="http://www.ndp.ca/app"><span class="nav-arrow">&#9658;</span> Download the NDP App</a></li>
184
- </ul>
185
-
186
- </li>
187
- <li class="menu-donate">
188
- <a href="http://www.ndp.ca/donate" class="gradient">Donate</a>
189
- <a href="http://www.ndp.ca/donate" class="donate-tip"></a>
190
- </li>
191
- </ul>
192
-
193
- </div>
194
- <div id="take-action-top" class="clearfix">
195
- <div class="-region--takeaction-tpl clearfix">
196
-
197
- <ul class="clearfix">
198
- <li class="clearfix">
199
- <a href="#x" class="take-action-tip" tabindex="1"></a>
200
- <a href="#x" class="button-open gradient" tabindex="1">Take Action</a>
201
- <img src="/sites/all/themes/tom2012/imgs/blank.gif" class="button-close " />
202
- <div class="submenu-wrapper clearfix">
203
- <a class="submenu-close-top" href="">&nbsp;</a>
204
- <ul class="submenu clearfix">
205
- <li>
206
- <div class="icon-box-wrapper">
207
- <div class="icon-box clearfix">
208
- <div class="icon-box-content high-res">
209
- <a href="http://www.ndp.ca/donate" class="donate">&nbsp;</a>
210
- </div>
211
- </div>
212
- <a class="link" href="http://www.ndp.ca/donate">Donate</a>
213
- </div>
214
- </li>
215
- <li>
216
- <div class="icon-box-wrapper">
217
- <div class="icon-box clearfix">
218
- <div class="icon-box-content high-res">
219
- <a href="http://www.ndp.ca/join" class="join">&nbsp;</a>
220
- </div>
221
- </div>
222
- <a class="link" href="http://www.ndp.ca/join">Join</a>
223
- </div>
224
- </li>
225
- <li>
226
- <div class="icon-box-wrapper">
227
- <div class="icon-box clearfix">
228
- <div class="icon-box-content high-res">
229
- <a href="http://www.ndp.ca/volunteer" class="volunteer">&nbsp;</a>
230
- </div>
231
- </div>
232
- <a class="link" href="http://www.ndp.ca/volunteer">Volunteer</a>
233
- </div>
234
- </li>
235
- <li>
236
- <div class="icon-box-wrapper">
237
- <div class="icon-box clearfix">
238
- <div class="icon-box-content high-res">
239
- <a href="http://www.ndp.ca/endp-subscribe" class="get-email-updates">&nbsp;</a>
240
- </div>
241
- </div>
242
- <a class="link" href="http://www.ndp.ca/endp-subscribe">Get email updates</a>
243
- </div>
244
- </li>
245
- <li>
246
- <div class="icon-box-wrapper">
247
- <div class="icon-box clearfix">
248
- <div class="icon-box-content high-res">
249
- <a href="http://www.ndp.ca/app" class="download-app">&nbsp;</a>
250
- </div>
251
- </div>
252
- <a class="link" href="http://www.ndp.ca/app">Download the NDP app</a>
253
- </div>
254
- </li>
255
- <li class="social">
256
- <ul class="clearfix">
257
- <li><a href="http://www.facebook.com/pages/Canadas-New-Democrats-Le-NPD-du-Canada/190502667652613" class="facebook js-new-window hide-text">Facebook</a></li>
258
- <li><a href="https://twitter.com/#!/ThomasMulcair" class="twitter js-new-window hide-text">Twitter</a></li>
259
- <li><a href="http://www.ndp.ca/rss.xml" class="rss js-new-window hide-text">RSS</a></li>
260
- <li><a href="http://www.youtube.com/user/NDPCanada" class="youtube js-new-window hide-text">YouTube</a></li>
261
- <li><a href="http://www.flickr.com/photos/ndpcanada" class="flickr js-new-window hide-text">Flickr</a></li>
262
- <li><a href="http://itunes.apple.com/ca/app/ndp/id426043239" class="appstore js-new-window hide-text">App Store</a></li>
263
- </ul>
264
- </li>
265
- </ul>
266
- <a class="submenu-close-bottom" href="">&nbsp;</a>
267
- </div>
268
- </li>
269
- <li class="social-mobile">
270
- <ul class="clearfix">
271
- <li><a href="http://www.facebook.com/pages/Canadas-New-Democrats-Le-NPD-du-Canada/190502667652613" class="facebook js-new-window hide-text">Facebook</a></li>
272
- <li><a href="https://twitter.com/#!/ThomasMulcair" class="twitter js-new-window hide-text">Twitter</a></li>
273
- <li><a href="http://www.ndp.ca/rss.xml" class="rss js-new-window hide-text">RSS</a></li>
274
- <li><a href="http://www.youtube.com/user/NDPCanada" class="youtube js-new-window hide-text">YouTube</a></li>
275
- <li><a href="http://www.flickr.com/photos/ndpcanada" class="flickr js-new-window hide-text">Flickr</a></li>
276
- <li><a href="http://itunes.apple.com/ca/app/ndp/id426043239" class="appstore js-new-window hide-text">App Store</a></li>
277
- </ul>
278
- </li>
279
- </ul>
280
- </div>
281
- </div>
282
- <div id="wrapper" class="clearfix showContent">
283
- <div class="-region--header-tpl clearfix">
284
-
285
- <div id="header" class="clearfix">
286
- <div id="super-nav" class="clearfix">
287
- <ul id="nav-toggle">
288
- <li><a href="#">Menu</a></li>
289
- </ul>
290
- <ul id="donate-mobile" class="clearfix">
291
- <li class="menu-donate">
292
- <a href="http://www.ndp.ca/donate" class="gradient">Donate</a>
293
- <a href="#" class="donate-tip"></a>
294
- </li>
295
- </ul>
296
- <a class="ndp-logo high-res" href="#">NDP</a>
297
- <div id="lang">
298
- <a href="http://www.npd.ca/votre-circonscription">Français</a>
299
- </div>
300
- <div id="contact">
301
- <a href="http://www.ndp.ca/contact">Contact</a>
302
- </div>
303
- </div>
304
- </div>
305
-
306
- </div>
307
- <div id="banner">
308
- <div id="banner-content">
309
- <h1 class="title" id="page-title">Your Riding</h1> </div>
310
- <div id="lang-small"><a href="http://www.npd.ca/votre-circonscription">Français</a></div>
311
- </div>
312
- <div id="main-wrapper">
313
- <div id="main" class="clearfix">
314
- <div class="tabs clearfix"></div> <div id="main-content" class="clearfix">
315
- <div class="region region-content -region-tpl">
316
- <div id="block-system-main" class="block block-system -block-tpl">
317
-
318
-
319
- <div >
320
- <div id="node-9700" class="node node-page -node--page-tpl clearfix">
321
-
322
-
323
- <div class="theme-function">
324
- <div class="your-riding-page js-your-riding-page -your-riding-page-tpl">
325
-
326
- <div class="riding-search clearfix">
327
- <form id="riding-serach-form" action="/your-riding/">
328
- <h2>Find your MP or riding association by name, riding, or postal code</h2>
329
- <input type="text" name="search" class="search-field" value="X1B1B1" />
330
- <input type="submit" value="Search" class="js-hide" />
331
- <a class="search-button js-show" href="http://www.ndp.ca/" onclick="jQuery('#riding-serach-form').submit(); return false;">Search</a>
332
- </form>
333
- </div>
334
-
335
-
336
-
337
- <div class="clearfix" style="padding:40px 25px 20px 25px;xborder:1px solid #eee;background:#fff8cc;">
338
- <h2>No ridings or MPs match this search.</h2>
339
- <p>Please check your spelling and try again or try searching by your postal code.</p>
340
- </div>
341
-
342
- <div class="province-list clearfix">
343
- <h2>Provinces and territories</h2>
344
- <div class="province-column column1">
345
- <a href="/your-riding/?search=ab">Alberta</a><br/>
346
- <a href="/your-riding/?search=bc">British Columbia</a><br/>
347
- <a href="/your-riding/?search=mb">Manitoba</a><br/>
348
- </div>
349
- <div class="province-column column2">
350
- <a href="/your-riding/?search=nb">New Brunswick</a><br/>
351
- <a href="/your-riding/?search=nl">Newfoundland and Labrador</a><br/>
352
- <a href="/your-riding/?search=ns">Nova Scotia</a><br/>
353
- <a href="/your-riding/?search=nu">Nunavut</a><br/>
354
- </div>
355
- <div class="province-column column3">
356
- <a href="/your-riding/?search=on">Ontario</a><br/>
357
- <a href="/your-riding/?search=pe">Prince Edward Island</a><br/>
358
- <a href="/your-riding/?search=qc">Quebec</a><br/>
359
- </div>
360
- <div class="province-column column4">
361
- <a href="/your-riding/?search=sk">Saskatchewan</a><br/>
362
- <a href="/your-riding/?search=nt">Northwest Territories</a><br/>
363
- <a href="/your-riding/?search=yt">Yukon</a>
364
- </div>
365
- </div>
366
-
367
- </div>
368
-
369
- </div><!-- .theme-function -->
370
-
371
- </div>
372
- </div>
373
- </div>
374
- </div>
375
- <div class="share-links-wrapper clearfix">
376
-
377
- <div class="share-links">
378
- <div class="share-links-prefix">Share<br />this page</div>
379
- <a href="/share_links/shortlink_tweet?text=Find+your+MP+or+riding+association+with+the+NDP%E2%80%99s+easy-to-use+interactive+map.+%23NDP&amp;share_url=http%3A%2F%2Fndp.ca%2Fyour-riding" class="share-links-twitter js-new-window"></a>
380
- <a href="https://facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.ndp.ca%2Fyour-riding" class="share-links-facebook js-new-window"></a>
381
- <a href="https://plus.google.com/share?url=http%3A%2F%2Fwww.ndp.ca%2Fyour-riding" class="share-links-google js-new-window"></a>
382
- <a href="http://sharebyemail.ndp.ca/?url=http%3A%2F%2Fwww.ndp.ca%2Fyour-riding" class="share-links-email js-new-window"></a>
383
- </div>
384
- <div class="like-links">
385
- <!-- google +1 -->
386
- <!-- Place this tag where you want the +1 button to render. -->
387
- <div class="like-links-gp">
388
- <div class="g-plusone" data-size="medium" data-href="http%3A%2F%2Fwww.ndp.ca%2Fyour-riding"></div>
389
- </div>
390
- <!-- facebook like -->
391
- <div class="like-links-fb">
392
- <div class="fb-like" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" data-href="http%3A%2F%2Fwww.ndp.ca%2Fyour-riding"></div>
393
- </div>
394
- </div>
395
- </div>
396
-
397
- <!-- facebook like -->
398
- <div id="fb-root"></div>
399
- <script>(function(d, s, id) {
400
- var js, fjs = d.getElementsByTagName(s)[0];
401
- if (d.getElementById(id)) return;
402
- js = d.createElement(s); js.id = id;
403
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
404
- fjs.parentNode.insertBefore(js, fjs);
405
- }(document, 'script', 'facebook-jssdk'));</script>
406
-
407
- <!-- Place this tag after the last +1 button tag. -->
408
- <script type="text/javascript">
409
- (function() {
410
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
411
- po.src = 'https://apis.google.com/js/plusone.js';
412
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
413
- })();
414
- </script>
415
- </div>
416
- </div>
417
- </div>
418
- </div>
419
- <div id="footer" class="clearfix">
420
- <div id="super-footer" class="gradient">
421
- <div id="super-footer-content" class="clearfix">
422
- <div id="take-action-bottom">
423
- <div class="-region--takeaction-tpl clearfix">
424
-
425
- <ul class="clearfix">
426
- <li class="clearfix">
427
- <a href="#x" class="take-action-tip" tabindex="1"></a>
428
- <a href="#x" class="button-open gradient" tabindex="1">Take Action</a>
429
- <img src="/sites/all/themes/tom2012/imgs/blank.gif" class="button-close " />
430
- <div class="submenu-wrapper clearfix">
431
- <a class="submenu-close-top" href="">&nbsp;</a>
432
- <ul class="submenu clearfix">
433
- <li>
434
- <div class="icon-box-wrapper">
435
- <div class="icon-box clearfix">
436
- <div class="icon-box-content high-res">
437
- <a href="http://www.ndp.ca/donate" class="donate">&nbsp;</a>
438
- </div>
439
- </div>
440
- <a class="link" href="http://www.ndp.ca/donate">Donate</a>
441
- </div>
442
- </li>
443
- <li>
444
- <div class="icon-box-wrapper">
445
- <div class="icon-box clearfix">
446
- <div class="icon-box-content high-res">
447
- <a href="http://www.ndp.ca/join" class="join">&nbsp;</a>
448
- </div>
449
- </div>
450
- <a class="link" href="http://www.ndp.ca/join">Join</a>
451
- </div>
452
- </li>
453
- <li>
454
- <div class="icon-box-wrapper">
455
- <div class="icon-box clearfix">
456
- <div class="icon-box-content high-res">
457
- <a href="http://www.ndp.ca/volunteer" class="volunteer">&nbsp;</a>
458
- </div>
459
- </div>
460
- <a class="link" href="http://www.ndp.ca/volunteer">Volunteer</a>
461
- </div>
462
- </li>
463
- <li>
464
- <div class="icon-box-wrapper">
465
- <div class="icon-box clearfix">
466
- <div class="icon-box-content high-res">
467
- <a href="http://www.ndp.ca/endp-subscribe" class="get-email-updates">&nbsp;</a>
468
- </div>
469
- </div>
470
- <a class="link" href="http://www.ndp.ca/endp-subscribe">Get email updates</a>
471
- </div>
472
- </li>
473
- <li>
474
- <div class="icon-box-wrapper">
475
- <div class="icon-box clearfix">
476
- <div class="icon-box-content high-res">
477
- <a href="http://www.ndp.ca/app" class="download-app">&nbsp;</a>
478
- </div>
479
- </div>
480
- <a class="link" href="http://www.ndp.ca/app">Download the NDP app</a>
481
- </div>
482
- </li>
483
- <li class="social">
484
- <ul class="clearfix">
485
- <li><a href="http://www.facebook.com/pages/Canadas-New-Democrats-Le-NPD-du-Canada/190502667652613" class="facebook js-new-window hide-text">Facebook</a></li>
486
- <li><a href="https://twitter.com/#!/ThomasMulcair" class="twitter js-new-window hide-text">Twitter</a></li>
487
- <li><a href="http://www.ndp.ca/rss.xml" class="rss js-new-window hide-text">RSS</a></li>
488
- <li><a href="http://www.youtube.com/user/NDPCanada" class="youtube js-new-window hide-text">YouTube</a></li>
489
- <li><a href="http://www.flickr.com/photos/ndpcanada" class="flickr js-new-window hide-text">Flickr</a></li>
490
- <li><a href="http://itunes.apple.com/ca/app/ndp/id426043239" class="appstore js-new-window hide-text">App Store</a></li>
491
- </ul>
492
- </li>
493
- </ul>
494
- <a class="submenu-close-bottom" href="">&nbsp;</a>
495
- </div>
496
- </li>
497
- <li class="social-mobile">
498
- <ul class="clearfix">
499
- <li><a href="http://www.facebook.com/pages/Canadas-New-Democrats-Le-NPD-du-Canada/190502667652613" class="facebook js-new-window hide-text">Facebook</a></li>
500
- <li><a href="https://twitter.com/#!/ThomasMulcair" class="twitter js-new-window hide-text">Twitter</a></li>
501
- <li><a href="http://www.ndp.ca/rss.xml" class="rss js-new-window hide-text">RSS</a></li>
502
- <li><a href="http://www.youtube.com/user/NDPCanada" class="youtube js-new-window hide-text">YouTube</a></li>
503
- <li><a href="http://www.flickr.com/photos/ndpcanada" class="flickr js-new-window hide-text">Flickr</a></li>
504
- <li><a href="http://itunes.apple.com/ca/app/ndp/id426043239" class="appstore js-new-window hide-text">App Store</a></li>
505
- </ul>
506
- </li>
507
- </ul>
508
- </div>
509
- </div>
510
- </div>
511
- </div>
512
- <div id="sitemap" class="-region--sitemap-tpl clearfix">
513
-
514
-
515
- <ul class="clearfix">
516
- <li class="menu-Home">
517
- <a href="http://www.ndp.ca/">Home</a>
518
-
519
- </li>
520
- <li class="menu-Tom Mulcair">
521
- <a href="http://www.ndp.ca/tommulcair">Tom Mulcair</a>
522
-
523
- </li>
524
- <li class="menu-Party">
525
- <a href="http://www.ndp.ca/your-riding">Party</a>
526
- <ul class="submenu">
527
- <li><a href="http://www.ndp.ca/history">History</a></li>
528
- <li><a href="http://www.ndp.ca/ourcaucus">Our Caucus</a></li>
529
- <li><a href="http://www.ndp.ca/shadow-cabinet">Shadow Cabinet</a></li>
530
- <li><a href="http://www.ndp.ca/commissions">Commissions</a></li>
531
- <li><a href="http://www.ndp.ca/constitution">Constitution</a></li>
532
- <li><a href="http://www.ndp.ca/policy-book">Policy Book</a></li>
533
- <li><a href="http://www.ndp.ca/federal-council">Federal Council</a></li>
534
- <li><a href="http://www.ndp.ca/jobs">Jobs</a></li>
535
- <li><a href="http://www.ndp.ca/contact">Contact</a></li>
536
- <li><a href="http://www.ndp.ca/your-riding">Your Riding</a></li>
537
- <li><a href="http://qc.ndp.ca">NDP Quebec</a></li>
538
- <li><a href="http://montreal2013.ndp.ca">NDP Convention</a></li>
539
- </ul>
540
-
541
- </li>
542
- <li class="menu-News">
543
- <a href="http://www.ndp.ca/news/recent/">News</a>
544
- <ul class="submenu">
545
- <li><a href="http://www.ndp.ca/news/recent/press-release">Press Releases</a></li>
546
- <li><a href="http://www.ndp.ca/news/recent/statement">Statements</a></li>
547
- <li><a href="http://www.ndp.ca/news/recent/reality-check">Reality Checks</a></li>
548
- </ul>
549
-
550
- </li>
551
- <li class="menu-Photos and Video">
552
- <a href="http://www.ndp.ca/videos">Photos and Video</a>
553
- <ul class="submenu">
554
- <li><a href="http://www.ndp.ca/videos">Video Gallery</a></li>
555
- <li><a href="http://www.ndp.ca/photos">Photo Gallery</a></li>
556
- <li><a href="http://www.ndp.ca/logos">Logos</a></li>
557
- </ul>
558
-
559
- </li>
560
- <li class="menu-Take Action">
561
- <a href="http://www.ndp.ca/join">Take Action</a>
562
- <ul class="submenu">
563
- <li><a href="http://www.ndp.ca/join">Join</a></li>
564
- <li><a href="http://www.ndp.ca/donate">Donate</a></li>
565
- <li><a href="http://www.ndp.ca/volunteer">Volunteer</a></li>
566
- <li><a href="http://www.ndp.ca/endp-subscribe">Get Email Updates</a></li>
567
- <li><a href="http://www.ndp.ca/online-tools">Online Tools</a></li>
568
- <li><a href="http://www.ndp.ca/app">Download the NDP App</a></li>
569
- </ul>
570
-
571
- </li>
572
- </ul>
573
-
574
- </div>
575
- <div id="copyright" >
576
- <p>© 2012 New Democratic Party of Canada, all rights reserved. Paid for and authorized by the registered agent of Canada's NDP.</p>
577
- </div>
578
- </div>
579
-
580
- </div></div> <!-- /#page, /#page-wrapper -->
581
-
582
- <script type="text/javascript">
583
- jQuery('#nav-toggle').click(function () {
584
- jQuery('#wrapper').toggleClass('hideContent');
585
- jQuery('#nav').toggleClass('showNav');
586
- });
587
- if(jQuery("html").hasClass("ua-desktop")) {
588
- jQuery('#page').prepend('<img id="bg-img" src="/sites/all/themes/tom2012/imgs/mulcair.png" alt="Thomas Mulcair" />');
589
- }
590
- </script>
591
-
592
- </body>
593
- </html>