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,452 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Date: Tue, 05 Mar 2013 03:46:11 GMT
3
- Server: Apache/2.2.22 (Debian)
4
- X-Powered-By: PHP/5.4.4-9
5
- Set-Cookie: qtrans_cookie_test=qTranslate+Cookie+Test; path=/; domain=www.conservative.ca
6
- X-Pingback: http://www.conservative.ca/xmlrpc.php
7
- Vary: Accept-Encoding
8
- Connection: close
9
- Transfer-Encoding: chunked
10
- Content-Type: text/html; charset=UTF-8
11
-
12
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13
- <html dir="ltr" lang="en-US">
14
- <head>
15
- <script src="//cdn.optimizely.com/js/166119657.js"></script>
16
- <script>
17
- _udn = ".conservative.ca";
18
- </script>
19
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20
- <title>Members of Parliament | Conservative Party of Canada</title>
21
- <link rel="profile" href="http://gmpg.org/xfn/11" />
22
- <link rel="stylesheet" type="text/css" media="all" href="http://www.conservative.ca/wp-content/themes/conservative/style.css" />
23
- <link rel="pingback" href="http://www.conservative.ca/xmlrpc.php" />
24
- <link rel="alternate" type="application/rss+xml" title="Conservative Party of Canada &raquo; Members of Parliament Comments Feed" href="http://www.conservative.ca/?feed=rss2&#038;page_id=35" />
25
- <link href="http://www.conservative.ca/wp-content/plugins/cpcphotos/colorbox/colorbox.css" rel="stylesheet" type="text/css" /><link rel='stylesheet' id='cpcemailsignupcss-css' href='http://www.conservative.ca/wp-content/plugins/cpcemailsignup/cpcemailsignup.css?ver=1.0' type='text/css' media='screen' />
26
- <link rel='stylesheet' id='fancybox2css-css' href='http://www.conservative.ca/wp-content/themes/conservative/scripts/fancybox2/jquery.fancybox.css?ver=1.0' type='text/css' media='screen' />
27
- <script type='text/javascript' src='http://www.conservative.ca/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script>
28
- <script type='text/javascript' src='http://www.conservative.ca/wp-content/plugins/cpcemailsignup/jquery.placeholder-1.0.js?ver=3.3.1'></script>
29
- <script type='text/javascript' src='http://www.conservative.ca/wp-content/themes/conservative/scripts/fancybox2/jquery.mousewheel-3.0.6.pack.js?ver=3.3.1'></script>
30
- <script type='text/javascript' src='http://www.conservative.ca/wp-content/themes/conservative/scripts/fancybox2/jquery.fancybox.js?ver=3.3.1'></script>
31
- <script type='text/javascript' src='http://www.conservative.ca/wp-content/plugins/cpcphotos/colorbox/jquery.colorbox-min.js?ver=3.3.1'></script>
32
- <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.conservative.ca/xmlrpc.php?rsd" />
33
- <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.conservative.ca/wp-includes/wlwmanifest.xml" />
34
- <link rel='prev' title='Senators' href='http://www.conservative.ca/?page_id=33' />
35
- <link rel='next' title='Your Elected National Council' href='http://www.conservative.ca/?page_id=37' />
36
- <meta name="generator" content="WordPress 3.3.1" />
37
- <link rel='canonical' href='http://www.conservative.ca/?page_id=35' />
38
-
39
- <meta http-equiv="Content-Language" content="en-US" />
40
- <link hreflang="fr" href="http://www.conservative.ca/?page_id=35&amp;lang=fr" rel="alternate" />
41
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
42
- <meta charset="UTF-8" />
43
- <meta property="og:title" content="Members of Parliament" />
44
- <meta property="og:type" content="article" />
45
- <meta property="og:image" content="http://www.conservative.ca/media/2012/06/fb_cpc.jpg" />
46
- <meta property="og:url" content="http://www.conservative.ca/?page_id=35" />
47
- <meta property="og:description" content="" />
48
- <meta property="og:site_name" content="Conservative Party of Canada" />
49
- <meta http-equiv="robots" content="index, follow" />
50
- <meta http-equiv="window-target" content="_top" />
51
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
52
- <meta name="description" content="Latest news and information from the Conservative Party of Canada. A Canadian political party led by Stephen Harper." />
53
- <meta name="keywords" content="conservative party of canada, conservative party, conservative, conservatives, harper, stephen harper, stand up for canada, trades, transit, accountability, child care, tools tax credit, transit tax credit, accountability act, child care tax credit, canada, political party, politics, federal politics" />
54
- <meta name="title" content="Conservative Party of Canada | Prime Minister Stephen Harper" />
55
- <meta name="Identifier-URL" content="www.conservative.ca" />
56
- <meta name="revisit-after" content="7 days" />
57
- <meta name="distribution" content="global" />
58
- <meta name="Coverage" content="Worldwide" />
59
- <meta name="resource-type" content="document" />
60
- <meta name="Content-Language" content="EN" />
61
- <meta name="rating" content="General" />
62
- <meta name="copyright" content="Conservative Party Of Canada" />
63
- <link rel="icon" type="image/x-icon" href="http://www.conservative.ca/media/www_conservative_ca.ico" />
64
- <link rel="shortcut icon" type="image/x-icon" href="http://www.conservative.ca/media/www_conservative_ca.ico" />
65
- <script type="text/javascript">
66
- var _gaq = _gaq || [];
67
- _gaq.push(['_setAccount', 'UA-32967487-1']);
68
- _gaq.push(['_setDomainName', 'conservative.ca']);
69
- _gaq.push(['_trackPageview']);
70
- (function() {
71
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
72
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
73
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
74
- })();
75
- </script>
76
- </head>
77
- <body class="page page-id-35 page-child parent-pageid-11 page-template page-template-template-searchbyprovince-php">
78
- <div id="jumpBar">
79
- <div class="center">
80
- <div id="switches">
81
- <div class="left lang"><a href="http://www.conservative.ca/?page_id=35&amp;lang=fr" class="btn btn-info" style="padding:0 5px 5px 5px; height:15px; margin:3px 0 0 0;">Fran&ccedil;ais</a></div>
82
- <div class="clear"></div>
83
- </div><!-- /switches -->
84
-
85
- <div id="socNets">
86
- <div class="left contact"><a href="http://www.conservative.ca/?page_id=72" class="btn btn-info" style="padding:0 5px 5px 5px; height:15px; margin:3px 0 0 0;">Contact</a></div>
87
- <div class="rollover"><a href="http://twitter.com/cpc_hq" class="twitter" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Socnet Link (Icon)', 'Twitter']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/socNets-twitter.png" border="0" alt="Twitter" title="Twitter" /></a></div><div class="rollover"><a href="https://www.facebook.com/pages/Conservative-Party-of-Canada-Parti-conservateur-du-Canada/5661704203" class="facebook" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Socnet Link (Icon)', 'Facebook']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/socNets-facebook.png" border="0" alt="Facebook" title="Facebook" /></a></div><div class="rollover"><a href="http://www.youtube.com/cpcpcc" class="youtube" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Socnet Link (Icon)', 'Youtube']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/socNets-youtube.png" border="0" alt="Youtube" title="Youtube" /></a></div><div class="rollover"><a href="http://www.flickr.com/photos/pmharper/" class="flickr" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Socnet Link (Icon)', 'Flickr']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/socNets-flickr.png" border="0" alt="Flickr" title="Flickr" /></a></div><div class="rollover"><a href="http://www.conservative.ca/?feed=rss" class="rss" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Socnet Link (Icon)', 'Rss']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/socNets-rss.png" border="0" alt="Rss" title="Rss" /></a></div>
88
- </div><!-- /socNets -->
89
-
90
- <div class="clear"></div>
91
- </div><!-- /center -->
92
- </div><!-- /jumpBar -->
93
- <div id="featureMenu" class="uniquePage"><div id="navMenu" class="naven"><div class="center"><a href="http://www.conservative.ca"><img id="logo" src="http://www.conservative.ca/wp-content/themes/conservative/images/featureMenu-navMenu-Conservative-en.png" width="176px" height="36px" border="0" alt="Conservative Party of Canada | Parti conservateur du Canada" title="Conservative Party of Canada | Parti conservateur du Canada" /></a>
94
- <ul class="sub-menu">
95
- <li id="menu-item-71" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-71"><a href="http://www.conservative.ca/?page_id=23">Facts</a></li>
96
- <li id="menu-item-70" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-70"><a href="http://www.conservative.ca/?page_id=25">Laureen Harper</a></li>
97
- <li id="menu-item-1836" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1836"><a href="http://www.conservative.ca/?page_id=27">Prime Minister&#8217;s website</a></li>
98
- </ul>
99
- </li>
100
- <li id="menu-item-13" class="menu-item menu-item-type-post_type menu-item-object-page current-page-ancestor current-menu-ancestor current-menu-parent current-page-parent current_page_parent current_page_ancestor menu-item-13"><a href="http://www.conservative.ca/?page_id=11">Team</a>
101
- <ul class="sub-menu">
102
- <li id="menu-item-68" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-68"><a href="http://www.conservative.ca/?page_id=31">Ministry</a></li>
103
- <li id="menu-item-66" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-35 current_page_item menu-item-66"><a href="http://www.conservative.ca/?page_id=35">Members of Parliament</a></li>
104
- <li id="menu-item-67" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-67"><a href="http://www.conservative.ca/?page_id=33">Senators</a></li>
105
- <li id="menu-item-65" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-65"><a href="http://www.conservative.ca/?page_id=37">Your Elected National Council</a></li>
106
- </ul>
107
- </li>
108
- <li id="menu-item-14" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-14"><a href="http://www.conservative.ca/?page_id=9">Where We Stand</a>
109
- <ul class="sub-menu">
110
- <li id="menu-item-62" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-62"><a href="http://www.conservative.ca/?page_id=44">Issue By Issue</a></li>
111
- <li id="menu-item-64" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-64"><a href="http://www.conservative.ca/?page_id=40">Platform</a></li>
112
- <li id="menu-item-63" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-63"><a href="http://www.conservative.ca/?page_id=42">Budget 2012</a></li>
113
- <li id="menu-item-1380" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1380"><a href="http://www.conservative.ca/?page_id=923">Canada&#8217;s Founding Party</a></li>
114
- </ul>
115
- </li>
116
- <li id="menu-item-57" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-57"><a href="http://www.conservative.ca/?page_id=54">News</a></li>
117
- <li id="menu-item-58" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-58"><a href="http://www.conservative.ca/?page_id=46">Multimedia</a>
118
- <ul class="sub-menu">
119
- <li id="menu-item-61" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-61"><a href="http://www.conservative.ca/?page_id=48">Photos</a></li>
120
- <li id="menu-item-60" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-60"><a href="http://www.conservative.ca/?page_id=50">Video</a></li>
121
- <li id="menu-item-59" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-59"><a href="http://www.conservative.ca/?page_id=52">Wallpaper</a></li>
122
- </ul>
123
- </li>
124
- </ul><div id="cta-donate"><a href="https://secure.conservative.ca/donation.aspx?lang=en" class="btn btn-primary btn-cta" style="font-weight: bold;">DONATE</a></noscript></div>
125
- <div id="mainImage">
126
- <img src="http://www.conservative.ca/media/2012/06/featureMenu-page-mainImage-default.jpg" width="960px" border="0" />
127
- </div><!-- /mainImage --></div><!-- /featureMenu -->
128
- <div id="content">
129
- <div class="center">
130
- <div id="header">
131
- <div id="type">
132
- <h2>Members of Parliament</h2>
133
-
134
- <br />
135
- <form action="http://www.conservative.ca" method="get">
136
- <input type="hidden" name="page_id" value="35" />
137
- <input type="hidden" name="lang" value="en" />
138
- <div class="left"><div><select name="pr"><option value="Alberta" >Alberta</option>
139
- <div class="left" style="margin:0 0 0 10px;"><button type="submit" class="btn btn-primary">Submit</button></div>
140
- <div class="clear"></div><br />
141
- </form>
142
- <br />
143
- <form action="" method="post">
144
- <input type="hidden" name="findmymp" value="35" />
145
- <input type="hidden" name="lang" value="en" />
146
- <div class="left"><input type="text" name="pc" id="findmymppc" value="A1A1A1" maxlength="7" /></div>
147
- <div class="left" style="margin:0 0 0 10px;"><button type="submit" class="btn btn-primary">Submit</button></div>
148
- <div class="clear"></div><br />
149
- </form>
150
- <h5>St. John's South--Mount Pearl</h5><p>This riding is not currently represented by a Conservative Member of Parliament.</p>
151
- <script type="text/javascript">
152
- $c=jQuery.noConflict(); $c(document).ready(function(){
153
- $c("#findmymppc").placeholders({value:"Postal Code"});
154
- });
155
- </script>
156
- </div><!-- /type -->
157
- <div id="share">
158
- <div class="fb left"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.conservative.ca%2F%3Fpage_id%3D35&amp;send=false&amp;layout=box_count&amp;width=100&amp;show_faces=false&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=90" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:90px;" allowTransparency="true"></iframe></div>
159
-
160
- <div class="tw left"><a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-count="vertical">Tweet</a></div>
161
- <div class="clear"></div>
162
- </div><!-- /share -->
163
- <div class="clear"></div>
164
- <hr />
165
- </div> <!-- /top -->
166
- <div id="columns">
167
- <div id="maincol">
168
- <div id="bodyContent">
169
- </div><!-- /bodyContent -->
170
- </div><!-- /maincol -->
171
- <div id="sidebar">
172
- <div class="widget">
173
- <div class="container takeaction">
174
- <h3>Take Action</h3><hr />
175
- <div class="link" align="center">
176
- <a href="https://secure.conservative.ca/donation.aspx?lang=en" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Icon)', 'Contribute']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/widget-takeaction-contribute.png" width="20" height="23" border="0" alt="Contribute" title="Contribute" /></a>
177
- <p><a href="https://secure.conservative.ca/donation.aspx?lang=en" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Text)', 'Contribute']); return true;">Contribute</a></p>
178
- </div>
179
- <div class="link" align="center">
180
- <a href="https://secure.conservative.ca/donation.aspx?cmp=ml&lang=en" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Icon)', 'Join']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/widget-takeaction-join.png" width="26" height="21" border="0" alt="Join" title="Join" /></a>
181
- <p><a href="https://secure.conservative.ca/donation.aspx?cmp=ml&lang=en" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Text)', 'Join']); return true;">Join</a></p>
182
- </div>
183
- <div class="link" align="center">
184
- <a href="http://www.brymark.com/cboutique/index2.cfm" target="_blank" rel="nofollow" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Icon)', 'Shop']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/widget-takeaction-shop.png" width="23" height="22" border="0" alt="Shop" title="Shop" /></a>
185
- <p><a href="http://www.brymark.com/cboutique/index2.cfm" target="_blank" rel="nofollow" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Widget Link (Text)', 'Shop']); return true;">Shop</a></p>
186
- </div>
187
- <div class="link" align="center">
188
- <a href="#cpcemailsignupcontainer" class="cpcemailsignup" onclick="cpcescaption('Newsletter');"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/widget-takeaction-newsletter.png" width="24" height="22" border="0" alt="Newsletter" title="Newsletter" /></a>
189
- <p><a href="#cpcemailsignupcontainer" class="cpcemailsignup" onclick="cpcescaption('Newsletter');">Newsletter</a></p>
190
- </div>
191
- <div class="clear"></div>
192
- </div>
193
-
194
- </div><div class="widget"><!--Stephen Harper--><div class="container takeaction"><img src="http://www.conservative.ca/media/2012/05/widget-pm-headerImg.jpg"><br />
195
- <h3>Stephen Harper</h3>
196
- <hr />
197
- <p>Stephen Harper is dedicated to building a stronger, prouder, more prosperous Canada by delivering real results for everyday Canadian families. He has spent his entire political career standing up and speaking out for Canadians who work hard, pay their taxes and play by the rules.</p>
198
- <p class="widgetLink linkFirst"><a href="http://www.conservative.ca/?page_id=2">Read more</a></p>
199
- <div class="clear"></div>
200
- </div>
201
- </div><div class="widget"><!--Canada’s Founding Party--><div class="container takeaction"><img src="http://www.conservative.ca/media/2012/05/widget-party-headerImg.jpg"><br />
202
- <h3>Canada’s Founding Party</h3>
203
- <hr />
204
- <p>On October 16th, 2003, the leaders of the Canadian Reform Conservative Alliance and the Progressive Conservative Party of Canada announced an agreement-in-principle to unite under a new political banner. In December 2003, the merger was overwhelmingly ratified by members of both parties and the Conservative Party of Canada was officially born.</p>
205
- <p class="widgetLink linkFirst"><a href="http://www.conservative.ca/?page_id=923">Read more</a></p>
206
- <div class="clear"></div>
207
- </div>
208
- </div> </div>
209
- <div class="clear"></div>
210
- <div class="clear"></div>
211
- </div><!-- /columns -->
212
-
213
- </div><!-- /center -->
214
- </div><!-- /content -->
215
-
216
- <div id="footer">
217
- <div class="center">
218
- <div><div id="MPs" class="col"><h4>Conservative MPs</h4><hr />
219
- <div class="MP">
220
- <div class="photoContainer"><a href="http://www.conservative.ca/?cr=pickering-scarborough-east"><img src="http://www.conservative.ca/media/team/35072.jpg" width="41" border="0" /></a></div>
221
- <p class="name"><a href="http://www.conservative.ca/?cr=pickering-scarborough-east">Corneliu Chisu</a>
222
- <p class="riding"><a href="http://www.conservative.ca/?cr=pickering-scarborough-east">Pickering &#8211; Scarborough East</a></p>
223
- <div class="clear"></div>
224
- </div><!-- /MP -->
225
-
226
 
