Page Nav

HIDE

News Update:

latest

Ads Place

UT researchers: Light from digital devices and the sun speeds up blindness

UT researchers: Light from digital devices and the sun speeds up blindness '); adArtMain2Count++; element.load(i...

UT researchers: Light from digital devices and the sun speeds up blindness

'); adArtMain2Count++; element.load(item.link, { adnum: adArtMain2Count, scrolled: 1 }, 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); adspot.load("/ajaxcached?Code=adtag", function() { var ad = $(this); ad.show(); googletag.cmd.push(function() { var adSlot = DFPADS.createSlot({name:"ArtMain2",sizes:[[728,90]],target:adId,position:"ArtMain2",mapping:&quo t;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.push(function() { googletag.displ ay(divId); }); googletag.pubads().refresh([adSlot])*/ } }); }); /*$('.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_ur l); // 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; addContent(); } }); function on_yq_suggest(suggestions) { //check if there are suggested r esults, 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 for (var i = nodeids.length - 1; i >= 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(',') }; $('.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(',') }; $('.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')); }); // Display ads in sidebar var adSlotArtRail1 = DFPADS.createSlot({name:"ArtRail1",sizes:[300,250],target:'div-gpt-ad-1454636904196-0',position:"ArtRai l1",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.display(divId); });*/ responsive_ads.push(adSlot); return adSlot; }).get(); adSlots.push(adSlotArtRail1); //googletag.pubads().refres h(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(new_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 US Health | Netizen 24 United States

No comments

Latest Articles