Speaking freely in Ireland

Posted by On 2:48 PM

Speaking freely in Ireland

'); adArtMain2Count++; element.load(item.link, { adnum: adArtMain2Count, scrolled: 1, fulladsection:'opinion/editorials' }, function(response, status) { isLoading = false; if ($.trim($(this).html()).length && 'success' == status && !$('.error', this).length) { //dest.append(''); var adspot = dest.find('.itemadcode:last'); dest.append(this); DFPADS.initializeAll(); adspot.load("/ajaxcached?Code=adtag", function() { var ad = $(this); ad.show(); /*googletag.cmd.push(function() { var adSlot = DFPADS.createSlot({name:"ArtMain2",sizes:[[72 8,90]],target:adId,position:"ArtMain2",mapping:"StoryBanner"}); //googletag.display(adId); responsive_ads.push(adSlot); //googletag.pubads().refresh([adSlot]) });*/ dest.find('.nextitem:last .gpt-ad').each(function(i, e) { if (!i) { $(e).remove(); } else { var divId = $(e).attr('id'); divId = divId.substr(0, divId.length - 1) + num_of_stories++; $(e).attr('id', divId); //DFPADS.createSlot({name:"ArtText",sizes:[160,600],target:divId,position:"ArtText"}); //var adSlot = DFPADS.slots[divId]; /*googletag.cmd.pu sh(function() { googletag.display(divId); }); googletag.pubads().refresh([adSlot])*/ } }); DFPADS.initializeAll() }); /*$('.comments-button:last').one('click', function() { FB.XFBML.parse($(this).parent().get(0)); $(this).remove(); });*/ $('.social-comments-button:last').one('click', function() { var button = $($(this).attr('href')); $(this).attr('href', '#' + button.next().attr('id')); button.triggerHandler('click'); }); ga('send', 'pageview', item.canon_url); ga('send', 'event', 'Articles', 'Scrolled View', item.canon_url); // Observe new article data if (new Date(story_data.publish_date.replace(' ', 'T')) 1) { $this.flexslider({ animation: "fade", controlNav: false, animationLoop: true, slideshow: false, prevText: "<", nextText: ">" }); } else { $this.removeClass('flexslider'); } }); } $(window).scroll(function() { var wintop = $(window).scrollTop(), docheight = $(document).height(), winheight = $(window).height(); var scrolltrigger = 0.85; if (!isLoading && ((wintop / (docheight - winheight)) > scrolltrigger)) { isLoading = true; a ddContent(); } $(".post-divider").each(function(n,elem){ var theurl = window.location.protocol + "//" + window.location.host+$(elem).attr("data-url").replace(".html","") if($(elem).topOfViewport(20)){ DEBUGLOGR.log("VIEWPORTCHECK",n+" is at top of viewport"); if(pagesSeen.indexOf(theurl) = 0; i--) { var articleLink = nodeids[i].url.replace(/^http://[^/]*/, '').replace(/.html$/, '.item'); if (!articleLink.match(/.item$/)) { articleLink += '.item'; } suggestionList.push({ id: nodeids[i].id, link: articleLink, canon_url: nodeids[i].url.replace(/^http://[^/]*/, '') }); } } var data = { code: 'storysidebar', itemsdisplayed: jQuery('article.post').map(function() { return jQuery(this).attr('rel'); }).get().join(','), fulladsection:'opinion/editorials' }; $('.side-pop-wrap').load('/ajaxcached', data, function() { $(this).append(''); stories_displayed.push.apply(stories_displayed, jQuery('article.post, .storyidtag').map(function() { return jQuery(this).attr('rel'); }).get()); my_yq_sidebar_init(); }); } function on_yq_sidebar_suggest(suggestions) { //check if there are suggested results, if so populate 'youneeq' div if (suggestions && suggestions.suggest && suggestions.suggest.node) { var nodeids = suggestions.suggest.node; var stories = ""; //add links, and apply sidebar styles - this could also be handled with a list var items = []; var maxitems = parseInt(6); for (var i = 0; i 0) { var data = { Code: 'storysidebaryq', Items: items.join(','), fulladsection:'opinion/editorials' }; $('.side-pop-yq-wrap').load('/ajaxcached', data, function() { $(this).find('.feat-widget-wrap a').mousedown(function() { var self = $(this); ga('send', 'event', 'Articles', 'Youneeq View', self.attr('href')); Yq.yq_panel_click('http://www.toledoblade.com' + self.attr('href'), self.data('storyTitle'), self.data('storyId')); }); window._PG._trigger(" sidebarloaded"); // Display ads in sidebar //var adSlotArtRail1 = DFPADS.createSlot({name:"ArtRail1",sizes:[300,250],target:'div-gpt-ad-1454636904196-0',position:"ArtRail1",mapping:"ArticleListPanel",category:story_data.categories}); /*googletag.cmd.push(function() { googletag.display('div-gpt-ad-1454636904196-0'); });*/ //responsive_ads.push(adSlotArtRail1); /* var adSlots = $('.side-pop-yq-wrap .gpt-ad').map(function(i, e) { var divId = $(e).attr('id'); var adSlot = DFPADS.createSlot({name:"ArtRail2",sizes:[300,250],target:divId,position:"ArtRail2",category:story_data.categories}); /*googletag.cmd.push(function() { googletag.di splay(divId); });*//* responsive_ads.push(adSlot); return adSlot; }).get(); adSlots.push(adSlotArtRail1);*/ DFPADS.initializeAll() //googletag.pubads().refresh(adSlots); }); } } } function my_yq_init() { var can_observe = false, canon_href = story_data.link; if (story_data && story_data.title) { //These values should be populated from the CMS var title = story_data.title, categories = story_data.categories, content_id = story_data.id, description = story_data.description, image_link = story_data.image, pub_date = story_data.publish_date; new_pub_date = pub_date.replace(' ', 'T'); new_pub_date = new Date(ne w_pub_date); var todaysDate = new Date(); can_observe = new_pub_date 0) { window.setTimeout(function() { idm_send(tries - 1); }, 5000); } } function get_gigya_profile(response) { if (response.errorCode == 0) { var u = response.user, data = { 'idm': { 'id': u.UID, 'profile': { 'UID': u.UID, 'birthDay': u.birthDay, 'birthMonth': u.birthMonth, 'birthYear': u.birthYear, 'city': u.city, 'country': u.country, 'email': u.email, 'firstName': u.firstName, 'gender': u.gender, 'lastName': u. lastName, 'loginProvider': u.loginProvider, 'loginProviderUID': u.loginProviderUID, 'nickname': u.nickname, 'providers': u.providers, 'state': u.state, 'zip': u.zip } }, 'report_domain': 'toledoblade.com', 'alt_href': 'http://www.toledoblade.com/' }; Yq.observeMin(data, jQuery.noop()); } } To Top Fetching stories…Source: Google News Ireland | Netizen 24 Ireland

Next
« Prev Post
Previous
Next Post »