Get The Weekend Point of View Newsletter
Top Canadian political and policy opinion and analysis. Saturdays and Sundays. Weekends.
By entering your email address you consent to receive email from The Hill Times containing news, analysis, updates and offers. You may unsubscribe at any time. See our privacy policy
More Opinion
Systemic labour reform—not tweaks—needed to address major trade disruptions
OpinionBY CARLO DADE
Conservatives make good use of their time
It’s time to fix Canada’s Species at Risk Act
OpinionBY JASON KRIPS
Pivoting north as a middle power in a multipolar Arctic
OpinionBY ANDREW LATHAM
Scott McCord: the unsung hero of travel
OpinionBY SHARAN KAUR
Related Stories
In the family: two new MPs follow parents’ path to politics
NewsBY SAMANTHA WRIGHT ALLEN
Thirty years in print: from The Hill Times’ photo archives
FeatureBY KATE MALLOY
Alberta Tory MPs lining up behind Kenney in provincial leadership race
NewsBY PETER MAZEREEUW
Bill C-377 orchestrated by Harper’s office, anti-union lobbyist
NewsBY TIM HARPER
The secret to Harper’s success
NewsBY GERRY NICHOLLS
"; let ad_id = "#adsplaceholder_d"+value; jQuery(ad_id).html(html_for_show); }); jQuery("#adsplaceholder_d9").html("
"); jQuery("#adsplaceholder_d10").html("
"); jQuery(".adsmobile").css("display", "none"); jQuery(".ads-mobile-section").css("display", "none"); mobile_screen_loaded = false; desktop_screen_loaded = true; } function returnfalseinlink(){ return false; } function activate_paywall(){ let page_elm = document.getElementsByClassName("page-content"); let firstpara = page_elm[0].children[0].innerHTML; let fontFam = "Merriweather"; let strXHTML= ''; strXHTML += '
'+firstpara+'
'; strXHTML += '
'; strXHTML += '
'; strXHTML += '
To keep reading, subscribe and become a political insider.
'; strXHTML += ''; strXHTML += '
Only $7.67 / week for one year.
'; strXHTML += '
Enjoy unlimited website access and the digital newspaper.
'; strXHTML += '
Cancel anytime.
'; strXHTML += '
'; strXHTML += '
'; strXHTML += '
'; strXHTML += '
'; strXHTML += '
Already a Subscriber?
'; strXHTML += ''; strXHTML += '
'; strXHTML += '
'; jQuery('.page-content > p').remove(); jQuery('.page-content > h2').remove(); jQuery('#adsplaceholder_d1').remove(); jQuery('#adsplaceholder_d2').remove(); jQuery('#adsplaceholder_d3').remove(); jQuery('#adsplaceholder_d4').remove(); jQuery('#adsplaceholder_d5').remove(); jQuery('#adsplaceholder_d6').remove(); jQuery('#adsplaceholder_m1').remove(); jQuery('#adsplaceholder_m2').remove(); jQuery('#adsplaceholder_m3').remove(); jQuery('#adsplaceholder_m4').remove(); jQuery('#adsplaceholder_m5').remove(); jQuery('#adsplaceholder_m6').remove(); if (jQuery(window).width() < 768){ jQuery('.elementor-134578').remove(); jQuery(".author-upper-border").css("margin-top",'35px'); jQuery(".elementor-heading-title a").css('color','#000000'); } else{ jQuery(".elementor-134578").css("margin-top", "-90%"); jQuery(".elementor-134578").css("padding-bottom", "94%"); jQuery(".elementor-heading-title a").css('color','#000000'); } let paywaldiv = document.createElement('div'); paywaldiv.innerHTML = strXHTML.trim(); // Change this to div.childNodes to support multiple top-level nodes. let paywall = paywaldiv.firstChild; jQuery('.ht_signup_container_full').remove(); jQuery('.page-content > figure').remove(); jQuery('.elementor-134586').remove(); jQuery('.wp-block-image').remove(); page_elm[0].insertBefore(paywaldiv, page_elm[0].children[2]); } // function display_after_delay(){ // let collection = document.getElementsByClassName("flip-box-inner"); // for( let kl=0; kl
'; lock_html += '
'; lock_html += '
PEOPLE.
POLICY.
POLITICS.
'; lock_html += '
Subscribers have
full access to the
digital newspaper.
'; lock_html += '
'; lock_html += ''; lock_html += '
Already a subscriber?
'; lock_html += 'Log in here.'; lock_html += '
'; // lock_html += '
Check to see if you have corporate access.'; // lock_html += '
'; // lock_html += '
To discuss re-use of this material, contact us.'; // lock_html += '
'; lock_html += '
'; lock_html += '
'; //let single_article = document.getElementById("post-"+this.id); let single_article = document.getElementById(this.id); single_article.children[0].children[0].children[0].children[0].innerHTML = lock_html; single_article.children[0].children[0].children[0].children[1].style.display="none"; single_article.children[0].children[0].children[0].children[2].style.display="none"; } jQuery(document).ready( function() { let single_page = document.getElementsByClassName('feature_content_sec').length > 0 ? true: false; if(single_page){ // jQuery('.elementor-element-750fd3a8').hide(); // jQuery('.elementor-135022').hide(); // Load Edit Post Link jQuery.ajax({ type: 'POST', url: htAjaxUrl, data: { action: 'ht_load_post_edit_link', storyID: htStodyID }, success: function (response) { if( response.data.link ) { jQuery('.story-byline').append(response.data.link); } } }); let ajaxurlpaywall ='/wp-content/themes/hello-theme-child/ajaxPaywall.php'; let request = jQuery.ajax({ type : "post", data : {single: single_page, currentUrl: window.location.href}, dataType : "json", url : ajaxurlpaywall, }); //success: function(response) { request.done(function( response ) { console.log(response); // if not ip user in single post if(!response.ipUser){ // remove message if loaded jQuery('.ip_user_newsletter').remove(); if(document.getElementById("ipuser_signup")){ jQuery('#ipuser_signup').remove(); } if(document.getElementsByClassName("ip_user_newsletter")){ jQuery('.ip_user_newsletter').remove(); } } else{ if(document.getElementById("ipuser_signup")){ jQuery('#ipuser_signup').html(response.ipUserSignupForm); } //console.log("hide user center"); jQuery(".usercenter_link").empty(); } jQuery('#entry-content').empty().html(response.content); if(document.getElementById('entry-content')){ console.log("loading not from cache"); } else{ console.log("loading from cache"); } setTimeout(function() { let ajax_related_stories = document.getElementById('ajax-related-stories'); let main_related_stories = document.getElementById('main-related-stories').innerHTML; let ajax_sponsored_stories = document.getElementById('ajax-sponsored-stories'); let main_sponsored_stories = document.getElementById('main-sponsored-stories').innerHTML; if(ajax_related_stories) { ajax_related_stories.innerHTML = main_related_stories; } if (ajax_sponsored_stories) { ajax_sponsored_stories.innerHTML = main_sponsored_stories; } jQuery('#main_sponsored_stories').empty(); jQuery('#main_related_stories').empty(); }, 100); if (jQuery(window).width() > 800) { show_desktop_ads_shortcode(); setTimeout(function() { let div1 = "#adsplaceholder_d"; for(let x = 1; x <= 8; x++){ let height = jQuery(div1+x).height(); if(height < 200){ jQuery("div#adsplaceholder_d"+x).parents("section").css("display", "none"); } } }, 2500); } else{ show_mobile_ads(); setTimeout(function() { let div2 = "#adsplaceholder_d"; for(let x = 1; x <= 8; x++){ let height = jQuery(div2+x).height(); if(height < 200){ jQuery("div#adsplaceholder_d"+x).parents("section").css("display", "none"); } } }, 2500); } //} }); } else{ // not a single page, for section page or homepage let ajaxIpUser ='/wp-content/themes/hello-theme-child/ajaxPaywall.php'; jQuery.ajax({ type : "post", data: {ip_user_check: true}, dataType : "json", url :ajaxIpUser, success: function(response) { if(response.ipUser){ // ip user in homepage/section page if(document.getElementById("ipuser_signup")){ jQuery('#ipuser_signup').html(response.ipUserSignupForm); } } else{ // not ip user in homepage/section page jQuery('.ip_user_newsletter').remove(); if(document.getElementById("ipuser_signup")){ jQuery('#ipuser_signup').remove(); } if(document.getElementsByClassName("ip_user_newsletter")){ jQuery('.ip_user_newsletter').remove(); } } } }); jQuery.ajax({ type: 'POST', url: htAjaxUrl, data: { action: 'get_ht_newsletter_widget' }, success: function (response) { console.log(response); if(response.data){ jQuery('#ht-newsletter-home .elementor-shortcode').empty().html(response.data); } } }); } }); jQuery(document).ready( function() { let ajaxurl ='/wp-content/themes/hello-theme-child/ajaxPdfLock.php'; jQuery.ajax({ type : "post", dataType : "json", url :ajaxurl, success: function(response) { if(response.expired) { // when user have invalid expiry date // check for header latest paper; let header_latest_paper = document.getElementById("header_latest_paper"); if(header_latest_paper){ header_latest_paper.removeAttribute("download"); header_latest_paper.removeAttribute("target"); header_latest_paper.setAttribute("href", "/get-a-subscription/"); } // remove download property from a tag if(document.getElementsByClassName('pdf_full_section')){ let all_anchor_tags_div = document.getElementsByClassName('pdf_full_section'); for (let li = 0; li < all_anchor_tags_div.length; li++) { let a = all_anchor_tags_div[li].getElementsByTagName('a'); for (let j = 0; j < a.length; j++) { let elem_a = a[j]; elem_a.removeAttribute("download"); elem_a.removeAttribute("target"); elem_a.setAttribute("href", "#/"); elem_a.onclick=function(){returnfalseinlink()} } } } /// handle clicked effect, show the flicped div var el = document.querySelectorAll(".pdf_full_section"); //console.log(el.length); for(var i = 0; i < el.length; i++) { el[i].onclick = single_post_clicked; } } else{ // when user have valid expiry date //get latest paper date let ajaxurl2 ='/wp-content/themes/hello-theme-child/ajaxLatestpaper.php'; jQuery.ajax({ type : "post", dataType : "json", url :ajaxurl2, success: function(response) { if(response.latest_paper_link) { let header_latest_paper = document.getElementById("header_latest_paper"); if(header_latest_paper){ //console.log(response.latest_paper_link); //header_latest_paper.removeAttribute("target"); header_latest_paper.setAttribute("target", "_blank"); header_latest_paper.setAttribute("href", response.latest_paper_link); } } } }); /// latest paper ends // pdf links set by ajax let ajurl; if(document.getElementsByClassName('pdf_full_section')){ let all_anchor_tags_div = document.getElementsByClassName('pdf_full_section'); for (let li = 0; li < all_anchor_tags_div.length; li++) { ajurl ='/wp-content/themes/hello-theme-child/ajaxPdfLink.php'; jQuery.ajax({ type : "post", dataType : "json", data: { "postid": all_anchor_tags_div[li].id, }, url :ajurl, success: function(response) { if(response.pdf_link) { let a = all_anchor_tags_div[li].getElementsByTagName('a'); for (let j = 0; j < a.length; j++) { let elem_a = a[j]; elem_a.setAttribute("target", "_blank"); elem_a.setAttribute("href", response.pdf_link); } } } }); } } } } }); });});