227
- <div class="MP">
228
- <div class="photoContainer"><a href="http://www.conservative.ca/?cr=don-valley-west"><img src="http://www.conservative.ca/media/team/35017.jpg" width="41" border="0" /></a></div>
229
- <p class="name"><a href="http://www.conservative.ca/?cr=don-valley-west">John Carmichael</a>
230
- <p class="riding"><a href="http://www.conservative.ca/?cr=don-valley-west">Don Valley West</a></p>
231
- <div class="clear"></div>
232
- </div><!-- /MP -->
233
-
234
1
 
235
- <div class="MP">
236
- <div class="photoContainer"><a href="http://www.conservative.ca/?cr=don-valley-east"><img src="http://www.conservative.ca/media/team/35016.jpg" width="41" border="0" /></a></div>
237
- <p class="name"><a href="http://www.conservative.ca/?cr=don-valley-east">Joe Daniel</a>
238
- <p class="riding"><a href="http://www.conservative.ca/?cr=don-valley-east">Don Valley East</a></p>
239
- <div class="clear"></div>
240
- </div><!-- /MP -->
241
-
242
- <h3>Find Your MP</h3><br />
243
- <form method="post">
244
- <div class="left"><input type="text" name="pc" id="fpc" value="Postal Code" maxlength="7" /></div>
245
- <div class="left" style="margin:0 0 0 10px;"><button type="submit" id="findyourmpsubmit" class="btn btn-primary">Submit</button></div>
246
- <div class="clear"></div><br />
247
- </form>
248
- <div id="findyourmpresults"></div>
249
- </div>
250
- <script type="text/javascript">
251
- $c=jQuery.noConflict(); $c(document).ready(function(){
252
- $c(".findyourmp").fancybox({fitToView:false});
253
- $c("#fpc").focus(function () { if (this.value == "Postal Code") { this.value = ""; $c(this).attr("maxlength", "7"); } });
254
- $c("#fpc").blur(function () { if ($c.trim(this.value) == "") { $c(this).attr("maxlength", "12"); this.value = "Postal Code"; } });
255
-
256
- $c("#findyourmpsubmit").click(function () {
257
- var fpc = $c("#fpc").val();
258
- $c(this).addClass("disabled");
259
- var senddata = 'fpc='+fpc+'&x=vldpc&lang=';
260
- $c.ajax({
261
- url: "http://www.conservative.ca/wp-content/themes/conservative/functions-process.php",
262
- type: "GET",
263
- data: senddata,
264
- cache: false,
265
- success: function (html) {
266
- if (html=="new") {
267
- $c("#findyourmpresults").html("No ridings found");
268
- }
269
- else {
270
- $c("#findyourmpresults").html(html);
271
- $c.fancybox.update();
272
- }
273
- }
274
- });
275
- return false;
276
- });
277
- });
278
- </script>
279
- </div><div><div id="tweets" class="col"><h4>Recent Tweets</h4><hr /><div class="tweet"><p>Keeping our Communities Safe: <a href="http://t.co/fJC7DKoy" target="_blank">http://t.co/fJC7DKoy</a> #cdnpoli</p></div>
280
- <script type="text/javascript">
281
- $cp=jQuery.noConflict();
282
- $cp(document).ready(function(){
283
- $cp("a[rel=cpcphotos]").fancybox({
284
- "centerOnScroll" : true,
285
- "transitionIn" : "none",
286
- "transitionOut" : "none",
287
- "titlePosition" : "over",
288
- "titleFormat" : function(title, currentArray, currentIndex, currentOpts) {
289
- return '<span id="fancybox-title-over"> ' + (title.length ? ' &nbsp; ' + title : '') + '</span>';
290
- }
291
- });
292
- });
293
- </script></div><div><div id="videos" class="col"><h4>Recent Video</h4><hr />
294
- <div id="videoContainer">
295
- <div id="videoPlaceholder">
296
- <a class="cpcvideo" href="http://www.youtube.com/embed/_7yoeZyMwbU?autoplay=1"><img src="http://i.ytimg.com/vi/_7yoeZyMwbU/0.jpg" width="202px" /></a>
297
- </div>
298
- </div><!-- /videoContainer -->
299
- <p class="current"><a class="cpcvideo" href="http://www.youtube.com/embed/_7yoeZyMwbU?autoplay=1">Prime Minister Stephen Harper delivers remarks on Parliament Hill during Canada Day celebrations</a></p>
300
-
301
- <script type="text/javascript">
302
- $cv=jQuery.noConflict();
303
- $cv(document).ready(function(){
304
- $cv(".cpcvideo").fancybox({ "autoScale" : true, "centerOnScroll" : true, "transitionIn" : "none", "transitionOut" : "none", "type" : "iframe" });
305
- });
306
- </script></div> <div class="clear"></div>
307
- <hr />
308
- <div id="logo">
309
- <a href="http://www.conservative.ca"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/footer-logo-en.png" width="131" height="27" border="0" alt="Conservative Party of Canada | Parti conservateur du Canada" title="Conservative Party of Canada | Parti conservateur du Canada" /></a>
310
- </div><!-- /logo -->
311
- <div id="info">
312
- <p>This website is the property of the Conservative Party of Canada and may not be reproduced in whole or in part without express written permission.</p>
313
- <p>Copyright &copy; 2012 Authorized by the Registered Agent of the Conservative Party of Canada. - <a href="http://www.conservative.ca/?page_id=1153">Privacy Policy</a> | <a href="http://www.conservative.ca/?page_id=1256">Documents for Members</a> | <a href="http://www.conservative.ca/?page_id=1458">Employment Opportunities</a></p>
314
- </div><!-- /info -->
315
- <div class="clear"></div>
316
- </div><!-- /center -->
317
- </div><!-- /footer -->
318
-
319
- <div id="utilityBar">
320
- <div class="center">
321
- <div class="rollover"><a href="#" id="ToryTVClick" class="toryTV"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/utilityBar-ToryTV.png" border="0" alt="ToryTV" title="ToryTV" /></a></div>
322
- <div class="rollover"><a href="#" id="INClick" class="news"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/utilityBar-news-en.png" border="0" alt="Important News | Nouvelles importantes" title="Important News | Nouvelles importantes" /></a></div>
323
- <div class="rollover"><a href="https://secure.conservative.ca/donation.aspx?lang=en" class="contribute" target="_blank" onclick="_gaq.push(['_trackEvent', 'Clicks', 'Footer Link (Icon)', 'Contribute']); return true;"><img src="http://www.conservative.ca/wp-content/themes/conservative/images/utilityBar-contribute-en.png" border="0" alt="Contribute | Contribuer" title="Contribute | Contribuer" /></a></div>
324
- <div id="search">
325
- <form method="get" action="http://www.conservative.ca">
326
- <input type="hidden" name="lang" value="" />
327
- <div id="submitButton"><button type="submit" /></button></div><input name="s" type="text" value="Search Conservative.ca" id="textEnter" />
328
- <div class="clear"></div>
329
- </form>
330
- </div><!-- /search -->
331
- <div class="clear"></div>
332
-
333
- <div class="popoutContainer tv" id="ToryTVPopup" style="display:none;">
334
- <div id="toryTV">
335
-
336
- <div id="vid">
337
- <a class="cpcvideo" href="http://www.youtube.com/embed/_7yoeZyMwbU?autoplay=1"><img src="http://i.ytimg.com/vi/_7yoeZyMwbU/0.jpg" width="391px" /></a>
338
- </div><!-- /vid -->
339
-
340
- <div id="info">
341
- <div id="others">
342
- <p class="other">Other Recent Videos</p>
343
- <div class="otherVid"><a class="cpcvideo" href="http://www.youtube.com/embed/9K9nBFJD6M0?autoplay=1"><img src="http://i.ytimg.com/vi/9K9nBFJD6M0/0.jpg" width="112px" /></a></div>
344
- </div><!-- /others -->
345
- <div class="clear"></div>
346
- </div><!-- /info -->
347
- <div class="clear"></div>
348
- </div><!-- /toryTV -->
349
- </div><!-- /popoutContainer -->
350
- <div class="popoutContainer importantNews" id="INPopup" style="display:none;">
351
- <div id="news">
352
- <p class="title"><a href="http://www.conservative.ca/?p=2526">Focused on the Economy: No New Spending</a></p>
353
- <div class="desc"><p>On Wednesday, Jim Flaherty, Minister of Finance, was in Burlington, Ontario hosting pre-budget consultations with local business and community leaders.</p>
354
- </div>
355
- <p class="more"><a href="http://www.conservative.ca/?p=2526">Read More</a></p>
356
- </div><!-- /news -->
357
- </div><!-- /popoutContainer -->
358
- </div><!-- /center -->
359
- </div><!-- /utilityBar -->
360
-
361
- <script type="text/javascript">
362
- $c=jQuery.noConflict();
363
- $c(document).ready(function(){
364
- $c("#ToryTVClick").click(function() { $c("#ToryTVPopup").toggle(); $c("#INPopup").hide(); return false; });
365
- $c("#INClick").click(function() { $c("#INPopup").toggle(); $c("#ToryTVPopup").hide(); return false; });
366
- $c("#textEnter").focus(function () { if (this.value == "Search Conservative.ca") { this.value = ""; } });
367
- $c("#textEnter").blur(function () { if (this.value == "") { this.value = "Search Conservative.ca"; } });
368
- $c(".movement").click(function() { $c("#CPCmovement").slideToggle('normal'); return false; });
369
- $c('body').addClass('sl');
370
- if ($c('#slider').length > 0) { FeatureSlideshow.init(); }
371
- $c(".whycpc").placeholders();
372
- $c(".nxt").click(function() { t=$c(this).attr("title"); n=$c(this).attr("name"); c = '.controls'+n+' .nxt'; s = '.slidercontainer'+n; $c(c).removeClass('active'); $c(this).addClass('active'); $c(s).iosSlider('goToSlide',t); return false; });
373
- });
374
- </script>
375
-
376
-
377
- <div id="cpcemailsignupcontainer" style="width:400px; display:none;">
378
- <div id="cpcemailsignupmsg"></div>
379
- <div id="cpcemailsignupform">
380
- <h3 id="cpcemailsignupcaption"></h3><br />
381
- <form action="" method="post">
382
- <input type="hidden" name="8aa15ec600cc0ab0d2cbfdfaf64c6821" value="0311" />
383
- <div><input type="text" id="es_fn" name="fn" value="First Name" class="cpces" maxlength="20" tabindex="1" /></div>
384
- <div><input type="text" id="es_ln" name="ln" value="Last Name" class="cpces" maxlength="20" tabindex="2" /></div>
385
- <div><input type="text" id="es_pc" name="pc" value="Postal Code" class="cpces" maxlength="7" tabindex="3" /></div>
386
- <div><input type="text" id="es_em" name="em" value="Email" class="cpces" maxlength="40" tabindex="4" /></div>
387
- <div><button type="submit" id="cpcemailsignupsubmit" class="btn btn-primary">Submit</button></div>
388
- </form>
389
- </div>
390
- </div>
391
- <script type="text/javascript">
392
- $c=jQuery.noConflict(); $c(document).ready(function(){ $c(".cpcemailsignup").fancybox({fitToView:false,helpers:{title:null}}); $c(".cpces").placeholders(); });
393
- </script>
394
- <script type="text/javascript">
395
- function cpcescaption(a) { $c("#cpcemailsignupcaption").html(a); }
396
- $c=jQuery.noConflict(); $c(document).ready(function(){
397
- $c("#cpcemailsignupsubmit").click(function () {
398
- var es_fn = $c("#es_fn").val(); var es_ln = $c("#es_ln").val(); var es_pc = $c("#es_pc").val(); var es_em = $c("#es_em").val();
399
- $c(this).attr('disabled','disabled');
400
- var senddata = 'fn='+es_fn+'&ln='+es_ln+'&pc='+es_pc+'&em='+es_em+'&pid=35&x=vldes&lang=en';
401
- $c.ajax({
402
- url: "http://www.conservative.ca/wp-content/plugins/cpcemailsignup/process.php",
403
- type: "GET",
404
- data: senddata,
405
- cache: false,
406
- success: function (html) {
407
- if (html==1) {
408
- $c("#cpcemailsignupmsg").html("<p class='success'>Thank you!</p>");
409
- $c("#cpcemailsignupform").hide('slow');
410
- }
411
- else {
412
- $c("#cpcemailsignupmsg").html("<p class='error'>Sorry, something went wrong. Please try again.</p>");
413
- $c("#cpcemailsignupsubmit").removeAttr('disabled');
414
- }
415
- }
416
- });
417
- return false;
418
- });
419
- });
420
- </script>
421
-
422
- <script type="text/javascript">
423
- $c=jQuery.noConflict(); $c(document).ready(function(){
424
- $c("#cpcpollsubmit").click(function () {
425
- var cp_n = $c("#cpcpoll_nom").val(); var cp_e = $c("#cpcpoll_cour").val(); var cp_pc = $c("#cpcpoll_pc").val(); var cp_l = $c("#cpcpolll").val(); var cp_i = $c("#cpcpollid").val(); var cp_r = $c("input[name='poll_response']:checked").val(); if (cp_r == undefined) { cp_r = ""; }
426
- $c(this).attr('disabled','disabled');
427
- var senddata = 'i='+cp_i+'&r='+cp_r+'&n='+cp_n+'&e='+cp_e+'&pc='+cp_pc+'&pid=35&x=vldp&lang='+cp_l;
428
- $c.ajax({
429
- url: "http://www.conservative.ca/wp-content/plugins/cpcpoll/process.php",
430
- type: "GET",
431
- data: senddata,
432
- cache: false,
433
- success: function (html) {
434
- if (html==1) {
435
- $c("#cpcpollmsg").html("<p class='success'>Thank you!</p>");
436
- $c("#cpcpollform").hide('slow');
437
- }
438
- else if (html==2) {
439
- $c("#cpcpollmsg").html("<p class='success'>You've taken this poll already.</p>");
440
- $c("#cpcpollform").hide('slow');
441
- }
442
- else {
443
- $c("#cpcpollmsg").html("<p class='error'>Sorry, something went wrong. Please try again.</p>");
444
- $c("#cpcpollsubmit").removeAttr('disabled');
445
- }
446
- }
447
- });
448
- return false;
449
- });
450
- });
451
- </script>
452
-
453
- </body>
454
- </html>